playMaker

Author Topic: getting a weird Crash Log. A little help please.  (Read 8074 times)

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
getting a weird Crash Log. A little help please.
« on: February 13, 2014, 06:47:56 PM »
i have been getting this error and wondered if anybody could take a look and tell me what to go hunting for.  I have managed to find and fix all of my errors in the game except for this one.  I thinks its causing a game ending crash for about 20 % of my customers.....:(

NullReferenceException: Object reference not set to an instance of an object HutongGames.PlayMaker.ReflectionUtils.GetMemberInfo (System.Type type, System.String path) HutongGames.PlayMaker.FsmProperty.Init () HutongGames.PlayMaker.FsmProperty.CheckForReinitialize () HutongGames.PlayMaker.FsmProperty.SetValue () HutongGames.PlayMaker.Actions.SetProperty.OnUpdate () (at Assets/PlayMaker/Actions/SetProperty.cs:34) HutongGames.PlayMaker.FsmState.OnUpdate () HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state) HutongGames.PlayMaker.Fsm.Update () PlayMakerFSM.Update ()


Is this one error or more that one?

Thanks for any help and ill offer a free key to anybody that helps me resolve this.

Thanks in advance.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: getting a weird Crash Log. A little help please.
« Reply #1 on: February 13, 2014, 07:42:08 PM »
It's thrown by a Set Property action.

Can you submit a bug report so we can get more info on your Unity/Playmaker setup. Thanks!


devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #2 on: February 13, 2014, 08:44:19 PM »
Here is the crash report from one of my customers.

I have also filed a crash report from inside of unity.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: getting a weird Crash Log. A little help please.
« Reply #3 on: February 13, 2014, 09:26:38 PM »
There's something pretty funky in that crash report:
Code: [Select]
UnityForceFeedback.dll caused an Access Violation (0xc0000005)
  in module UnityForceFeedback.dll at 0023:703e12d3.

Error occurred at 2014-01-26_193632.
L:\D Series\DSERIESV091.exe, run by KastaRules.
37% memory in use.
0 MB physical memory [0 MB free].  <===================
0 MB paging file [0 MB free].
0 MB user address space [2819 MB free].
Read from location 00000000 caused an access violation.

0 MB physical memory [0 MB free] seems pretty suspicious. Out of memory or bad memory...?

If you're running out of memory when spawning all sorts of things could go wrong.
E.g., the Game Object isn't created and it's null in all actions that use it...

You could add some error checking to the Spawning behavior. E.g., after spawning check that the GameObject isn't null. But if you're really out of memory you're going to have other problems.

Maybe look into object pooling, so you're not making any new objects during gameplay. You make them all at the start of the level then disable/enable them as needed...

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #4 on: February 13, 2014, 10:02:53 PM »
im currently making them all load at the beginning of a scene.  I will look into the 0 memory.  I didnt notice that.

Im going to look at every Set Property in the garage area as well.  which is prob 200 of them....lol

Kevin


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: getting a weird Crash Log. A little help please.
« Reply #5 on: February 13, 2014, 11:19:49 PM »
Hi,

 What kind of property do you set? If it's ruffly everytime the same conponent and same property, I can probably make a custom action for this. Note that the crash is because of that, but that could ease the pain a little and maybe allow you to get that out of the way to see clearly what is going wrong ( or indeed if this was the actual source of the trouble).

bye,

 Jean

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #6 on: February 14, 2014, 01:00:37 PM »
Thanks Alex and Jean..... I am still looking into this and trying to recreate it.

Kevin

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #7 on: February 18, 2014, 05:06:08 PM »
Its seems to be doing it on a few of my customers computers and the error log looks the same.
Code: [Select]
Unity Player [version: Unity 3.5.7f6_795a449bc926]

UnityForceFeedback.dll caused an Access Violation (0xc0000005)
  in module UnityForceFeedback.dll at 0023:746212d3.

Error occurred at 2014-02-16_180346.
C:\Games\DSERIES\DSERIESV093.exe, run by tromoly.
26% memory in use.
0 MB physical memory [0 MB free].
0 MB paging file [0 MB free].
0 MB user address space [3376 MB free].
Read from location 00000000 caused an access violation.

Context:
EDI:    0x00090ce4  ESI: 0x00000000  EAX:   0x00000000
EBX:    0x0741e590  ECX: 0x293d3915  EDX:   0x0000011f
EIP:    0x746212d3  EBP: 0x0018f338  SegCs: 0x00000023
EFlags: 0x00010246  ESP: 0x0018f2cc  SegSs: 0x0000002b

Bytes at CS:EIP:
8b 08 8b 51 2c 68 bc 22 62 74 50 ff d2 3b c6 0f

I found this http://answers.unity3d.com/questions/13070/getting-the-unity-editor-to-work-in-windows-7-64-b.html
It had a similar crash log.... Something about creating a DEP exception?

The scene that is crashing is not a big scene at all.  Its a garage and has 10-15 static items in it. Nothing moving at all.  The problem is when the car is instantiated into the scene and the Force Feedback.dll is initialized by a script called Forcefeedback.cs ........ i think...lol

I just dont get the 0 MB thing.  Its the same on all computers that are crashing.  I cant get my dev machine to do it. SO frustrating.  I dont think the Playmaker set Property error is causing the crash.  Its still a problem but not a game ender like this crash is.   Im pretty sure its the Forcefeddback.dll that is doing it. 

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: getting a weird Crash Log. A little help please.
« Reply #8 on: February 24, 2014, 06:18:16 AM »
Hi,

where di you get this ForceFeedback.dll?

 I have a Force3DPro, so I may be able to double check here if it works.

bye,

 Jean

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #9 on: February 24, 2014, 08:56:09 AM »
i got it here http://forum.unity3d.com/threads/78268-Force-feedback-for-Windows.... but since i had all of this crashing.... i have since switched to a new one here: http://forum.unity3d.com/threads/159297-Force-Feedback-Controller-Toolkit

I just got it working this morning so i am making a build to test with customers to see if this crashes.  This new one is DirectInput and built from the Logitech SDK.  I have tested it and it seems to be working fine.  I will report back with even more news.

Kevin

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: getting a weird Crash Log. A little help please.
« Reply #10 on: February 24, 2014, 09:07:48 AM »
Hi,

 yep, interested in this. I have a project where forcefeedback would be welcomed indeed.


bye,

 Jean

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #11 on: February 25, 2014, 12:01:09 PM »
you should try the free demo of my game.... I have been told the FFB is as good as the "big guys".  I spent over 6 months tuning it and refining with more tools i made.
www.devotid.com/dseries/index.html

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: getting a weird Crash Log. A little help please.
« Reply #12 on: February 26, 2014, 01:28:11 PM »
Hi,

 Very good. I love RC. I have my own 1/8th track with driving podium in my backyard and all :) Saving this year to get a proper timing system  ;D

Bye,

 Jean

devotid

  • Playmaker Newbie
  • *
  • Posts: 45
Re: getting a weird Crash Log. A little help please.
« Reply #13 on: February 26, 2014, 03:16:34 PM »
Sorry, i was clear.... i have two games.
"RCSimulation" (radio controlled car simulation)
"D Series Simulation" (Full scale trophy trucks and rally car vehicle simulation with FFB)

I will send you some "media" unlock keys for you and Alex to try both of the full games.  The help you have given me over the years has been fantastic. 

There is NO WAY i could have done any of this without Playmaker.

PM Sent.

Kevin