discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help getting GSPdf -GSFilePath working


From: Sebastian Reitenbach
Subject: Re: need help getting GSPdf -GSFilePath working
Date: Sun, 07 Nov 2010 12:08:31 +0100
User-agent: Thunderbird 2.0.0.22 (X11/20090701)

Hi,

Riccardo Mottola wrote:
> Hi,
>
> good that it works in CVS! A new release is due soon, it incorporates
> many fixes a couple of enhancements.
Great to hear.
>
> I never used the -GSFilePath option so I did not know it had a bug.
> However if the current version
It uses the Option when in GWorkspace, you click on a PDF file on the
Desktop.

> works for you it is good! Some memory issues in gsPath were fixed very
> recently as well as some time ago some issues in the app
> initialization. You may bahe benefited from them.
>
> Do some beta-testing... since a new release is coming! Let me know!
some tests reveal the following:
- using -GSFilePath parameter works with CVS version
- opening a PDF file, either via open command or GSFilePath, in about 3
of 5 tries,  I see the following message on the console:
  2010-11-07 11:30:22.033 GSPdf[29694] NSBitmapImageRep: nil image data
  then only the viewer opens, but I don't see the PDF, when I click on
the pages on top, or activate the AntiAlias checkbox, then it renders
the PDF fine. The other times it just works fine.
- I've one PDF that by a chance of 1 of 5 tries, crashes GSPdf, see the
backtrace from the core dump below.
  (I can send the PDF Off list if you want to try to reproduce, just let
me know)
Trying to run GSPdf directly from within gdb, doesn't seem to work, when
it tries to open a file, I see this [New Process <PID>], and then it
just sits there and waits...

Something that would be nice if GSPdf could remember that I had the
AntiAlias checkbox activated.

All tests done on OpenBSD, 4.8 -current, on i386. With latest available
releases of gnustep stable releases, using cairo backend. Ghostscript is
version 8.63, cairo version is 1.10.0.

BTW: two weeks ago at p2k10, I imported a couple of gnustep apps into
the OpenBSD ports tree, to see whats there take a look here:
http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/gnustep/
More will follow, as time permits...

cheers,
Sebastian



#0  0x1c00f4ec in -[PSDocument initWithPsFileAtPath:] (self=0x85be4e08,
_cmd=0x3c006050, path=0x84801a88) at PSDocument.m:333
333                   [psdmedia setWidth: doc->media[i].width];
(gdb) bt
#0  0x1c00f4ec in -[PSDocument initWithPsFileAtPath:] (self=0x85be4e08,
_cmd=0x3c006050, path=0x84801a88) at PSDocument.m:333
#1  0x1c00a09b in -[GSPdfDocument readFromFile:ofType:]
(self=0x88816b08, _cmd=0x2665d9a8, fileName=0x8384cda8,
    docType=0x857fdd28) at GSPdfDocument.m:98
#2  0x0673ee0d in -[NSDocument initWithContentsOfFile:ofType:]
(self=0x88816b08, _cmd=0x2665fb88, fileName=0x8384cda8,
    fileType=0x857fdd28) at NSDocument.m:116
#3  0x067417e9 in -[NSDocumentController
makeDocumentWithContentsOfFile:ofType:] (self=0x86b1e188, _cmd=0x2665fbc8,
    fileName=0x8384cda8, type=0x857fdd28) at NSDocumentController.m:388
#4  0x0674111e in -[NSDocumentController
openDocumentWithContentsOfFile:display:] (self=0x86b1e188, _cmd=0x3c0045f0,
    fileName=0x8384cda8, display=1 '\001') at NSDocumentController.m:557
#5  0x1c008abe in -[GSPdf application:openFile:] (self=0x81ce9048,
_cmd=0x266e05c0, app=0x89ae9f08, filename=0x8384cda8)
    at GSPdf.m:149
#6  0x06875021 in -[GSServicesManager application:openFile:]
(self=0x87240208, _cmd=0x26633ce8, theApp=0x89ae9f08,
    file=0x8384cda8) at GSServicesManager.m:583
#7  0x066d98de in -[NSApplication finishLaunching] (self=0x89ae9f08,
_cmd=0x26633dd0) at NSApplication.m:1127
#8  0x066d6570 in -[NSApplication run] (self=0x89ae9f08,
_cmd=0x26629c80) at NSApplication.m:1506
#9  0x066b7eb3 in NSApplicationMain (argc=3, argv=0xcfbdfb14) at
Functions.m:74
#10 0x1c00fab4 in gnustep_base_user_main (argc=3, argv=0xcfbdfb14) at
main.m:8
#11 0x07d2ed4e in main (argc=3, argv=0x1f8, env=0x296) at
NSProcessInfo.m:933
#12 0x1c001847 in ___start ()
#13 0x1c0017c7 in _start ()
#14 0x00000000 in ?? ()
Current language:  auto; currently minimal
(gdb) frame 0
#0  0x1c00f4ec in -[PSDocument initWithPsFileAtPath:] (self=0x85be4e08,
_cmd=0x3c006050, path=0x84801a88) at PSDocument.m:333
333                   [psdmedia setWidth: doc->media[i].width];
(gdb) list
328               psdmedia = [PSDocumentMedia documentMedia];
329                            
330               if (doc->pages[i].media != NULL)
331                 {
332                   [psdmedia setName: MAKESTRING
(doc->pages[i].media->name)];
333                   [psdmedia setWidth: doc->media[i].width];
334                   [psdmedia setHeight:
doc->media[i].height];                      
335                 }
336                            
337               [psdpage setMedia: psdmedia];



>
> Thank you,
>   Riccardo
>
> Sebastian Reitenbach wrote:
>> On Friday 05 November 2010 01:39:26 pm Sebastian Reitenbach wrote:
>>   
>>> Hi,
>>>
>>> I opened this bug report for GSPdf:
>>> https://savannah.nongnu.org/bugs/?31555
>>>
>>>      
>> I just found the cvs sources on savannah, and found that this is already
>> working there.
>>
>>    
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]