Xojo2024R3: problem with the application launch

This issue has been happening in the past, I have been ignoring it, but slowly it is becoming a nuisance. I am testing web app in Xojo on my Mac M1 and occasionally getting this dialog box:

If I click Continue Waiting I can get the web page to open or to execute button click. If I click Cancel the app breaks. The app connects to remote Postgress Database and I know it is running 24/7, I can double/triple test by launching the same web app from two remote servers. I know I have internet connectivity as well. What gives? Why is this happening?

Can some of you wise people explain so that I can calm down on this beautiful Monday morning? Thanks.

1 Like

The ‘timeout’ they set is too low (or something like that).

I always get it and just press Hide.

If you search on Issues there is a request to disable this dialog or at least change the time it takes for the trigger to show it. (I can’t find it at the moment)

As @AlbertoD said, the correct choice is “Hide”. :man_shrugging:

In the latest version of Xojo (2024r3) there is a toggle for “Launch Browser”

Setting it to “off” (as shown above) and Xojo will not attempt to auto-launch the browser and you won’t get the dialog.

(which is FANTASTIC! Thanks @Ricardo_Cruz /Xojo Team!)

So you can just keep a single tab open in your browser and wait for it to refresh.

(Probably worth it to add a bookmark for your default debugging address too, so it’s easy to pull up the first time you need the debugging page)

5 Likes

Just for clarity, the whole reason this dialog exists is for debugging & profiling code in App.Open and App.HandleUrl because either of them could hang your app if configured incorrectly and they give you a way to gracefully exit your app (cancel) or keep waiting with further dialogs (continue) or without dialogs (hide).

3 Likes

Thanks for your responses, at least I know it is not only me who is suffering, I don’t quite understand why would I need to turn off the Launch Browser toggle switch (I may discover the answer in the future) as I am typically expecting the browser to open the login page of the app.

I am just confused by the fact that sometimes I get this dialog few times in the row and some days I never get to see it.

If the web application takes too much to launch, for any reason (i.e. the debugger is stopped in a breakpoint in the App.Opening event), you’ll start seeing that dialog.

OK, the “Break” part I can understand; however, it seems that there is no apparent reason. I can simply cancel, wait a little (like a minute or so) without touching code and Run the web app again, no dialog and everything looks good. So far I haven’t been able to find the rhyme and reason for this.

@Ricardo_Cruz - is the determination of “too much” made based on how long App.Open() takes?

@Grzegorz_Greg_Pasternak : do you have a lot of code in App.Open()? Does it all need to be there?

In the App.Opening event there are couple of lines of code that set some properties and call System.Log, I don’t see anything that would take any time.

Can you please set ‘too much’ to much more eg 1 minute, rather than 5 seconds?

2 Likes

Or an option to disable it.
Or just once a day for same project.
I see the dialog every time I debug.

2 Likes

Interesting, I almost never see it. I’m developing on macOS 14.7 (Intel).

That’s possible, yes. At the moment is set to 10 seconds, I guess that could be too low if the project has to setup something during the Opening event.

I couldn’t find a related Issue, I’ve created this Feature Request that you can upvote:
Issue #77551

2 Likes

Thank you for taking care of this issue in 2025R1 release.

3 Likes