Sketchup crashes with.rbs scrambled plugin

944 Views Asked by At

I have a plugin for Sketchup that is used by clients, and because this I need to Scrambler it to create a .rbs file. When the file is .rb, works perfectly, but when I scramble it to .rbs, the plugin crashes the Sketchup on Startup. Anyone know these problem?

2

There are 2 best solutions below

2
romuloigor On BEST ANSWER

I had this problem once, my plugin.rb checked if webdialog was already created before you created there again.

if mywebdialog.nil?;
     mywebdialog = UI :: WebDialog.new ("" ......

This code works in sketchup when it is .rb when it encrypts with Scramble .rbs it gives an error that is triggered BugSplat ... al checks in your code is not doing it.

Remove the "if mywebdialog.nil?;" And test again!

0
Kadu Azevedo On

Check if the webDialog is created before create another one.