SessionShutdownThread

I have a web app where I’m using timers to run code in order to show a spinner, do it’s work, and clean up when done. All of the code is running in methods called from the timer. For now, I’ll by pass the timer, but I’d really like to show spinners while my code does it’s thing.

I never know when the SessionShutdownThread will appear, but its looks like the following. Any clues about why this is happening?

The SessionShutdownThread ‘randomly’ happens when I’m about to place a container using EmbedWithin which results in a SessionNotAvailableException. The SessionShutdownThread might appear on loading the first contact after running the project or after clicking 10 contacts.

However, I’m setting the WebSessionContext above the EmbedWithin. My dimmed theSession is set with the session.

In this pic, I drilled in to theSession which shows that theSession is set.

Source is here:
https://github.com/campsoftware/Xojo-Xanadu

The Timer in question is on ContactsPage called DetailLoadTimer.

What version of Xojo are you running?

Version 2016v3.

Ok, do me a favor and file a bug report with your project attached and instructions on how to replicate it. That’ll be the best way to get it on my list of things to look at.

Thank you! Will do. I’ll make a video too. :slight_smile:

+1 On video for bug reports. I try to do that on the few fb cases I create. At least I hope Xojo likes it :slight_smile:

I have added videos to IDE bug reports & they always seem to be appreciated. As @Norman Palardy said on another thread, they show the critical missing step that we don’t document.

Thanks @Greg O’Lone . I just submitted it and included code, screenshot, and a movie.

Feedback: <https://xojo.com/issue/45693>
Forum Post: https://forum.xojo.com/36161-45693-web-app-sessionnotavailableexception-after-dimming-new-we

Hal, have you tried this in the newest beta?

No. Doing so now.

Just tested with the beta and it does same, ending with a SessionNotAvailableException.

Just read your post at https://forum.xojo.com/36161-45693-web-app-sessionnotavailableexception-after-dimming-new-we/p1#p295714 about refactoring to use WebThreads.

I have a question about that that I’ll post there.