discuss-gnustep
[Top][All Lists]
Advanced

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

Porting Help


From: Lief Sinolumat
Subject: Porting Help
Date: Mon, 20 Mar 2006 16:57:14 -0500

Hi.

Looking for a little help porting and app over from Cocoa ...

The story so far:

I converted the nibs with nib2gmodel was able to load them up in GORM. The app 
has a few custom classes which GORM was able to figure out parsing the header 
files.  Basically only the menu had to be rearranged to conform to the GNUstep 
standard.  Pretty painless.

Some minor fiddling later, everything compiles but the app promptly crashes on 
a missing font (should this happen?). Fixed.

Now the app runs, but dumps core on the following method:

static void PSdecorateLine(float y, float w, float hg)
{
        [WhiteColor set];
        [NSBezierPath setDefaultLineWidth:1.0];
        [NSBezierPath strokeLineFromPoint:NSMakePoint(0.0, y-2)
                toPoint:NSMakePoint(w, y-2)];
        [[NSColor darkGrayColor] set];
        [NSBezierPath strokeLineFromPoint:NSMakePoint(0.0, y+hg)
                toPoint:NSMakePoint(w, y+hg)];
}

Anyone know what's going on here?  I'll admit I'm not too up on this PS drawing 
stuff.

Thanks

--PT

Backtrace follows.

Program received signal SIGSEGV, Segmentation fault.
0xbd64d441 in objc_msg_lookup () from /usr/lib/libobjc.so.2
(gdb) bt
#0  0xbd64d441 in objc_msg_lookup () from /usr/lib/libobjc.so.2
#1  0x0805639c in PSdecorateLine (y=318, w=700, hg=20) at TypistView.m:535
#2  0x0805663f in -[TypistView decorateLine:attr:] (self=0x8485008,
    _cmd=0x8062b18, line=1, attr=0) at TypistView.m:552
#3  0xbd275723 in L10 () from /usr/pkg/lib/libavcall.so.0
#4  0x08485008 in ?? ()
#5  0x08062b18 in _OBJC_SELECTOR_TABLE ()
#6  0x00000001 in ?? ()
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x00000000 in ?? ()
#10 0x42920000 in ?? ()
#11 0xc0600000 in ?? ()
#12 0x3f800000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0xbd5f9f6a in realloc () from /usr/lib/libc.so.12
#16 0xbd7cc53f in GSFFCallInvokeWithTargetAndImp ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#17 0xbd6c8f8c in callframe_do_call ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#18 0xbd716981 in -[NSConnection(Private) _service:forwardForProxy:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#19 0xbd715d05 in -[NSConnection(Private) handlePortMessage:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#20 0xbd7c9979 in -[NSMessagePort handlePortMessage:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#21 0xbd7c761e in -[GSMessageHandle receivedEvent:type:extra:forMode:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#22 0xbd7c9e7f in -[NSMessagePort receivedEvent:type:extra:forMode:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#23 0xbd7ff096 in -[GSRunLoopCtxt pollUntil:within:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#24 0xbd782e68 in -[NSRunLoop acceptInputForMode:beforeDate:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#25 0xbd7831fe in -[NSRunLoop runMode:beforeDate:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#26 0xbdad07c1 in -[GSDisplayServer(EventOps) getEventMatchingMask:beforeDate:in
Mode:dequeue:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-gui.so.0.10.2
#27 0xbd1731a1 in -[XGServer(X11Ops) getEventMatchingMask:beforeDate:inMode:dequ
eue:] ()
   from /usr/pkg/share/GNUstep/System/Library/Bundles/libgnustep-back-010.bundle
/./libgnustep-back-010
#28 0xbd9b7cbb in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue
:] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-gui.so.0.10.2
#29 0xbd9b686d in -[NSApplication run] ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-gui.so.0.10.2
#30 0xbd9a9e2b in NSApplicationMain ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-gui.so.0.10.2
#31 0x0804f15a in gnustep_base_user_main (argc=1, argv=0xbfbfed74)
    at Typist_main.m:4
#32 0xbd774eca in main ()
   from /usr/pkg/share/GNUstep/System/Library/Libraries/libgnustep-base.so.1.11.
2
#33 0x08049986 in ___start ()
#34 0x08049913 in _start ()
(gdb)





reply via email to

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