Thu 13 Jan 2011 09:22:24 AM UTC, original submission:
Instead of opening the EPS file, GSPdf throws an exception:
/usr/local/bin/GSPdf: Uncaught exception NSRangeException, reason: Index 0 is out of range 0 (in 'objectAtIndex:')
It seems it doesn't get the page count right.
Problem occured with this EPS file:
http://www-cdf.fnal.gov/physics/new/qcd/exclu_ee_06/plots/excElec_electron_et.eps
But I've also seen with other EPS files too, actually found none, that worked.
Have seen the problem with OpenBSD i386, using gnustep latest stable, and on opensuse 11.3 x86_64, using gnustep from svn, and gspdf from CVS.
Below the backtrace on the exception from the OpenSUSE box:
#0 -[NSException raise] (self=0xd686f0, _cmd=0x7ffff7527580) at NSException.m:955
#1 0x00007ffff70048c2 in -[GSArray objectAtIndex:] (self=0xeade80, _cmd=0x615b30, index=0) at GSArray.m:331
#2 0x0000000000407e29 in -[GSPdfDocument makePage] (self=0xde5f50, _cmd=<value optimized out>) at GSPdfDocument.m:235
#3 0x000000000040999d in -[GSPdfDocument windowControllerDidLoadNib:] (self=0xde5f50, _cmd=<value optimized out>, winController=<value optimized out>) at GSPdfDocument.m:174
#4 0x00007ffff7968e3f in -[NSWindowController window] (self=0xddf560, _cmd=<value optimized out>) at NSWindowController.m:314
#5 0x00007ffff7969906 in -[NSWindowController showWindow:] (self=0xddf560, _cmd=<value optimized out>, sender=0xde5f50) at NSWindowController.m:386
#6 0x00007ffff700498e in -[GSArray makeObjectsPerformSelector:withObject:] (self=0xd3e8f0, _cmd=<value optimized out>, aSelector=0x7ffff7cc3780, argument=0xde5f50) at GSArray.m:352
#7 0x00007ffff7862fe8 in -[NSDocumentController openDocumentWithContentsOfFile:display:] (self=0xe9f840, _cmd=<value optimized out>, fileName=0x7bbfb0, display=1 '\001') at NSDocumentController.m:579
#8 0x000000000040691a in -[GSPdf application:openFile:] (self=0x9b74e0, _cmd=<value optimized out>, app=<value optimized out>, filename=0x7bbfb0) at GSPdf.m:149
#9 0x00007ffff77fd14f in -[NSApplication finishLaunching] (self=0x90c2f0, _cmd=<value optimized out>) at NSApplication.m:1124
#10 0x00007ffff77feef8 in -[NSApplication run] (self=0x90c2f0, _cmd=<value optimized out>) at NSApplication.m:1525
#11 0x00007ffff77dfc57 in NSApplicationMain (argc=<value optimized out>, argv=<value optimized out>) at Functions.m:89
#12 0x00007ffff62d4b7d in __libc_start_main () from /lib64/libc.so.6
#13 0x00000000004020d9 in _start () at ../sysdeps/x86_64/elf/start.S:113
|