# Webapp quits silently, what to check?

**URL:** <https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084>\
**Category:** Web\
**Created:** [April 15, 2026, 11:43am UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084 "2026-04-15T11:43:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [April 15, 2026, 11:43am UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/1 "2026-04-15T11:43:40Z")

</div>

Hi Folks,  
I have a webapp running ,and after an update it just silently quits with no message whatsoever after a few minutes.  
what are the options to find out where it may come from ?  
thanks.  
pinging @Ricardo_Cruz

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [April 15, 2026, 11:50am UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/2 "2026-04-15T11:50:56Z")

</div>

If it is deployed with Lifeboat, you can check the logs

 ![Screenshot 2026-04-15 at 13.48.49](https://forum.xojo.com/uploads/default/original/3X/0/6/06fec7cf2f79e832ca6502cef4f8e2a1bba79e92.jpeg)

* * *

If it is deployed with Xojo Cloud you might be able to see something by connecting through SSH and going through the **logs** folder.

 ![Screenshot 2026-04-15 at 13.51.17](https://forum.xojo.com/uploads/default/original/3X/4/3/4330585a3b688373fae7eada8d25f917bd14f8e7.jpeg)

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [April 15, 2026, 12:03pm UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/3 "2026-04-15T12:03:05Z")

</div>

sorry forgot to detail ! it’s on macos, standalone with no lifeboat.  
no message in the console, or i don’t know how to find them…

edit: the only message i get when the app quits :

| par défaut | 14:03:30.325786+0200 | | Entering exit handler. |
| --- | --- | --- | --- |
| par défaut | 14:03:30.325809+0200 | | Queueing exit procedure onto XPC queue. Any further messages sent will be discarded. activeSendTransactions=0 |
| par défaut | 14:03:30.325901+0200 | | Cancelling XPC connection. Any further reply handler invocations will not retry messages |
| par défaut | 14:03:30.325953+0200 | | Exiting exit handler. |
| par défaut | 14:03:30.326141+0200 | | XPC connection invalidated (daemon unloaded/disabled) |
| erreur | 14:03:30.326275+0200 | | No error handler for XPC error: |

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [April 15, 2026, 2:39pm UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/4 "2026-04-15T14:39:16Z")

</div>

ok i will try to save some log in the app.closed and app.unhandledexception events and see what’s coming from it. finger crossed.

---

<div class="post-metadata">

**Author:** ![Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/9de0a6/32.png) [@Jose\_Fernandez\_del\_Valle](https://forum.xojo.com/u/Jose_Fernandez_del_Valle)\
**Post date:** [April 15, 2026, 8:01pm UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/5 "2026-04-15T20:01:45Z")

</div>

> [@Jean-Yves\_Pochez](#):
>
> I have a webapp running ,and after an update it just silently quits with no message whatsoever after a few minutes.  
> what are the options to find out where it may come from ?  
> thanks.

I think it’s time to do a step-by-step run using the debugger…

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [April 15, 2026, 8:21pm UTC](https://forum.xojo.com/t/webapp-quits-silently-what-to-check/88084/6 "2026-04-15T20:21:13Z")

</div>

well I used these two events in the web app class:

```auto
Function UnhandledException(error As RuntimeException) Handles UnhandledException as Boolean
  // Timestamp + error info
  Var now As DateTime = DateTime.Now
  Var msg As String = now.SQLDateTime + " | Error " + Error.ErrorNumber.ToString + ": " + Error.Message
  
  dim s() as String = error.Stack
  If s <> Nil and ubound(s)>=0 Then
    msg = msg + EndOfLine + " " + String.FromArray(s, EndOfLine)
  End If
  
  // Print to terminal stdout
  Print(msg)
  
  // Append to error.log next to the executable
  Var logFile As FolderItem = App.ExecutableFile.Parent.Child("error.log")
  Try
    Var bs As BinaryStream = BinaryStream.Open(logFile, True)
    bs.Position = bs.Length
    bs.Write(msg + EndOfLine + EndOfLine)
    bs.Close
  Catch
    Try
      Var tos As TextOutputStream = TextOutputStream.Create(logFile)
      tos.Write(msg + EndOfLine + EndOfLine)
      tos.Close
    Catch
    End Try
  End Try
  
  ' prevent the app to quit
  Return True
  
End Function

```

and

```auto
Sub Closed() Handles Closed
  Var msg As String = DateTime.Now.SQLDateTime + " | App.Close called"
  
  // Trick to get a stack trace
  Try
    Raise New RuntimeException
  Catch e As RuntimeException
    Var s() As String = e.Stack
    If s.Count > 0 Then
      msg = msg + EndOfLine + " Stack: " + String.FromArray(s, EndOfLine + " ")
    End If
  End Try
  
  Print(msg)
  
  Var logFile As FolderItem = App.ExecutableFile.Parent.Child("error.log")
  Try
    Var bs As BinaryStream = BinaryStream.Open(logFile, True)
    bs.Position = bs.Length
    bs.Write(msg + EndOfLine + EndOfLine)
    bs.Close
  Catch
    Try
      Var tos As TextOutputStream = TextOutputStream.Create(logFile)
      tos.Write(msg + EndOfLine + EndOfLine)
      tos.Close
    Catch
    End Try
  End Try
End Sub

```

and this build a error.log file beside the webapp  
and it helped me find a nil error in the session app.

hope this may help someone else in the future !
