I have a web app that has been running well for a year, non-stop. Private page, very low traffic.
Suddenly it crashed with
admininterface.[12120]: segfault at bf5e4fec ip b70e1887 sp bf5e4ff0 error 6 in XojoConsoleFramework32.so[b6f24000+651000]
When trying to start it again it starts but internal timers don’t fire, the socket does not listen. Only app.open runs (I have a debug print there) and after that nothing.
A reboot might fix but I’d like to know if this can be fixed without a reboot.
Yes, I launch it from the command line anyway; it only seems to run through whatever is in app.open and stops.
This application makes use of IPC, could it be an issue? However, there are console apps that use the same IPC mechanism and have been running for since the system ever booted (up 426 days…) except when I stopped ALL Xojo built processes just to see if it has any effect on this web app…
If I reboot we’ll never know what it is, so I am sort of reluctant to reboot it
Ah, well if its running app.open the most likely scenario is that the port youve selected is either already in use or that youre not allowed to use it.
the port isn’t in use, and actually when it starts it does listen on the port (9000). Browser trying to open the page connects but waits forever for a response.
app.open calls some timers to start (which should print out debug lines), those do not seem to run.
Anyone has any idea why would a web app not start after a crash? Can it be the system uptime is too long ? :)[/quote]
It wouldnt be that.
Im still wondering what the full command is that youre using to launch the app and what else is in your open event.
Usually this means that the app is caught in a tight loop or that its blocked in some way… for instance a connection attempt to a database that isnt available.
[quote=351224:@Shant Khatcherian]No i dont have that, just debug from each function as its called. Will add and rebuild then to add this one…
Shouldnt such an exception print anyway?
thanks[/quote]
True. But in the case of a segfault, they may not make it to the System last log without a little help.