-
Notifications
You must be signed in to change notification settings - Fork 19
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
Profiletool crashes Qgis on install #23
Comments
Hi @palousegeo, Looking at the stack trace we are finding a PyErr_NoMemory, could it be an issue with your system's available RAM? Are you trying to install the plugin while loading some big layers on memory? Can you see any error messages on the Python message pane? Perhaps that could help us find out a bit more. |
Hi,
The plugin appears to install properly, but instantly crashes QGIS upon activation (checking the box in the plugin manager). The main computer I am testing this on has 16 GB ram. I monitored memory usage while trying to activate the plugin. The usage stayed steady around 4 GB. I tried to activate the plugin on a fresh profile with the rest of the standard plugins disabled. QGIS still crashed. Unfortunately, it happens so fast there is no python error reported.
I also tried to install the plugin on a third computer, a MS Surface Pro 3, with a quad core i7 processor and 8 GB of RAM running Windows 10 pro. Same result – instant QGIS crash upon plugin activation. If I can provide any additional information that will help you please let me know.
-Rick
…________________________________
From: Javier Becerra Elcinto <[email protected]>
Sent: Friday, March 15, 2019 12:39:30 AM
To: PANOimagen/profiletool
Cc: palousegeo; Mention
Subject: Re: [PANOimagen/profiletool] Profiletool crashes Qgis on install (#23)
Hi @palousegeo<https://github.com/palousegeo>,
We have tested the plugin on windows 8.1 against QGis 3.4.4 and 3.6.0, and on windows 10 against 3.4.3 without an issue. We are checking again on Windows 10 against newer versions just in case something changed in 3.4.5.
Looking at the stack trace we are finding a PyErr_NoMemory, could it be an issue with your system's available RAM? Are you trying to install the plugin while loading some big layers on memory?
Can you see any error messages on the Python message pane? Perhaps that could help us find out a bit more.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#23 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADXQKE7_jgpbaeijL73c8aoztCaVin52ks5vW04ygaJpZM4b1VEE>.
|
Hi Rick, The stack trace does not seem to show any call to the plugin's code itself, but I am not too familiar with QGis/Qt plugin loading system. We will send an email to qgis-dev list if we are not able to find out what is causing this and see if someone has a better idea of what is going on according to that stacktrace. |
I have found some bug reports with quite similar stacktraces:
https://issues.qgis.org/issues/21811 |
Hi @palousegeo: |
Sorry, I haven't had much time available for testing. However, I updated both QGIS (3.6.1) and the profile tool (4.1.6) today. As soon as I activated the tool QGIS crashed. This is the case for a diverse set of 4 Windows 10 computers I usually work on. On each of these computers I installed and updated QGIS through the OSGEO4Wx64 packages. I am not having issues with other plugins. As mentioned above, I tried this on a clean profile (no plugins other than the base set, with all these turned off) with the same results. |
Hi @palousegeo, no worries. We have tried reinstalling QGis with the OSGEO4Wx64 "Express Desktop" install and we still can not reproduce the issue. Are you using any particular options during install? |
Hi, |
Thanks @palousegeo, that explains why we are not able to reproduce it. |
Hi, |
Thanks to @Aewaterhouse report we have been able to reproduce the issue on one of our machines, selecting all packages during installation. from .tools.profiletool_core import ProfileToolCore Moving it to line 90 (i.e. importing class ProfileToolCore right before using it), the crash is delayed until we try to open the plugin window, but there are no more problems during installation of the plugin or when opening QGis. However |
I have the same crash on a Mac (Mac OS 10.13.6 ) with QGis 3.4.7 and 3.6.2 from Homebrew/Lutraconsulting. However iIt does not crash with QGis 3.4.7 from Kyngchaos (QGis official distribution). Here are the differences I see Kyngchaos (compatible with Profile Tool)
Homebrew (NOT compatible with Profile Tool)
It's on the same computer with the same user profile. HTH |
Remove hdf5 support (which was unused anyway) from the copy of pyqtgraph bundled with the plugin to avoid crashes seemingly due to conflicting hdf5 libraries bundled under different QGis packages. This commit should solve issue #23
Hi, So, we have removed hdf5 support from the bundled pyqtgraph library on commit 6a47bb0 |
No more crashes, tested with QGis 3.4.7 and 3.6.2 . Thank you very much ! |
Cool @dd-a, you are welcome! |
I tried to install the profile tool plugin and it crashed QGIS. This happened on two different computers both Windows 10 with versions 3.4.5, 3.6.0 and 3.7.0. The tool does show up in the plugins list after the crash. However, it crashes the program again when I try to activate it. I also tried a fresh profile with the profile tool as the only added plugin and it also crashed QGIS.
profiletool_crash.txt
The text was updated successfully, but these errors were encountered: