Opened 15 years ago

Closed 14 years ago

#1971 closed bug (fixed)

print composer crashes when adding image path

Reported by: pcav Owned by: mhugent
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Printing Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

If I add an image to a map composer, the icon remains pressed, and nothing happens until I click on the page. If I try to add a directory of images (containing also othe files, QGIS crashes:

Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/fagiani.csv', because: Start tag expected. (line 1) Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/Faunalia.png', because: Encountered incorrectly encoded content. (line 1) Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/fix.txt', because: Start tag expected. (line 1) Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/fix_shape.dbf', because: Encountered incorrectly encoded content. (line 1) Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/fix_shape.shp', because: Encountered incorrectly encoded content. (line 1) Warning: Cannot read file '/home/paolo/Desktop/Dati/vari/fix_shape.shx', because: Encountered incorrectly encoded content. (line 1) Segmentation fault

Change History (4)

comment:1 by pcav, 15 years ago

Furthermore, adding a valid path does not persiste across images (if I add a second image, I have to add my path again)

comment:2 by mhugent, 15 years ago

If I add an image to a map composer, the icon remains pressed, and nothing happens until I click on the page

Yes, this is the same behaviour as with the other tools (add scalebar, legend, composer map, label).

If I try to add a directory of images (containing also othe files, QGIS crashes:

Hm, this does not happen for me here (also if other files are in the directory). Maybe it only happens with certain types of file? The composer uses two qt classes (QSvgRenderer and QImageReader) to test if the files are valid as composer pictures

Furthermore, adding a valid path does not persiste across images (if I add a second image, I >have to add my path again)

But if you press the file selection button, the path should be stored for the file dialog

comment:3 by lutra, 15 years ago

All replicable here, on qgis 1.3 from repository and Ubuntu 9.04.

comment:4 by lutra, 14 years ago

Resolution: fixed
Status: newclosed

I believe that all this issues are gone already. Just tested trunk under both linux and windows xp. Please reopen if necessary.

Note: See TracTickets for help on using tickets.