Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: yotingo 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
-
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
-
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:
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:
State 1 State 2
OnTriggerEnter --> DestroySelf
Crash! ^
It crashes every time so I tried other variations like:
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:
(http://imageshack.us/a/img59/3718/hi57.jpg)
This Doesn't
(http://imageshack.us/a/img20/581/nm5c.jpg)
-
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...
-
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.
-
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.
-
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
-
Can you share the project? Please PM me...
-
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.