From: Rich C. <gen...@ma...> - 2007-10-27 14:20:54
|
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 |
From: Laurent S. <lsa...@ap...> - 2007-10-27 16:24:04
|
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 |
From: Justin P. <enc...@gm...> - 2007-10-27 20:40:22
|
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 |
From: Justin P. <enc...@gm...> - 2007-10-27 21:25:24
|
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 |
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 |
From: Rich C. <rc...@qu...> - 2007-10-29 03:21:41
|
Just a quick followup. webkit2png.py works fine, which leads me to believe the flaw might be in RubyCocoa and not WebKit. The Python script also calls lock.focus but it could be doing a lot of other stuff differently as well...just thought it was interesting. Thanks, RC On Oct 28, 2007, at 8:06 PM, Rich Curtis wrote: > 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 > |
From: kimura w. <ki...@us...> - 2007-11-03 08:58:59
|
Hi, It seems that the content of window is not drew. I added window.orderFront(), then darkroom.rb works fine on Leopard. Index: darkroom.rb =================================================================== --- darkroom.rb (revision 2102) +++ darkroom.rb (working copy) @@ -88,6 +88,7 @@ def webView_didFinishLoadForFrame(web_view, frame) viewport = web_view.mainFrame.frameView.documentView + viewport.window.orderFront(nil) viewport.window.display viewport.window.setContentSize([@options[:width], (@options[:height] > 0 ? @options[:height] : viewport.bounds.height)]) viewport.setFrame(viewport.bounds) On Sat, 27 Oct 2007 10:20:44 -0400, 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: > -- kimura wataru |
From: Laurent S. <lsa...@ap...> - 2007-11-03 15:32:14
|
In my environment (Leopard + Leopard's ruby + RubyCocoa trunk), darkroom.rb still hangs. Ruby is taking 100% of CPU time. It's maybe a RubyCocoa trunk regression. Laurent On Nov 3, 2007, at 4:58 AM, kimura wataru wrote: > Hi, > > It seems that the content of window is not drew. I added > window.orderFront(), then darkroom.rb works fine on Leopard. > > Index: darkroom.rb > =================================================================== > --- darkroom.rb (revision 2102) > +++ darkroom.rb (working copy) > @@ -88,6 +88,7 @@ > > def webView_didFinishLoadForFrame(web_view, frame) > viewport = web_view.mainFrame.frameView.documentView > + viewport.window.orderFront(nil) > viewport.window.display > viewport.window.setContentSize([@options[:width], > (@options[:height] > 0 ? @options[:height] : viewport.bounds.height)]) > viewport.setFrame(viewport.bounds) > > On Sat, 27 Oct 2007 10:20:44 -0400, 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: >> > -- > kimura wataru > > ------------------------------------------------------------------------- > 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 |
From: Rich C. <ric...@ma...> - 2007-11-04 12:52:23
|
Kimura, That fixed it for me. I am in your debt. Thanks, RC On Nov 3, 2007, at 11:32 AM, Laurent Sansonetti wrote: > In my environment (Leopard + Leopard's ruby + RubyCocoa trunk), > darkroom.rb still hangs. Ruby is taking 100% of CPU time. > > It's maybe a RubyCocoa trunk regression. > > Laurent > > On Nov 3, 2007, at 4:58 AM, kimura wataru wrote: > >> Hi, >> >> It seems that the content of window is not drew. I added >> window.orderFront(), then darkroom.rb works fine on Leopard. >> >> Index: darkroom.rb >> =================================================================== >> --- darkroom.rb (revision 2102) >> +++ darkroom.rb (working copy) >> @@ -88,6 +88,7 @@ >> >> def webView_didFinishLoadForFrame(web_view, frame) >> viewport = web_view.mainFrame.frameView.documentView >> + viewport.window.orderFront(nil) >> viewport.window.display >> viewport.window.setContentSize([@options[:width], >> (@options[:height] > 0 ? @options[:height] : >> viewport.bounds.height)]) >> viewport.setFrame(viewport.bounds) >> >> On Sat, 27 Oct 2007 10:20:44 -0400, 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: >>> >> -- >> kimura wataru >> >> ------------------------------------------------------------------------- >> 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 |
From: kimura w. <ki...@us...> - 2007-11-06 13:53:26
|
Hi, This problem was reproduced with r2102 and Leopard's ruby, and was not reproduced with r2102 and Tiger + ruby-1.8.6-p110(macports). On Sat, 3 Nov 2007 11:32:04 -0400, Laurent Sansonetti wrote: > In my environment (Leopard + Leopard's ruby + RubyCocoa trunk), > darkroom.rb still hangs. Ruby is taking 100% of CPU time. > > It's maybe a RubyCocoa trunk regression. > -- kimura wataru |
From: Laurent S. <lsa...@ap...> - 2007-11-06 20:13:20
|
Should be fixed in r2107. trunk has now a smarter slave creation mechanism (on demand), but this caused an infinite-loop because an object was passed to ObjC within its #initialize method (and the slave was being re-created infinitely). Laurent On Nov 6, 2007, at 8:53 AM, kimura wataru wrote: > Hi, > > This problem was reproduced with r2102 and Leopard's ruby, > and was not reproduced with r2102 and Tiger + ruby-1.8.6- > p110(macports). > > On Sat, 3 Nov 2007 11:32:04 -0400, Laurent Sansonetti wrote: >> In my environment (Leopard + Leopard's ruby + RubyCocoa trunk), >> darkroom.rb still hangs. Ruby is taking 100% of CPU time. >> >> It's maybe a RubyCocoa trunk regression. >> > -- > kimura wataru > > ------------------------------------------------------------------------- > 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 |