Bug #5914
openWt internal error; code: undefined, description: b.find(...).get(...).lastChild is null
0%
Description
Hi,
from time to time the error message "Wt internal error; code: undefined, description: b.find(...).get(...).lastChild is null" appears.
See the command log attached.
I don't see any '.lastChild' onto the webpage. How can I figure out what's going wrong?
Regards,
Daniel
Files
Updated by Daniel Lier about 7 years ago
- File pseudo_code.txt pseudo_code.txt added
Hi,
the error happens because of my solution for issue 5889. The height of the Wt::WTreeView is changed (as described in issue 5889)
after the data have been updated within a worker thread and pProgressBar->progressCompleted is signalled. See the pseudo code attached
to see what the worker thread is doing.
I guess that the update has not been done yet. Shouldn't the update be finished before the event loop continues and any widget changes can be done?
Can I wait until the latest triggered update has been done?
Regards,
Daniel