Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Quick: crash when delete-ing a toplevel dockwidget #472

Closed
MiKom opened this issue Feb 29, 2024 · 1 comment
Closed

Qt Quick: crash when delete-ing a toplevel dockwidget #472

MiKom opened this issue Feb 29, 2024 · 1 comment

Comments

@MiKom
Copy link
Member

MiKom commented Feb 29, 2024

Environment

  • Qt 6.6.2
  • Windows 11
  • Visual Studio 2022 compiler 19.38.33135 amd64

Steps to reproduce:

  1. Add a timer to examples\qtquick\dockwidgets\main.cpp:
    QTimer::singleShot(std::chrono::seconds(10), [&](){
        delete dw3;
    });
    
  2. Run the application
  3. Before the timer runs out, detach the Dock Widget 3 so it forms a separate window
  4. Wait until the timer runs out

Expected behavior

The window in which Dock Widget 3 resides, disappears, application keeps running

Actual behavior

Application crashes:

kddw_crash.mp4

Stacktrace:
https://gist.github.com/MiKom/4d7bb6c25e7b01cc39497f793af96959

@MiKom MiKom changed the title Qt Quick: crash when delete-ing tolevel dockwidget Qt Quick: crash when delete-ing a toplevel dockwidget Feb 29, 2024
iamsergio added a commit that referenced this issue Mar 2, 2024
The crash is commented in the test, as QEXPECT_FAIL isn't an option
for crashes.
iamsergio added a commit that referenced this issue Mar 2, 2024
@iamsergio
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants