Bug report #4107

Bad Allocation when Printing

Added by Jon Hartman over 13 years ago. Updated about 12 years ago.

Status:Closed
Priority:High
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System:Microsoft Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:14089

Description

Any attempt to print from the Print Composer causes an error to display stating 'Bad Allocation'. The printer simply prints off a blank sheet of paper (See screen shots of before and after). Once the error has occurred the program freezes and must be closed before doing anything else.

after.png - After the Error has occurred. (137 KB) Jon Hartman, 2011-07-21 07:52 AM

before.png - Before the Error has occurred. (1.12 MB) Jon Hartman, 2011-07-21 07:52 AM

isolate_bug_4107.zip - test data (shp and project) (730 KB) peppo -, 2011-09-20 09:07 AM


Related issues

Related to QGIS Application - Bug report #3467: Label Buffers Produces Extremely Bloated PDF Export (Vect... Closed

History

#1 Updated by Giovanni Manghi over 13 years ago

attach/link a project with the necessary data, otherwise it would e hard to understand where is the problem

#2 Updated by peppo - about 13 years ago

I have a small project which also produces a bad allocation error in the print composer. I run QGIS 1.7 on windows 7.
The error only happens, when zoomed to a certain scale in the print composer. The print composition is included in the project.

#3 Updated by Giovanni Manghi almost 13 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#4 Updated by Giovanni Manghi almost 13 years ago

  • Affected QGIS version set to master
  • Crashes QGIS or corrupts data set to No
  • Status changed from Open to Feedback

The attached project layer seems having nothing to do with the attached screenshots. There is only one vector while in the screenshots there is also a raster. The vector also seems not related. The composer layout available in the attached project opens empty. Please attach another sample dataset to allow do local tests.

#5 Updated by Paolo Cavallini almost 13 years ago

  • Status changed from Feedback to Closed
  • Resolution set to invalid

Closing for lack of feedback. Please check and reopen if necessary.

#6 Updated by Piotr Pachol about 12 years ago

Error "Bad allocation" is connected with type of labeling used in layer.
I tried to print project with several layers (each consist of about one thousand of objects).
Error occurs when I tried to print layers with standard labels created by 'Layer properties' > 'Labels'.
There were no errors during printing the same layers:
  • without any labels,
  • when I created labels by means of option: 'Labeling' from 'Layer' main menu.

#7 Updated by Jürgen Fischer about 12 years ago

Piotr Pachol wrote:

Error "Bad allocation" is connected with type of labeling used in layer.
I tried to print project with several layers (each consist of about one thousand of objects).
Error occurs when I tried to print layers with standard labels created by 'Layer properties' > 'Labels'.
There were no errors during printing the same layers:
  • without any labels,
  • when I created labels by means of option: 'Labeling' from 'Layer' main menu.

Any of the labels buffered? That's especially expensive with the old labeling. BTW in master the "Labels" in layer properties is the new labeling and the old one is "Labels (deprecated)".

Also available in: Atom PDF