playMaker

Author Topic: PlayMaker Editor Window causing crash  (Read 6292 times)

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
PlayMaker Editor Window causing crash
« on: September 21, 2012, 07:31:50 PM »
I've been dealing with a crash for a while now. We are not sure when it started, but it has been getting worse and it's fairly consistent now.

The logs showed no error and Unity would crash.

The conditions to cause it are switching to and from the Variables tab, clicking on individual variables, right clicking certain transitions and now even attempting to view the FSM for certain GameObjects.

By Opening the PM editor and then using the dropdown to select the FSM, I am able to get one of the following errors or no error:

StackOverflowException
System.MonoType.GetFields(BindingFlags bindingAttr)

or

StackOverflowException
HutongGames.PlayMakerEditor.FsmInfo.FindVariableUsage( ... couldn't catch the rest.

or

StackOverFlowException
System.Reflection.MonoField.GetValue(System.Object obj)

When I'm able to see the FSM this way, right clicking on a particular transition causes a crash with no error (doesn't produce the "hey, your app crashed" message on either osx or windows.)

Anyone ever experience anything like this? Any help would be appreciated.
« Last Edit: September 21, 2012, 07:41:18 PM by rbarrera »

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: PlayMaker Editor Window causing crash
« Reply #1 on: September 22, 2012, 07:10:44 AM »
It can be very simple to fix if you have some luck.
First do make a backup of your game.
Then do remove ALL playmaker stuff (Playmaker folder)
Then you add playmaker again.
Then you restart the project and see how it works.
You can also try to import en older version of playmaker and see if that work.
The goal is to remove all old playmaker stuff and overwrite them with new.
This has worked for me in the past when there was strange things happen with craches etc.

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #2 on: September 25, 2012, 01:28:13 PM »
The big question would be whether I can save the work we've done, or will it be lost?

We're talking a huge 2GB+ project with lots of playmaker stuff. To have to re-do it is completely out of the question.

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: PlayMaker Editor Window causing crash
« Reply #3 on: September 25, 2012, 01:38:10 PM »
The big question would be whether I can save the work we've done, or will it be lost?

We're talking a huge 2GB+ project with lots of playmaker stuff. To have to re-do it is completely out of the question.

If you have a good backup then it would not be a problem.
If something goes wrong you can make a restore.
This is something you always should have.

So if you try what I did write before you can see if that solve your problem.

You could also try all thing on a different computer to see if it works there. Then your risk will even less.

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #4 on: September 25, 2012, 01:55:15 PM »
Yeah, we have everything on SVN, so it would not be a problem to go back to a previous version.

I'm just assuming there is a file somewhere that stores all the information that goes into the various FSMs that I should not delete, otherwise I don't see how it would "remember" all the work that was done.

BTW, this problem occurs across different computers on different OSs with different build targets.

Thanks
-Ray

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: PlayMaker Editor Window causing crash
« Reply #5 on: September 25, 2012, 02:01:56 PM »
Yeah, we have everything on SVN, so it would not be a problem to go back to a previous version.

I'm just assuming there is a file somewhere that stores all the information that goes into the various FSMs that I should not delete, otherwise I don't see how it would "remember" all the work that was done.

BTW, this problem occurs across different computers on different OSs with different build targets.

Thanks
-Ray

Okey,

Its not wise to mix different OS etc more then needed.
Only that can make strange things happen.

Only custom actions and your global actions you need to take a backup of if you delete the Playmaker map.
Your goal is only the refresh the playmaker stuff so its not that the problem is.
 

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #6 on: September 25, 2012, 02:40:47 PM »
Tried re-installing and no dice.

Any idea where I can get an older version of PlayMaker?

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: PlayMaker Editor Window causing crash
« Reply #7 on: September 25, 2012, 02:43:50 PM »
Tried re-installing and no dice.

Any idea where I can get an older version of PlayMaker?

I guess you need to ask Alex about that.
If you are a beta tester you can also have a lot of versions to try out.

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #8 on: September 25, 2012, 02:47:47 PM »
Thanks for the help anyway.

I submitted a couple of bug reports on the matter.

It sucks because I'm stuck not being able to add or edit playmaker stuff that is in place because it crashes too often.

I love the tool, but it doesn't seem to work well with large projects.


Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: PlayMaker Editor Window causing crash
« Reply #9 on: September 25, 2012, 02:59:16 PM »
Thanks for the help anyway.

I submitted a couple of bug reports on the matter.

It sucks because I'm stuck not being able to add or edit playmaker stuff that is in place because it crashes too often.

I love the tool, but it doesn't seem to work well with large projects.



Maybe, but it can also be a bug in Unity 3D. Its not the first time. lol.
Thats way I asked you if you had a clean computer you could install everything from scratch to see what it can be.

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #10 on: September 25, 2012, 03:17:54 PM »
Well I'm using Playmaker in several smaller projects on the same version of unity. This is the only project causing the issue and its also the biggest.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker Editor Window causing crash
« Reply #11 on: September 26, 2012, 12:51:30 AM »
Hi,

 Are you only using playmaker tools in that project? what else do you have ( like Photon, or a sqlite or any other framework from the asset store)

 What is your unity layout? try removing one tab at a time, work and if crashing, remove another one, until it doesn't crash anymore. The actual Unity inspector is also in the line here, ANY tab.

I have a very big project going on with playmaker and it's stable.

At what point does it crash? Do you make reports to Unity when it crashes? I know you can't really zip your project on crash, but they do mention that even without, they can find patterns in the report itself, and could find the potential issue.

bye,

 Jean

rbarrera

  • Playmaker Newbie
  • *
  • Posts: 7
Re: PlayMaker Editor Window causing crash
« Reply #12 on: September 26, 2012, 12:59:59 PM »
Hello,

I'm using Hard Surface shader and that's it. There were other packages in there but I've removed them all (in trying to isolate the problem).

I'm using a custom layout which is a variation of the tall layout. I'll try removing panels to see what happens.

The crash happens at different points, sometimes when I click the variables tab, sometimes when I click on a variable, sometimes when I attempt to open a FSM in the PlayMaker window, sometimes when I right click a transition and sometimes when I try to switch the order of actions within the state. It definitely hints to something GUI-related, so I'm going to try your method of removing tabs.

Unfortunately, the errors I was able to dig up are the only ones I get. Usually, when it crashes, I get absolutely no warning, log or post-crash prompt (to send a bug report, for example).

-Ray

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker Editor Window causing crash
« Reply #13 on: September 27, 2012, 01:11:55 AM »
Hi,

 ok, good luck with your debugging, I know how difficult such problems are.

bye,

 Jean