View Issue Details

IDProjectCategoryView StatusLast Update
0004520ScribusGraphics / Image Framespublic2020-12-01 23:38
Reportersherwood Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
PlatformPCOSWindows XP ProOS Version5.1 SP2
Product Version1.3.3.5 
Summary0004520: Crash while placing multiple large JPEG images
DescriptionIn a new document, Scribus fails while placing multiple large JPEG images, with the message

"Scribus crashes due to the following exception: EXEPTION_ACCESS_VIOLATION"

Additional debugger information from MS Visual Studio 2005 debugger in the attached file.
Steps To ReproduceIn an empty 1-page document, insert an image frame, size about 2.4 cm x 2.5 cm.

Place the image 1994_Apr_013.jpg, which I have previously made available as http://rapidshare.com/files/2839962/1994_Apr_013.jpg.html. Ignore the warning about resolution tags missing.

After the image is successfully placed, type ^C once, followed by ^V 15 times. This should make 15 copies of the image. After several seconds, the above crash occurs.

If ^V is typed 10 times, there is no crash, and the copies can be moved (they are created superimposed).
Additional InformationSystem has 2 GB RAM.

The crash is reproducible, but the address of the access violation varies.
TagsNo tags attached.
Patch

Relationships

has duplicate 0008695 closedjghali scribus crashes while copy pasting an image frame 
has duplicate 0009491 closedjghali Scribus crashes when inserting pictures 
has duplicate 0010051 closedjghali Scribus crashes due to an unknown exception. CAN NOT OPEN MY FILE !!! 
has duplicate 0010059 closedjghali Filling an image frame with a jpeg-file causes the error: application transferred too few scanlines 
has duplicate 0010372 closedjghali Crash on using "Get Image" 
has duplicate 0010544 closedjghali Scribus crashes due to the following exception: unknown exception 
has duplicate 0010818 closedjghali Too few scanlines 
has duplicate 0011139 closedjghali Large documents get corrupted 
has duplicate 0011275 closedjghali Corruption 
has duplicate 0015066 closedjghali Scribus stopps / crashes after linking more than 200 images to image frame 
has duplicate 0015174 closedjghali segfault - perhaps when thumbnailing? 
has duplicate 0015566 closedjghali Random failure to see jpeg files 
has duplicate 0016041 closedjghali lots of crashes 
has duplicate 0016369 closedjghali Inserting pictures problem 
child of 0002438 acknowledged Metabug: Cases of extreme memory use 

Activities

2006-11-12 21:05

 

ScribusCrash2.txt (3,474 bytes)   
Information from the MS Visual Studio 2005 debugger:
Access violation at 0x0317cce5 attempting to read location 0x00000000

This AV is because ebx=0.

Disassembly around crash location, 0317cce5:
0317CCC5 00 44 40 00      add         byte ptr [eax+eax*2],al 
0317CCC9 00 00            add         byte ptr [eax],al 
0317CCCB 00 00            add         byte ptr [eax],al 
0317CCCD 00 44 40 00      add         byte ptr [eax+eax*2],al 
0317CCD1 00 00            add         byte ptr [eax],al 
0317CCD3 00 00            add         byte ptr [eax],al 
0317CCD5 00 44 40 00      add         byte ptr [eax+eax*2],al 
0317CCD9 00 00            add         byte ptr [eax],al 
0317CCDB 00 00            add         byte ptr [eax],al 
0317CCDD 00 44 40 00      add         byte ptr [eax+eax*2],al 
0317CCE1 00 00            add         byte ptr [eax],al 
0317CCE3 00 10            add         byte ptr [eax],dl 
0317CCE5 0B 1B            or          ebx,dword ptr [ebx] 
0317CCE7 03 C8            add         ecx,eax 
0317CCE9 93               xchg        eax,ebx 
0317CCEA 1A 03            sbb         al,byte ptr [ebx] 
0317CCEC 78 A7            js          0317CC95 
0317CCEE 17               pop         ss   
0317CCEF 03 00            add         eax,dword ptr [eax] 
0317CCF1 00 00            add         byte ptr [eax],al 
0317CCF3 00 68 AA         add         byte ptr [eax-56h],ch 
0317CCF6 2F               das              
0317CCF7 03 B8 AD 2F 03 14 add         edi,dword ptr [eax+14032FADh] 
0317CCFD 89 F9            mov         ecx,edi 
0317CCFF 39 00            cmp         dword ptr [eax],eax 
0317CD01 00 00            add         byte ptr [eax],al 
0317CD03 00 00            add         byte ptr [eax],al 
0317CD05 00 00            add         byte ptr [eax],al 
0317CD07 00 00            add         byte ptr [eax],al 
0317CD09 00 00            add         byte ptr [eax],al 
0317CD0B 00 00            add         byte ptr [eax],al 
0317CD0D 00 00            add         byte ptr [eax],al 
0317CD0F 00 FF            add         bh,bh 
0317CD11 ??               db          ffh  
0317CD12 ??               db          ffh  
0317CD13 FF 00            inc         dword ptr [eax] 
0317CD15 00 00            add         byte ptr [eax],al 
0317CD17 00 00            add         byte ptr [eax],al 
0317CD19 00 00            add         byte ptr [eax],al 
0317CD1B 00 08            add         byte ptr [eax],cl

Call stack:
	0317cce5()	
 	Scribus.exe!0040a229() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for Scribus.exe]	
 	qt-mt3.dll!39edf812() 	
 	Scribus.exe!0065ada1() 	
 	Scribus.exe!0065ad3a() 	
 	Scribus.exe!004094ed() 	
 	Scribus.exe!005f6263() 	
 	Scribus.exe!00761475() 	
 	Scribus.exe!004eedf8() 	
 	Scribus.exe!004ef0fb() 	
 	Scribus.exe!004ef15b() 	
 	Scribus.exe!00720adf() 	
 	Scribus.exe!0072089b() 	
 	kernel32.dll!7c816fd7() 	
 	Scribus.exe!00620069() 	
 	Scribus.exe!00690068() 	
 	Scribus.exe!0061004d() 	
 	Scribus.exe!00690068() 	
 	Scribus.exe!0061004d() 	
 	Scribus.exe!006c0044() 	
 	Scribus.exe!006c0044() 	
 	Scribus.exe!00690068() 	
 	Scribus.exe!0061004d() 	
 	Scribus.exe!006c0044() 	
 	Scribus.exe!006c0044() 	
 	Scribus.exe!00690068() 	
 	Scribus.exe!0061004d() 	

Registers:
EAX = 00D50050 EBX = 00000000 ECX = 0317CC90 EDX = 00D506D4 ESI = 01C94E5C 
EDI = 032FE148 EIP = 0317CCE5 ESP = 0012FD4C EBP = 0012FD98 EFL = 00000283 
ScribusCrash2.txt (3,474 bytes)   

jghali

2007-01-31 23:12

administrator   ~0015059

This is solvable by using shared objects for image. Will try to work on that for 1.3.6/1.3.7

Kunda

2014-07-15 12:26

updater   ~0032767

Rapidshare links is obsolete. How big was the image? (so I can reproduce)

jberg

2018-03-01 09:49

reporter   ~0045015

Last edited: 2020-08-25 05:30

I couldn't add any more notes over on 0015174, but would like to add that (a) the images I had were downscaled to 2048 longer side (mostly 2:3 and 3:4 format), and that it also doesn't generally happen while loading this document, only while loading it for the first time with nwe images, or so.

I have no reason to doubt your analysis, but I have (including swap) about 12-14 GB available memory, and scribus (1.5.4svn) uses about 6 or 7 while having three such documents open.

So I think in my case it would imply that something is - perhaps when thumbnailing - leaking memory? Once I open the document a few times or do the same steps a few times eventually I no longer get a crash and can work with the document just fine.

pavlii

2020-12-01 23:38

reporter   ~0048515

I add a note here because my duplicate thread had been closed; if I drag&drop the image from File browser into Scribus` picture frame it works (1.5.6/1.5.6.1). Even I had added more RAM (actually 10GB, after Scribus with my document running there was more than 5GB RAM free according to system monitor) the freezing was not solved So I suppose the proglem might be somewhere inside File Dialog when Inserting Picture file. Even that I do not suppose Scribus is not able to manage 250+ pages inside document containing hundreds of pictures - I am workin well due to the drag`n`drop functionality mentioned above.

Issue History

Date Modified Username Field Change
2006-11-12 21:05 sherwood New Issue
2006-11-12 21:05 sherwood File Added: ScribusCrash2.txt
2007-01-31 23:12 jghali Note Added: 0015059
2007-01-31 23:14 jghali Relationship added related to 0002438
2008-02-06 01:59 christoph_s Status new => assigned
2008-02-06 01:59 christoph_s Assigned To => jghali
2010-01-09 19:30 jghali Relationship added has duplicate 0008695
2011-06-11 18:03 jghali Relationship added has duplicate 0009491
2011-06-15 21:19 jghali Relationship added has duplicate 0010051
2011-06-18 18:06 jghali Relationship added has duplicate 0010059
2011-11-13 23:19 jghali Relationship added has duplicate 0010372
2012-01-27 12:35 jghali Relationship added has duplicate 0010544
2012-06-28 19:10 jghali Relationship added has duplicate 0010818
2012-11-06 23:53 jghali Relationship added has duplicate 0011139
2012-12-17 13:26 jghali Relationship added has duplicate 0011275
2014-07-15 12:26 Kunda Note Added: 0032767
2014-09-11 02:47 Kunda Severity crash => block
2014-09-11 22:22 Kunda Severity block => crash
2014-09-11 22:22 Kunda Target Version => 1.5.1
2014-09-11 22:34 Kunda Target Version 1.5.1 =>
2014-09-13 13:40 Kunda Relationship replaced child of 0002438
2015-09-17 20:10 Kunda Category Graphics / Image Frames => Graphics/Img Frames
2015-09-17 20:11 Kunda Category Graphics/Img Frames => Graphics / Image Frames
2017-12-11 12:58 jghali Relationship added has duplicate 0015066
2018-03-01 00:00 jghali Relationship added has duplicate 0015174
2018-03-01 09:49 jberg Note Added: 0045015
2019-02-01 22:35 jghali Relationship added has duplicate 0015566
2020-02-09 17:52 jghali Relationship added has duplicate 0016041
2020-08-25 05:30 ale Note Edited: 0045015
2020-11-30 22:22 jghali Relationship added has duplicate 0016369
2020-12-01 23:38 pavlii Note Added: 0048515