http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252021-03-13T18:03:01ZRedmineWt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=288202021-03-13T18:03:01ZEmeric Pouponitmfr@yahoo.fr
<ul></ul><p>Wt 4.2.0, crashing on raspbian</p>
Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=288582021-03-16T08:25:20ZKorneel Dumonkorneel@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Korneel Dumon</i></li></ul><p>This seems to happen when you close the page before it is finished loading. I can reproduce it by throttling the browser so I am quick enough to close it. Can you confirm this?</p>
<p>I think it has something to do with Wt's bootstrap process. If you close the page before the bootstrap request is finished, then we created a WebSession, but not yet a WApplication.<br>
My suspicion is confirmed by the fact that the problem is gone when I enable progressive bootstrap (which renders the application on the first request).</p>
<p>Even if there is no wApp, the session is still cleaned up after a while. So if you just add a null-check, you should be good. I will see if I can also add it somewhere in Wt to prevent this from happening.</p>
Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=289352021-03-17T08:00:21ZEmeric Pouponitmfr@yahoo.fr
<ul></ul><p>Korneel Dumon wrote in <a href="#note-2">#note-2</a>:</p>
<blockquote>
<p>This seems to happen when you close the page before it is finished loading. I can reproduce it by throttling the browser so I am quick enough to close it. Can you confirm this?</p>
<p>I think it has something to do with Wt's bootstrap process. If you close the page before the bootstrap request is finished, then we created a WebSession, but not yet a WApplication.<br>
My suspicion is confirmed by the fact that the problem is gone when I enable progressive bootstrap (which renders the application on the first request).</p>
<p>Even if there is no wApp, the session is still cleaned up after a while. So if you just add a null-check, you should be good. I will see if I can also add it somewhere in Wt to prevent this from happening.</p>
</blockquote>
<p>Hello!</p>
<p>Unfortunately, I don't manage to reproduce this issue :(<br>
But a user reported he gets this 100%, not mentioning the closing step (see <a href="https://github.com/epoupon/lms/issues/126" class="external">https://github.com/epoupon/lms/issues/126</a> for for more details)<br>
Indeed I don't use the progressive bootstrap feature.</p>
Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=289412021-03-17T09:08:18ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>Perhaps your user always has unfortunate timing. Between the first and second request there is always a small interval where wApp is null. If you call <code>postAll()</code> during this time, it will crash. The conclusion is the same, you can safely ignore these incomplete applications.<br>
You can stretch the interval by throttling the browser, maybe you can reproduce it in this way.</p>
Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=289972021-03-18T16:06:48ZKorneel Dumonkorneel@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Implemented @Emweb</i></li></ul> Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=315682021-06-09T17:27:59ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Implemented @Emweb</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>4.5.1</i></li></ul> Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=333502021-08-05T13:40:22ZRoel Standaertroel@emweb.be
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul> Wt - Bug #8202: wApp returns nullptr inside a WServer::postAll lambdahttp://redmine.emweb.be/issues/8202?journal_id=354972021-10-19T09:01:32ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>