sefer

Posts tagged with “error”

 

oh April 20

from the latest debugging session; this is another CFRetain / _NSKeyValueObservationInfoCreateByRemoving -related crash.

Exception raised during posting of notification.  Ignored.  exception: [<NSManagedObject 0x3dcc40> removeObserver:<NSTableBinder 0x37cff0> forKeyPath:@"generation.number"] was sent to an object that has no observers.

 

CRASH April 19

thread 1:

#0  0x90810820 in CFSetGetValueIfPresent
#1  0x929ff794 in NSHashInsertKnownAbsent
#2  0x93974c28 in -[_NSModelObservingTracker _startObservingModelObject:]
#3  0x93974b68 in -[_NSModelObservingTracker startObservingModelObjectAtReferenceIndex:]
#4  0x93974a5c in -[_NSModelObservingTracker setObservingToModelObjectsRange:]
#5  0x93974870 in -[_NSBindingAdaptor tableView:updateVisibleRowInformation:]
#6  0x937d0f24 in -[NSTableView drawRect:]
#7  0x93765e78 in -[NSView _drawRect:clip:]
#8  0x93765438 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
#9  0x93764a00 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#10 0x93764fc8 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#11 0x93764fc8 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#12 0x93764fc8 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#13 0x93764fc8 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#14 0x93785664 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
#15 0x9375e674 in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
#16 0x93753968 in -[NSView displayIfNeeded]
#17 0x937537d8 in -[NSWindow displayIfNeeded]
#18 0x93753684 in _handleWindowNeedsDisplay
#19 0x907e3cd8 in blogCFRunLoopDoObservers
#20 0x907e3f78 in blogCFRunLoopRun
#21 0x907e3a18 in CFRunLoopRunSpecific
#22 0x9321d980 in RunCurrentEventLoopInMode
#23 0x9321d014 in ReceiveNextEventCommon
#24 0x9321ce80 in BlockUntilNextEventMatchingListInMode
#25 0x93720104 in _DPSNextEvent
#26 0x9371fdc8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#27 0x9371c30c in -[NSApplication run]
#28 0x9380ce68 in NSApplicationMain
#29 0x00011fac in main at main.m:13

thread 2:

#0  0x9002c128 in semaphore_wait_signal_trap
#1  0x90030bec in pthread_cond_wait
#2  0x9374d74c in -[NSViewHierarchyLock lockForWriting]
#3  0x9374c458 in -[NSView setFrameSize:]
#4  0x93760e08 in -[NSControl setFrameSize:]
#5  0x937c7e84 in -[NSTableView setFrameSize:]
#6  0x937c6958 in -[NSTableView tile]
#7  0x937c6764 in -[NSTableView _tileAndRedisplayAll]
#8  0x9396e9fc in -[NSTableBinder _updateContent]
#9  0x9396e7e0 in -[NSTableBinder _observeValueForKeyPath:ofObject:context:]
#10 0x9396e5c4 in -[NSTableBinder observeValueForKeyPath:ofObject:change:context:]
#11 0x929fcd08 in -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:]
#12 0x93972608 in -[NSController _notifyObserversForKeyPath:change:]
#13 0x93972420 in -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:]
#14 0x93971b24 in -[NSArrayController setContent:]
#15 0x93bfee98 in -[_NSManagedProxy _managedObjectsChangedInContext:]
#16 0x92975ad8 in _nsnote_callback
#17 0x9080b4c4 in blogCFXNotificationPost
#18 0x908035a0 in _CFXNotificationPostNotification
#19 0x9295fee0 in -[NSNotificationCenter postNotificationName:object:userInfo:]
#20 0x940e22cc in -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:]
#21 0x940e2244 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:]
#22 0x940e16e8 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
#23 0x940e2a60 in -[NSManagedObjectContext executeFetchRequest:error:]
#24 0x0003e604 in -[GAThreadController prefForKey:] at GAThreadController.m:327
#25 0x0003ed74 in -[GAThreadController selectObjectThroughTourney:] at GAThreadController.m:407
#26 0x0003d170 in -[GAThreadController runSystem] at GAThreadController.m:179
#27 0x0003bf5c in +[GAThreadController runSystemWithGlob:] at GAThreadController.m:46
#28 0x92976194 in forkThreadForFunction
#29 0x9002ba68 in _pthread_body

 

evolution is dirty April 14

so I think I've got that last problem solved. But there's a problem in my fitness function, such that if there's an error in the creation of the file needed for analysis (in this case, caused by evaluating a beast with no genes at all), the fitness is inordinately high. (it gets a fitness of 0, which for this test, is the best possible).
So, evolution being the dirty, cheating fink it is, jumps all over that.
It sorta makes me happy, but it's still a low-down filthy trick.


 

GA_System has exited with status -1. April 14

#0  0x907c6ba4 in CFRetain
#1  0x929fc724 in _NSKeyValueObservationInfoCreateByRemoving
#2  0x929fc4fc in -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:]
#3  0x929fc3ec in -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:]
#4  0x93974d38 in -[_NSModelObservingTracker _registerOrUnregister:observerNotificationsForModelObject:]
#5  0x9396c7b8 in -[_NSModelObservingTracker clearAllModelObjectObserving]
#6  0x9396c664 in -[_NSModelObservingTracker setIndexReferenceModelObjectArray:clearAllModelObjectObserving:]
#7  0x9396e95c in -[NSTableBinder _updateContent]
#8  0x9396e7e0 in -[NSTableBinder _observeValueForKeyPath:ofObject:context:]
#9  0x9396e5c4 in -[NSTableBinder observeValueForKeyPath:ofObject:change:context:]
#10 0x929fcd08 in -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:]
#11 0x93972608 in -[NSController _notifyObserversForKeyPath:change:]
#12 0x93972420 in -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:]
#13 0x93971b24 in -[NSArrayController setContent:]
#14 0x93bfee98 in -[_NSManagedProxy _managedObjectsChangedInContext:]
#15 0x92975ad8 in _nsnote_callback
#16 0x9080b4c4 in blogCFXNotificationPost
#17 0x908035a0 in _CFXNotificationPostNotification
#18 0x9295fee0 in -[NSNotificationCenter postNotificationName:object:userInfo:]
#19 0x940e22cc in -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:]
#20 0x940e2244 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:]
#21 0x940e16e8 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
#22 0x940e2a60 in -[NSManagedObjectContext executeFetchRequest:error:]
#23 0x0003daf8 in -[GAThreadController prefForKey:] at GAThreadController.m:290
#24 0x0003e230 in -[GAThreadController selectObjectThroughTourney:] at GAThreadController.m:360
#25 0x0003c668 in -[GAThreadController runSystem] at GAThreadController.m:154
#26 0x0003b60c in +[GAThreadController runSystemWithGlob:] at GAThreadController.m:43
#27 0x92976194 in forkThreadForFunction
#28 0x9002ba68 in _pthread_body

 

thank god April 20

My life has been made 100x easier. So, I finally got the whole DC toolchain rebuilt. (I'll start with the bad news first -- yeah, there's bad news) Since I had to rebuild it, I figured I'd go with a brand-new, shiny build of everything, rather than the dusty old versions I was using. So I've got GCC 3.4.3, binutils-2.15, newlib-1.13.0, and the latest version of KallistiOS. Everything went through seemingly w/o a hitch, until I tried to test the cel-shading demo. It don't run. No errors or warnings. Just don't run.


--
KallistiOS ##version##: Tue Apr 19 22:44:40 PDT 2005
  greay@heosphoros.local:/Users/greay/cross/kos/kos
maple: active drivers:
    PuruPuru (Vibration) Pack: JumpPack
    VMU Driver: Clock, LCD, MemoryCard
    Mouse Driver: Mouse
    Keyboard Driver: Keyboard
    Controller Driver: Controller
  DMA Buffer at ac0e0a00
vid_set_mode: 640x480IL NTSC
fs_romdisk: mounting image at 0x8c05b854 at /rd
maple: attached devices:
  A0: Dreamcast Controller          (01000000: Controller)
  A1: Visual Memory                 (0e000000: Clock, LCD, MemoryCard)
  B0: Dreamcast Controller          (01000000: Controller)
  B2: Visual Memory                 (0e000000: Clock, LCD, MemoryCard)
vid_set_mode: 640x480IL NTSC
pvr: enabling vertical scaling for non-VGA

Soooo... what's the good news? Well, my testing process has been a little... convoluted, through necessity. The coder's cable (what ya use to transfer a program to the Dreamcast to run it, w/o burning a CD) doesn't work on my Mac. So I have a poor, lonely, Windows box w/o a monitor (Johnboy) connected to the DC. I use VNC to access that, FTP back into my machine, grab the file, and upload it to the DC. Except the old Windows DOS prompt doesn't have a scrollback buffer... So oftentimes, logs get lost. Well, since I got my old laptop fixed, I built dc-tool for that, instead. Now instead of VNC, I can just telnet into the machine connected to the DC. And linux is a lot nicer than DOS. Full scrollback, better command history, etc.
This'll make troubleshooting my current problem, to round this post out w/a nice sense of closure, 100x easier.