playMaker

Author Topic: PlayMaker causing Unity standalone to crash after splash screen  (Read 5277 times)

yotingo

  • Playmaker Newbie
  • *
  • Posts: 5
PlayMaker causing Unity standalone to crash after splash screen
« on: October 22, 2013, 06:21:19 PM »
100% of the time, right after the Unity splash screen my game crashes, reporting an Access Violation (0xc0000005).

If I disable EVERY PlayMaker script/component from my scene the crash disappears and my game works with no issues. I have not been able to reproduce the crash inside a new project, only my existing one (and every scene inside it). I have imported the latest version of Playmaker from the asset store and tried a "Reimport All".

With the help of Unity tech support they searched my call stacks and found the crash to happen in Resources.Load

Any help would be greatly appreciated. Please contact me if you need more information or if there is anything I can do to help.

Thanks!

PlayMaker version 1.7.5.f2
« Last Edit: October 22, 2013, 06:23:13 PM by yotingo »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #1 on: October 23, 2013, 01:52:45 AM »
Hi,

 Ok, and What resources are you loading?

Can you look at this:

http://unitytips.tumblr.com/post/56772992176/generic-resources-load-that-errors-on-null


How are you loading resources within PlayMaker?

bye,

 Jean

yotingo

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #2 on: October 23, 2013, 05:45:24 AM »
Hi Jean, thanks for the reply!

That's part of the problem, I don't believe I am loading any resources within PlayMaker. After double checking all my scripts and testing for a few more hours I have run into something really bizarre... It seems to be a problem with OnTriggerEnter.

To test this theory, I created a new object (cube). I attached an fsm that said:

Code: [Select]
State 1
Translate on Y (2 every second)
Success!  ^

That worked just fine so I selected the "Is Trigger" tick on the default box collider in the Inspector.
I changed the fsm to look like this:

Code: [Select]
State 1           State 2
OnTriggerEnter -->   DestroySelf
Crash!  ^

It crashes every time so I tried other variations like:

Code: [Select]
State 1           State 2
OnTriggerEnter -->   Translate on Y (2 every second again)
Crash!  ^

No matter what I put after an "OnTriggerEnter" transition, it crashes every time.

Another interesting discovery is that after experiencing a crash I can change the fsm back to the original working conditions (State 1: Translate on Y) but it will still crash every time until I delete the fsm completely and add a new one.

I have no idea what to do at this point. Any suggestions would be amazing!

Thanks again!
Yotingo


This Works:


This Doesn't

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #3 on: October 23, 2013, 05:56:32 AM »
Very strange... I haven't come across this before...

I notice from your bug report that you're building for Windows 64bit. Can you try building for another platform to see if that's the problem (e.g., Windows)? It's possible that something is behaving differently in the 64 bit build...

yotingo

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #4 on: October 24, 2013, 06:20:32 AM »
I tried tried building in 32bit Windows (tried development mode and normal) as well as a completely different PC but the results are the same. It still crashes just after the splash screen.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #5 on: October 24, 2013, 10:58:46 AM »
Are you using any custom actions or just stock Playmaker actions?
Does it run okay in the editor?
Are there any messages in the Playmaker console when running in the editor? E.g., about updated actions needing to be resaved.

yotingo

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #6 on: October 24, 2013, 04:59:11 PM »
I'm only using the stock actions.

It runs perfectly in the editor, with no errors in the Unity console and no messages in the PlayMaker console either (except "Tool windows disabled when playing. See preferences.")

If there is anything I can do to help solve this problem together, please let me know. I'm willing to meet online anytime! Whatever will help.

Thanks for the quick replies!
-Yotingo

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #7 on: October 24, 2013, 07:22:50 PM »
Can you share the project? Please PM me...

yotingo

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker causing Unity standalone to crash after splash screen
« Reply #8 on: October 26, 2013, 06:42:08 AM »
Thanks! PM sent

And I have found that MouseEnter and MouseExit also cause a crash.

Stranger still, is that having a DISABLED PlayMaker script on an ENABLED object will cause a crash.
« Last Edit: October 26, 2013, 07:19:59 AM by yotingo »