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

InaSAFE template crashes #758

Closed
Charlotte-Morgan opened this issue Jan 24, 2014 · 6 comments
Closed

InaSAFE template crashes #758

Charlotte-Morgan opened this issue Jan 24, 2014 · 6 comments

Comments

@Charlotte-Morgan
Copy link
Member

Problem

The new template crashes when the 'open composer' button is pressed.
The new template works fine when the ''open pdf' button is pressed.
Related to #744

Operating environment

Windows 7; QGIS2.0.1, InaSAFE 2.0.0-7dev-master (current sync)

image

Error Message

image

Proposed Solution

Make the composer happy :)

Expected Outcome

Users can use composer with an existing template to add or modify map elements

CC

@timlinux @vanpuk @alexbruy

@akbargumbira
Copy link
Member

So, I've been playing around with this issue, and it only appears on windows.

This issue comes exactly at this line: https://github.com/AIFDR/inasafe/blob/master/safe_qgis/report/map.py#L328

composer_map.setNewExtent(square_extent)

If we comment that out, there is no crash dumped issue. Hmm, I'm not sure why because the square_extent is actually fine.. still looking at it

@ghost ghost assigned alexbruy Jan 28, 2014
@akbargumbira
Copy link
Member

HI @alexbruy, have you figured this out? I'm still not figuring it out. I was observing the extent and nothing suspicious with that. I tried it on QGIS Master d647354 (yesterday) and QGIS 2, both give the same crash issue, but the thing is its behavior on the crash is different.

On QGIS Master, when we click the 'Open Composer' button, it will perfectly show the composer with all its elements. The problem comes when we minimize/go to other window and reopen the composer window. While on QGIS 2.0 the problem comes right away after the composer window shows up..

@timlinux
Copy link
Contributor

Tested here under windows 8 with composer_map.setNewExtent(square_extent) commented out and I still get a crash.

@mach0
Copy link
Contributor

mach0 commented Feb 14, 2014

Maybe this has something to do with #785 ? Just a rough guess..

@akbargumbira
Copy link
Member

Yes, thanks @mach0. I deleted that part manually from .qpt file and it's not popping up the crash

@timlinux
Copy link
Contributor

It seems we have found the underlying cause (thanks @akbargumbira !) and have filed an upstream ticket with QGIS (http://hub.qgis.org/issues/9578), as well as implemented a work around for the issue. Thanks for your patience and for the issue report @Charlotte-Morgan .

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

No branches or pull requests

5 participants