https://bugs.kde.org/show_bug.cgi?id=473609

--- Comment #2 from ratijas <m...@ratijas.tk> ---
The offending page is managed by PagePool and PagePoolAction. If I manually
clear() the PagePool before quitting app, it won't crash. It all comes down to
the PagePool presumably not doing proper clean-up on it own destruction.
DelegateRecycler stores its component and instantiated items in a
DelegateCache, but the cache is supposed to be empty on exit, because every
delegate creation (ref) should be balanced by a destruction (deref). Cleaning
up items after shutdown (during __run_exit_handlers) is a very questionable
activity, as destructors (like in case of QQuickButton) might try to access
null qApp resources.

However, why do those item delegates not get destroyed along with their
associated QQmlEngine?  Because they have C++ ownership, they do not have any
parent QObject, and nothing connects them with their engine's lifecycle.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to