From: Rich C. <ric...@ma...> - 2007-10-29 00:06:59
|
Justin, Do you think it would be a matter of determining what NSInternalInconsistencyException can be caused by and attempting to handle each? Or do you think that maybe Safari that shipped with Leopard is what broke it? I sort of suspected my install at first because I upgraded to Leopard rather than a clean install. I am new to RubyCocoa so I am not sure of what might be happening. I also tried upgrading WebKit with the latest nightly build to see if that mattered but it didn't seem to. Not sure how that works (or how to roll WebKit back to the default configuration that comes from Leopard). Still confused, but willing to do what I can to try and help. Thanks, RC On Oct 27, 2007, at 5:25 PM, Justin Palmer wrote: > I've gotten a bit further, but it's still not fixed. > > http://pastie.textmate.org/111565 > > There is a problem with lockFocus. Looks like an > NSInternalInconsistencyException can be a number of things, and I > can't extract > anything useful from the error message: > > 2007-10-27 16:19:30.062 ruby[6927:10b] *** Assertion failure in - > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ > AppKit.subproj/NSView.m:4751 > 2007-10-27 16:19:30.064 ruby[6927:10b] > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: > OSX::OCException: NSInternalInconsistencyException - - > [WebHTMLView(0x1aa9ba0) lockFocus] failed with window=0x1a97610, > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `ocm_send' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `method_missing' > ./darkroom.rb:106:in `capture_and_save' > ./darkroom.rb:101:in `webView_didFinishLoadForFrame' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `ocm_send' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50:in `method_missing' > ./darkroom.rb:62:in `shoot' > ./darkroom.rb:52:in `initialize' > ./darkroom.rb:116:in `new' > ./darkroom.rb:116 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:51: [BUG] Segmentation fault > ruby 1.8.6 (2007-06-07) [universal-darwin9.0] > > > > On Oct 27, 2007, at 3:40 PM, Justin Palmer wrote: > >> I'm investigating it. It looks like initialize is being called >> multiple times. Also, applicationDidFinishLaunching never post. >> Moving some things around, removing initialize in favor of a custom >> init_with_options works, but there are still errors with lockFocus. >> >> 2007-10-27 15:38:48.256 ruby[4872:10b] *** Assertion failure in - >> [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ >> AppKit.subproj/NSView.m:4751 >> 2007-10-27 15:38: 48.258 ruby[4872:10b] >> ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: >> OSX::OCException: NSInternalInconsistencyException - - >> [WebHTMLView(0x1a6bf30) lockFocus] failed with window=0x1a5a2e0, >> windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_wrapper.rb:50:in `ocm_send' >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_wrapper.rb:50:in `method_missing' >> darkroom.rb:105:in `capture_and_save' >> darkroom.rb:101:in `webView_didFinishLoadForFrame' >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_wrapper.rb:50:in `ocm_send' >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_wrapper.rb:50:in `method_missing' >> darkroom.rb:62:in `shoot' >> darkroom.rb:52:in `initialize' >> darkroom.rb :115:in `new' >> darkroom.rb:115 >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_wrapper.rb:51: [BUG] Segmentation fault >> ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1] >> >> >> This is on Leopard. I haven't rebuilt RubyCocoa since I upgraded >> to Leopard though, thats a new set of problems. Once I rebuild I'll >> investigate further. >> >> Cheers, >> -Justin >> >> On 10/27/07, Laurent Sansonetti < lsa...@ap...> wrote: >> Hi Rich, >> >> In my environment darkroom.rb hangs, I can't reproduce the AppKit >> assertion failure. It used to work in Leopard in the past, I would >> definitely suspect WebKit to have changed in the meantime. >> >> Laurent >> >> On Oct 27, 2007, at 4:20 PM, Rich Curtis wrote: >> >> > Hi List, >> > >> > Tried running the RubyCocoa darkroom.rb (/Developer/Examples/ >> > RubyCocoa/ >> > Scripts/darkroom.rb) example today that came with the Leopard Dev >> > Tools Examples and it horked: >> > >> > 2007-10-27 10:18:43.399 ruby[544:10b] *** Assertion failure in - >> > [WebHTMLView lockFocus], /SourceCache/AppKit/AppKit-949/ >> > AppKit.subproj/ >> > NSView.m:4751 >> > 2007-10-27 10:18:43.401 ruby[544:10b] >> > ActiveReload::DarkRoom::Processor#webView_didFinishLoadForFrame: >> > OSX::OCException: NSInternalInconsistencyException - - >> > [WebHTMLView(0x9f023e0) lockFocus] failed with window=0x3ebc90, >> > windowNumber=-1, [self isHiddenOrHasHiddenAncestor]=0 >> > /System/Library/Frameworks/RubyCocoa.framework/Resources/ >> ruby/osx/ >> > objc/oc_wrapper.rb:50:in `ocm_send' >> > /System/Library/Frameworks/RubyCocoa.framework/Resources/ >> ruby/osx/ >> > objc/oc_wrapper.rb:50:in `method_missing' >> > darkroom.rb:99:in `capture_and_save' >> > darkroom.rb:95:in `webView_didFinishLoadForFrame' >> > /System/Library/Frameworks/RubyCocoa.framework/Resources/ >> ruby/osx/ >> > objc/oc_wrapper.rb:50:in `ocm_send' >> > /System/Library/Frameworks/RubyCocoa.framework/Resources/ >> ruby/osx/ >> > objc/oc_wrapper.rb:50:in `method_missing' >> > darkroom.rb:62:in `shoot' >> > darkroom.rb:52:in `initialize' >> > darkroom.rb:109:in `new' >> > darkroom.rb:109 >> > /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> > objc/ >> > oc_wrapper.rb:51: [BUG] Segmentation fault >> > >> > Anyone have a clue as to why the shipping RubyCocoa that comes with >> > Leopard would have a problem with this script? >> > >> > Thanks, >> > rich >> > >> > >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Splunk Inc. >> > Still grepping through log files to find problems? Stop. >> > Now Search log events and configuration files using AJAX and a >> > browser. >> > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > _______________________________________________ >> > Rubycocoa-talk mailing list >> > Rub...@li... >> > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> >> -- >> Justin Palmer >> http://alternateidea.com | http://lighthouseapp.com | http://activereload.net >> | http://warehouseapp.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |