PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000283 [PDFedit] Treeview crash always 01-31-09 21:54 08-22-09 08:08
Reporter alcharkov View Status public  
Assigned To bilbo
Priority normal Resolution open  
Status assigned   Product Version 0.4.2
Summary 0000283: PDFedit Crash when i remove page a third time from tree
Description PDFedit in Ubuntu 8.10 crash an close when i remove page at third time in Tree-Object-Pages. For egzample I need to remove page 1, 2 and 3, so there is always crash exactly on removing third page.
Additional Information
Attached Files  LM35CAZ.pdf [^] (317,676 bytes) 02-03-09 12:23
 gdb [^] (11,980 bytes) 02-12-09 10:55

- Relationships
related to 0000078assigned bilbo GUI Crash when changing relative position 
related to 0000286assigned bilbo GUI Weird things happen with multiple selections in the tree view 
related to 0000317assigned bilbo PDFedit segmentation fault when trying to change font properties or color 

- Notes
(0000641)
hockm0bm
02-01-09 13:41

Hi,
do you see the same behavior with the current 0.4.2 as well?
Does it happen for all documents? (could you upload document which triggers the crash)?
 
(0000644)
alcharkov
02-02-09 17:42

Yes, I downloaded 0.8.2 version from packages.debian.org and same crash and tried with different pdf's.
Also I tried to run pdfedit from console and here is my output:
Here I delete first page:
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
Second page:
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
And third:
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
Segmentation fault
 
(0000645)
hockm0bm
02-02-09 17:53

Could you upload at least one file which triggers the crash?
 
(0000646)
alcharkov
02-02-09 18:56

pdf file?
 
(0000647)
hockm0bm
02-02-09 18:57

> pdf file?

Exactly (so that I can try to reproduce).
 
(0000648)
alcharkov
02-03-09 12:24

I uploaded it in bug report.
http://pdfedit.petricek.net/bt/file_download.php?file_id=110&type=bug [^]
 
(0000649)
hockm0bm
02-03-09 13:29

I am not able to reproduce any crash. I have tried
* remove page by "Remove page"
* delete page from the pages list [*]

and I was able to to remove all pages this way.

Do you see the same behavior if you delete page by the "Remove page"?
Could you compile pdfedit with debug symbols (./configure --disable-release; make) and provide the core file?

[*] This has a minor issue, that the pages list is not updated after page is deleted. This is already reported as 0000281
 
(0000650)
alcharkov
02-06-09 20:21

Same problem are in Debian with 0.4.2 version from experimental repository.

>* remove page by "Remove page"
Here is ok'ey, no crashing.
>* delete page from the pages list [*]
Crashing only here.

I tried to compile but i have some problems, it said that need -pdfedit-core-dev.
 
(0000651)
hockm0bm
02-09-09 09:10

> I tried to compile but i have some problems, it said that need -pdfedit-core-dev.

Could you describe how you proceed (step-by-step) when you tried to compile and got this error?
 
(0000652)
alcharkov
02-11-09 16:51

So i compiled it successfully and it's same issue:
user@debian:~/Desktop/pdfedit-0.4.2/src/gui$ ./pdfedit
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not valid. Changing it to buffer size.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
Segmentation fault
 
(0000653)
hockm0bm
02-11-09 18:06

> So i compiled it successfully and it's same issue:
> user@debian:~/Desktop/pdfedit-0.4.2/src/gui$ ./pdfedit
> 2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
[...]
> 1:KERNEL:cstream.cc:_makeXpdfObject:258: Length attribute of a stream is not > valid. Changing it to buffer size.
> 2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.
> 2:KERNEL:cpagefonts.cc:getFontIdsAndNames:190: No resource dictionary.

I could see the same messages as well, but they are not so big deal about them as it looks like.

> Segmentation fault

could you please try following:

- make distclean # in the pdfedit top directory and configure with debug symbols:

- ./configure --disable-release # this will turn off optimizations and add debug symbols

- make # it is enough in the src directory

- gdb gui/pdfedit # if you are in src directory

- start # to run program

- bt # after application crashes and send the output of the trace (be aware that it will display many lines)
 
(0000654)
alcharkov
02-12-09 10:56

Use used run command instead start, because start command didn't start gui. Is't ok? I uploaded gdb output http://pdfedit.petricek.net/bt/file_download.php?file_id=111&type=bug [^]
 
(0000655)
hockm0bm
02-12-09 12:59

> Use used run command instead start, because start command didn't start gui.
> Is't ok?

Yes. In fact it is better, because start will run the application and place the breakpoint at the beginning of the main method, so you have to type continue.
Sorry for confusion

> I uploaded gdb output http://pdfedit.petricek.net/bt/file_download.php?file_id=111&type=bug [^] [^]

It doesn't look like problem with page deleting but as the problem with correct property tree handling in GUI.
 
(0000656)
hockm0bm
02-12-09 13:00

Martin, could you have a look at the issue?
 
(0000660)
alcharkov
02-12-09 16:55

Maybe it will be better if you change product version of this bug report to 0.4.2 :)
 
(0000869)
bilbo
07-03-09 18:20

Problem seems to be in the treeview - page is removed in the mouse click handler, which, as part of the code tries to reload the tree, causing the crash (qt3 treeview can't cope with this)

Properly fixing this won't be easy and would need rewrite of tree click handling code and adding some queue, so the deletion would actually occur outside of the tree click routine.

I expecty this bug won't be in the qt4 version of the GUI, as treeviews are handled quite differently in Qt4 and this code have to be rewritten.
 
(0000969)
andrei
08-22-09 08:08

Hi. I'm a linux newbie, so I just want to make a note to tell you that if you need more debbugging data, you can just ask me.
Right now I don't upload my debbugging because is quite similar to that uploaded (or noted) by hockm0bm (almost same distro too ;) ). However I add these items:
* Problem shows at versions 0.4.1, 0.4.2 and 0.4.3
* First two versions were installed via .deb packages, last one compiling the tarball downloaded from sourceforge.net with default options.
* Crash doesn't occur when selecting pages from the tree and deleting them with "Delete Object (Del)" button. However, this way didn't always work (just doesn't delete the pages sometimes, nor reflecting changes in tree or page view).

I'm currently running Debian Lenny (stable release) amd64, without any upgrade.
Sorry for I can't speak English so well. If you think debbugging data could be useful for you, please ask.
Thanks.
 

- Issue History
Date Modified Username Field Change
01-31-09 21:54 alcharkov New Issue
02-01-09 13:41 hockm0bm Note Added: 0000641
02-02-09 17:42 alcharkov Note Added: 0000644
02-02-09 17:53 hockm0bm Note Added: 0000645
02-02-09 18:56 alcharkov Note Added: 0000646
02-02-09 18:57 hockm0bm Note Added: 0000647
02-03-09 12:23 alcharkov File Added: LM35CAZ.pdf
02-03-09 12:24 alcharkov Note Added: 0000648
02-03-09 13:29 hockm0bm Note Added: 0000649
02-06-09 20:21 alcharkov Note Added: 0000650
02-09-09 09:10 hockm0bm Note Added: 0000651
02-11-09 16:51 alcharkov Note Added: 0000652
02-11-09 18:06 hockm0bm Note Added: 0000653
02-12-09 10:55 alcharkov File Added: gdb
02-12-09 10:56 alcharkov Note Added: 0000654
02-12-09 12:59 hockm0bm Note Added: 0000655
02-12-09 12:59 hockm0bm Status new => assigned
02-12-09 12:59 hockm0bm Assigned To  => bilbo
02-12-09 13:00 hockm0bm Note Added: 0000656
02-12-09 16:55 alcharkov Note Added: 0000660
02-12-09 18:25 hockm0bm version 0.4.1 => 0.4.2
07-03-09 18:20 bilbo Note Added: 0000869
07-03-09 18:32 bilbo Relationship added related to 0000078
07-04-09 00:49 bilbo Relationship added related to 0000286
07-21-09 15:00 bilbo Relationship added related to 0000317
08-22-09 08:08 andrei Note Added: 0000969
08-22-09 08:10 andrei Issue Monitored: andrei