[Plugin] CleanUp
-
I will have a go at reproducing the error. I seem to think it happens after several consecutive runs of the cleanup script. Will get back to you as soon as it happens again.
-
Ok I managed to produce this error:
undefined method `hidden?' for #Sketchup::Vertex:0xea1acbc
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:1142:in
erase_hidden' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:134:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:133:ineach' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:133:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:130:ineach' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:130:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:768:ineach_entity_in_scope' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:1130:in
erase_hidden'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:568:incleanup!' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:488:in
show_cleanup_ui'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:incall' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:in
event_inputbox_close'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:into_proc' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
call'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:inclose' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
event_inputbox_accept'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:in `to_proc'All I did was attempt to cleanup two separate models. I used the default cleanup settings. The only thing I changed was to tell cleanup to clean the model rather than selected. When cleaning the second model the error above appears.
-
Attempting to repeat the cleanup process on a second model yields this error:
undefined method `current=' for #Sketchup::Face:0xdcbe564
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:564:in
cleanup!' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:488:in
show_cleanup_ui'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:incall' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:in
event_inputbox_close'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:into_proc' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
call'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:inclose' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
event_inputbox_accept'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:into_proc' (eval):114:in
call'
(eval):114I have now removed all but the most necessary plugins from my Sketchup installation. Any suggestions as to what I can do next to try and help resolve these issues ?
-
I don't restart Sketchup after these errors occur I get more and different error messages, like this one:
undefined method `hidden?' for #Sketchup::AttributeDictionary:0xdbb3c50
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:1142:in
erase_hidden' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:134:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:133:ineach' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:133:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:130:ineach' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/model.rb:130:in
each_entity'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:768:ineach_entity_in_scope' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:1130:in
erase_hidden'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:568:incleanup!' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:488:in
show_cleanup_ui'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:incall' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:178:in
event_inputbox_close'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:into_proc' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
call'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:inclose' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:159:in
event_inputbox_accept'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/inputbox.rb:9:into_proc' (eval):110:in
call'
(eval):110Would you like me to try reinstalling Sketchup or could this be a problem with the Ruby installation for the Mac ? Why is noone else reporting errors like this or is the case that most Sketchup users are on windows and these errors don't happen ?
-
I have now updated my version of Ruby to the latest (1.9.3) and these errors still occur. Just for your information.
-
@mp1963 said:
Why is noone else reporting errors like this or is the case that most Sketchup users are on windows and these errors don't happen ?
It's strange that these errors should show themselves now. There are many OSX users. ...but could it be a Lion issue? Your profile information is up to date?
-
Have updated my system specification to include the 10.7.3 update we got from Apple last week. Sadly I didn't know about your plugin prior to Lion so I can't comment its stability then but I agree it is most odd that other users are not reporting/seeing these issues. I am reasonably certain its not the way I build my models in Sketchup. The one I sent you a while ago was not odd in any way I don't think ?
Please let me know if there is anything I can help you track down what is going on here ?
-
No, the model looked fine. But the errors are the most bizarre I've ever seen. They make no sense what so ever!
@mp1963 said:
undefined method `current=' for #Sketchup::Face:0xdcbe564
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_cleanup.rb:564:in `cleanup!'
Line 564 in the plugin is:
model.materials.current = nil
Which would imply thatmodel.material
are returning a face instead of the model's material list. It's crazy!And the other errors says when when the script iterate the model entities it's getting vertices and attribute dictionaries... there is no way that should happen.
Sound like there's some wires getting crossed here - by the SketchUp core itself...
Could you try, for the sake of it, to reinstall SketchUp? Completely remove the old and try with just CleanUp? (I'm sorry about the awkwardness of doing that, but I really have no idea to what this could be. The old, "reset" and try again is the only thing I can think of.)
I might try to see if I can grab hold of a Googler and see if they know of any Lion issues.
I'm baffled...
-
Will reinstall Sketchup later on today and let you know what happens.
-
Ok, did a complete reinstall of Sketchup Pro. Installed only your Cleanup plugin. Same problems I am afraid
-
@mp1963 said:
Ok, did a complete reinstall of Sketchup Pro. Installed only your Cleanup plugin. Same problems I am afraid
I need to prod some Google minds on this I'm afraid.
Is there any other users out there with similar problem?
-
Will wait in eager anticipation. If there is anything I can do to help please let me know.
-
12 january 2012 !! Wow, time travel.
-
Time travel ??
-
The last update on the 12 January was some days ago; it's now 6 February 2012 ?
Jan, are you in a parallel dimension ?
-
I think Sweden's clocks run about 390 days behind the rest of the world.
-
Sshhhhh! Let's impress him with all the amazing technology he haven't seen yet!
-
It's the long dark winter nights... but hang on... thomthom is up near the Arctic Circle
-
-
I'm new here, please: help. I copy the downloaded file (tt_cleanup.rb) to plugin. When i get inti Scetch up (8 pro) a window pops up ERROR LOADING.
Advertisement