invalid state at end of execution
cory_isaacson
Member, Developers Posts: 43 PRO
I had a FS feature working fine, then started getting this error. All I did was set the material for parts that were generated. Now I cannot get rid of the error, even if I roll back to before the point of setting the material. Any idea what's wrong? See the attached screen shot.

0
Best Answers
-
Ok, with the debug function hint, I was able to reproduce it and it does look like a regression. Will investigate.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
I believe it should be fixed now.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
-
I closed and reopened the browser (Chrome in this case) and now it's working again.
0 -
I was able to duplicate this again by assigning a material to several parts at once. I closed Chrome and reopened it, still the same issue. This time I could roll back before that change without restarting Chrome again and it seems to work. Definitely looks like a bug.
I tracked it down further, it is related to my use of debug. I have a logMessage function that looks like this:export function logMessage(context, debugFlag is boolean, text is string, object) {<br> if(!debugFlag)<br> return;<br> <br> println(text);<br> debug(context, object);<br>}<br><br>This function has been working fine for months, not sure what is different now.
0 -
That does sound like a bug -- something might have regressed in the release. I could not reproduce it just by creating a part studio with a few parts and assigning a material to a subset of them. Could you please submit a feedback ticket with reproduction steps and we'll take a look?
Thanks!Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0 -
Ok, with the debug function hint, I was able to reproduce it and it does look like a regression. Will investigate.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
Thanks @ilya_baran I submitted a ticket last night and the team is working on it.
0 -
I believe it should be fixed now.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
This appears to be working fine now, thanks.
0

