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
Crashes on QGIS 2.16 in Xenial #309
Comments
Hrm - not good. Can you follow the steps for "Reporting bugs" listed in the README. Specifically, can you narrow it down to a single layer which causes the problem? I'f you can, then upload the layer so I can try it - I've not had a QGIS crash on 2.16 myself. |
Sorry I missed the instructions in the README.
This happens for any data that I use, and I've tried a variety of file types and CRSs. Please let me know if there is anything else I can try. |
What OS are you on? |
Ubuntu 16.04. |
OK, in a terminal, try:
Cause the crash, and then in that same terminal, type |
I think most of these types of problems result from q2w not handling a layer properly . Would it be possible to wrap the preview code in a "try" statement and if it fails try to catch which layer it failed on. I don't have much time at the moment to look at the preview code. |
Will a Python |
Woops. Probably not. |
Okay here's a stack trace from
|
Perfect - thanks. The bad news is that I don't know how to decipher one of these. The good news is that there have been other plugin segfaults involving QtWebKit. The bad news is that there has been no fix or workaround suggested yet. I'll report this on the QGIS developer mailing list, and see what comes of it. |
Thanks @tomchadwin. FWIW, I have tried wiping out |
Notice that the other reports are also 2.16 on 16.04. I hope one of the QGIS devs can help (nudge: @m-kuhn). |
At least we're not alone! I've looked into all the |
You're not on Qt5, are you? |
Nope, Qt4. |
OK, good. Let's see if we get any suggestions. Thanks for your patience. |
Just as feedback, I have compiled QGIS 2.16 on Ubuntu 16.04 and there is no error. |
@lucacasagrande if you compile with |
@ebrelsford How did you upgrade QGIS? Which repository did you get it from? |
@m-kuhn Yes with |
Looks like 2 issues then
|
@ebrelsford Are you still getting this crash? @m-kuhn Any idea if 2.16 has been repackaged to fix this? @jef-n? |
Fix what? |
See this issue (above), or this thread on the dev list: https://lists.osgeo.org/pipermail/qgis-developer/2016-July/043733.html Summary (maybe incorrect - I'm very much not an expert in this):
Thanks |
No, not occurring to @lucacasagrande, above: "Yes with |
Huh, it's not here: |
I wonder if this is related to header files at build time. If python-qt4-dev (or whatever the package is) doesn't have a .h file for pyqt4 webkit, QGIs won't be built for it. If QGIS is built on Stretch, then no matter whether the library is there or not (as in Ubuntu Xenial), QGIS won't reference it. |
I got the new release today, it's still crashing on Xenial. |
@robinpaulson is still getting crashes with QtWebkit with the latest nightly. Any ideas why? |
Oh, sorry, I wasn't clear. I'm using the new release of qgis2web, I'm still using QGIS 2.16.2, not the nightly. |
@robinpaulson OK, got it. It's still an issue, though. Nothing I can do in qgis2web will fix this. So, apologies, but new qgis2web releases won't help. It can only be solved at the QGIS level. |
OK, which nigtly do I need, the one for 2.16.3, or for 2.17? http://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu |
All: I've upgraded to 2.14.5 and things are back working again - can anyone else verify? |
I thought 2.14 was never affected, and this was only an issue with 2.16. |
AARGH sorry my mistake... confusing versions... |
Why not just wrap the preview window and update button in a python TRY statement? |
I can have a go at that, but because the error is not a Python error, I'm not sure it will work. |
well it is sort of a python error, if you don't ask in python for a webkit then you don't have any problems. the important thing, is to wrap the imports. BTW yakety is also affected, but the next nightly should fix this thanks to @jef-n |
implemented the above in #360 |
I've merged @mbernasocchi's PR. Can Xenial/Yakkety users please test master, and let us know how things work? I'd appreciate a couple of screenshots so I can see how it all holds together. Thanks for the contribution, Marco! |
And thanks to @boesiii for suggesting the same solution - you were right and I was wrong, so many thanks, Ed! |
Just tested on Linux Mint 18 (xenial) w/ QGIS 2.18 and things are working fine!!! Great work! |
I accidentally deleted @mbernasocchi's fix for this by using the @mbernasocchi did you fix the |
I'll close this off - I made some tweaks to get the preview and dev bar working again. I don't know if the |
hi @tomchadwin I don't think I changed the UI, https://github.com/tomchadwin/qgis2web/pull/360/files |
No, that's what I mean. We can't generate the Python UI from the |
I have just released version 3.19.0, which excluded WIKI and Preview functionality for Linux users who are unable to install and use QtWebKit, so the plugin will launch and be usable without these features Shortly, the update will be available within the QGIS plugin repository. Thank you for using the plugin. I would greatly appreciate it if you would consider donating a virtual coffee through the button on the homepage to support the development of qgis2web. Best regards. |
On upgrading to QGIS 2.16, QGIS now crashes when I open the
qgis2web
dialog (Web > qgis2web > Create web map
). I've tried uninstalling and re-installing the plugin but it hasn't improved the situation.The text was updated successfully, but these errors were encountered: