Yes, here the output, I write just the final part, the rest is equal to the
previous message:
(gdb) f 3#3 0x00007ffff69a7e60 in -[NSCustomObject nibInstantiate]
(self=0x21e64b0, _cmd=0x7ffff6e216e0 <.objc_selector_list+208>) at
GSNibLoading.m:972972 [NSException raise:
NSInternalInconsistencyException(gdb) l967 aClass =
NSClassFromString(_className);968 }969970 if (aClass ==
nil)971 {972 [NSException raise:
NSInternalInconsistencyException973 format: @"Unable
to find class '%@'", _className];974 }975976 if
(GSObjCIsKindOf(aClass, [NSApplication class]) ||(gdb) po
_classNameNSCustomObject(gdb)
Subject: Re: Exception raised during xib loading
From: [email protected]
Date: Fri, 29 Nov 2013 14:56:26 +0100
CC: [email protected]
To: [email protected]
Could you please try to print out the _className instead of the class? That
should tell you which class is missing.You should also be aware that the
exception you did stack trace was a different one from the one you got
originally.
Fred
On the road
Am 29.11.2013 um 13:30 schrieb Slex Sangiuliano <[email protected]>:
When I ran StepChat on gnustep and I set to load the MainMenu.xib instead of
MainMenu.gorm, an expception is raised with this message on the termianl:
2013-11-29 13:08:25.720 StepChat[8164]Is not possible to load the model file
'MainMenu'2013-11-29 13:08:25.750 StepChat[8164]
/usr/GNUstep/Local/Library/Headers/GNUstepBase/GSIArray.h:549 Assertion failed
in GSIArrayItem GSIArrayItemAtIndex(GSIArray, unsigned int).
NSInvalidArgumentException2013-11-29 13:08:25.750 StepChat[8164] Problem
posting notification: <NSException: 0x121cd40>
NAME:NSInternalInconsistencyException
REASON:/usr/GNUstep/Local/Library/Headers/GNUstepBase/GSIArray.h:549 Assertion
failed in GSIArrayItem GSIArrayItemAtIndex(GSIArray, unsigned int).
NSInvalidArgumentException INFO:(null)
Note: I implemented the .xib on OS X (10.7, 10.9)
I made a backtrack and I attach here;
as you can see the aClass is nil, however in the backtrack log I made, there
are also the commands I ran to debug and see what is the problem.
I don't remember if the netiquette want to attach the file and also post here
the file content; to be sure I post also the file content here, but please
notice me if I shouldn't do.
Cheers,
Alex (Slex)
-----------------------------------------------------------------------------------------------
(gdb) break [NSException raise]Function "[NSException raise]" not defined.Make
breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 ([NSException raise]) pending.(gdb) runStarting program:
/home/alex/Etoile/Services/User/StepChat/StepChat.app/StepChatwarning: no
loadable sections found in added symbol-file system-supplied DSO
at0x7ffff7ffa000warning: Could not load shared library symbols for
linux-vdso.so.1.Do you need "set solib-search-path" or "set sysroot"?[Thread
debugging using libthread_db enabled]Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".2013-11-29 13:09:18.256
StepChat[8236] Loading 2 user defined AppKit bundles2013-11-29 13:09:18.257
StepChat[8236] Loaded
'/usr/GNUstep/System/Library/Bundles/EtoileMenus.bundle'2013-11-29 13:09:18.278
StepChat[8236] Loaded
'/usr/GNUstep/System/Library/Bundles/EtoileBehavior.bundle'[New Thread
0x7fffe9135700 (LWP 8240)][Thread 0x7fffe9135700 (LWP 8240) exited]Fontconfig
warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 10: Having
multiple values in <test> isn't supported and may not work as
expected2013-11-29 13:09:19.185 StepChat[8236] File NSData.m: 162. In BOOL
readContentsOfFile(NSString *, void **, long *, NSZone *) Open ((null)) attempt
failed - badpath2013-11-29 13:09:19.185 StepChat[8236] Could not convert cursor
bitmap data
Breakpoint 1, -[NSException raise] (self=0x22d2ad0, _cmd=0x7ffff61e1fc0
<.objc_selector_list+480>) at NSException.m:959warning: Source file is more
recent than executable.959 if (_reserved == 0)(gdb) bt#0 -[NSException
raise] (self=0x22d2ad0, _cmd=0x7ffff61e1fc0 <.objc_selector_list+480>) at
NSException.m:959#1 0x00007ffff5c7d397 in +[NSException
raise:format:arguments:] ( self=0x7ffff61e1d50 <_OBJC_CLASS_NSException>,
_cmd=0x7ffff61e1e40 <.objc_selector_list+96>, name=0x7ffff61e1bb0
<.objc_str67>, format=0x7ffff6dfb2d0 <.objc_str294>, argList=0x7fffffffd1e0)
at NSException.m:852#2 0x00007ffff5c7d2ce in +[NSException raise:format:] (
self=0x7ffff61e1d50 <_OBJC_CLASS_NSException>, _cmd=0x7ffff6dfcb00
<.objc_selector_list+1744>, name=0x7ffff61e1bb0 <.objc_str67>,
format=0x7ffff6dfb2d0 <.objc_str294>) at NSException.m:838#3
0x00007ffff69a7e60 in -[NSCustomObject nibInstantiate] (self=0x21e68a0,
_cmd=0x7ffff6e216e0 <.objc_selector_list+208>) at GSNibLoading.m:972#4
0x00007ffff69f62df in -[GSXibLoader awake:inContainer:withContext:] (
self=0x16418a0, _cmd=0x7ffff6e21a30 <.objc_selector_list+1056>,
rootObjects=0x13d4620, objects=0x220d9f0, context=0xb4afa0) at
GSXibLoader.m:870#5 0x00007ffff69f6645 in -[GSXibLoader
loadModelData:externalNameTable:withZone:] (self=0x16418a0, _cmd=0x7ffff6d46b30
<.objc_selector_list+112>, data=0x1030a90, context=0xb4afa0,
zone=0x7ffff624ff18 <default_zone>) at GSXibLoader.m:917#6
0x00007ffff681355d in -[NSNib instantiateNibWithExternalNameTable:withZone:]
(self=0x10eb4e0, _cmd=0x7ffff6ce36a0 <.objc_selector_list+432>,
externalNameTable=0xb4afa0, zone=0x7ffff624ff18 <default_zone>) at
NSNib.m:153#7 0x00007ffff67231f9 in +[NSBundle(NSBundleAdditions)
loadNibFile:externalNameTable:withZone:] (self=0x7ffff61c36d0
<_OBJC_CLASS_NSBundle>, _cmd=0x7ffff6ce36d0 <.objc_selector_list+480>,
fileName=0x13676e0, context=0xb4afa0, zone=0x7ffff624ff18 <default_zone>)
at NSBundleAdditions.m:236#8 0x00007ffff6723936 in
-[NSBundle(NSBundleAdditions) loadNibFile:externalNameTable:withZone:]
(self=0x9ab3d0, _cmd=0x7ffff6ce36d0 <.objc_selector_list+480>,
fileName=0xa8b170, context=0xb4afa0, zone=0x7ffff624ff18 <default_zone>)
at NSBundleAdditions.m:342#9 0x00007ffff672340e in
+[NSBundle(NSBundleAdditions) loadNibNamed:owner:] ( self=0x7ffff61c36d0
<_OBJC_CLASS_NSBundle>, _cmd=0x7ffff6cc5c70 <.objc_selector_list+192>,
aNibName=0xa8b170, owner=0xb71ed0) at NSBundleAdditions.m:277#10
0x00007ffff66aee93 in NSApplicationMain (argc=1, argv=0x7fffffffd808) at
Functions.m:83#11 0x00000000004238d2 in main (argc=1, argv=0x7fffffffd808) at
main.m:18(gdb) f 3#3 0x00007ffff69a7e60 in -[NSCustomObject nibInstantiate]
(self=0x21e68a0, _cmd=0x7ffff6e216e0 <.objc_selector_list+208>) at
GSNibLoading.m:972972 [NSException raise:
NSInternalInconsistencyException(gdb) l967 aClass =
NSClassFromString(_className);968 }969970 if (aClass ==
nil)971 {972 [NSException raise:
NSInternalInconsistencyException973 format: @"Unable
to find class '%@'", _className];974 }975976 if
(GSObjCIsKindOf(aClass, [NSApplication class]) ||(gdb) po aClassCannot access
memory at address 0x0
<bk_log.txt>_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep