invalid state at end of execution

cory_isaacson
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.

Best Answers

Answers

  • cory_isaacson
    cory_isaacson Member, Developers Posts: 43 PRO
    I closed and reopened the browser (Chrome in this case) and now it's working again.
  • cory_isaacson
    cory_isaacson Member, Developers Posts: 43 PRO
    edited March 2017
    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.

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,274 image
    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 Inc
  • cory_isaacson
    cory_isaacson Member, Developers Posts: 43 PRO
    Thanks @ilya_baran I submitted a ticket last night and the team is working on it.
  • cory_isaacson
    cory_isaacson Member, Developers Posts: 43 PRO
    This appears to be working fine now, thanks.