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

Resizing Analysis Window Causes Crash #535

Open
philipbaileynar opened this issue Nov 27, 2024 · 3 comments
Open

Resizing Analysis Window Causes Crash #535

philipbaileynar opened this issue Nov 27, 2024 · 3 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@philipbaileynar
Copy link
Contributor

philipbaileynar commented Nov 27, 2024

From Luke Worshom via FreshDesk:

Just noticed recently while using the QRis analysis window; may be a known issue.

  1. Creating a "new analysis" in QRiS plugin window opens docked analysis window.
  2. Undocking analysis window to expand view causes QGIS to crash. This has happened a couple times now.

https://riverscapes.freshdesk.com/a/tickets/194

@philipbaileynar philipbaileynar added the 🐛 bug Something isn't working label Nov 27, 2024
@philipbaileynar
Copy link
Contributor Author

philipbaileynar commented Jan 7, 2025

I just reproduced this in MacOS.

  • QGIS 3.38
  • QRiS 1.0.2

I upgraded to QRiS 1.0.7 and the same problem occurs.

Note that I can undock the project explorer dockable widget and it doesn't crash QGIS.

@KellyMWhitehead
Copy link
Collaborator

This is an odd one - not quite sure how to debug the qt widget and catch the error.

I have also reproduced this error. It seems if you resize the Analysis panel (i.e. make it taller) before undocking, QGIS does not crash.

@philipbaileynar
Copy link
Contributor Author

Given that the project explorer (and other QRiS) widgets don't crash, it tells me that one or more widgets on this dockable window are not being created properly.

A few things to try:

  1. Are there any widgets being created outside of the dockable window constructor? This could cause them to be disassociated with the parent dockable widget and cause a memory leak.
  2. Are there any widgets being created with invalid parents or other parameters that we don't do elsewhere?
  3. Try removing all widgets so that the dockable window is empty. Does it still crash? If not, then slowly add back one widget at a time until you find the offending widget. Annoying as all hell, but I can't think of anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants