Seeking Advice | 5.5, Cryptic Crashing

Hey All,

Hoping someone can help point me in the right direction.

I’m experiencing a painful issue with 5.5 where the Windows stand-alone builds crash, and the Editor view does not, when some particle effects become active or during some scene changes. Doing a “development” build also stops the crash, but then it has the ugly Development Mode text.

I’ve reset the default shaders (in case it is a replica of the 5.3 UI bug). And changing the build away from stripped .NET makes no difference.

Now I’m hesitant to submit a bug report, because its a 20GB project. And to make it worse, the crash reports are completely unhelpful, but I’m suspecting there is an easier way to troubleshoot.

Example:

Unity Player [version: Unity 5.5.0f3_38b4efef76f0]

Abduction.exe caused an Access Violation (0xc0000005)
  in module Abduction.exe at 0033:d9091ef0.

Error occurred at 2016-12-04_021600.
F:\Builds\2016-12-03-9\Abduction.exe, run by Kerm_.
28% memory in use.
32733 MB physical memory [23330 MB free].
43997 MB paging file [27899 MB free].
134217728 MB user address space [134215259 MB free].
Read from location 00000008 caused an access violation.

Context:
RDI:    0x00000017  RSI: 0x000000b8  RAX:   0x00000000
RBX:    0x03377310  RCX: 0x03377310  RDX:   0x54863110
RIP:    0xd9091ef0  RBP: 0x00000000  SegCs: 0x00000033
EFlags: 0x00010246  RSP: 0x0111f700  SegSs: 0x0000002b
R8:    0x54863110  R9: 0x547e3110  R10:   0x0111f6e0
R11:    0x00000000  R12: 0x00000000  R13:   0xd913ac10
R14:    0x00000001  R15: 0x00000043

Bytes at CS:EIP:
ff 50 08 48 83 7b 20 00 c7 43 08 00 00 00 00 74

Stack:
0x0111f700: 51cffd50 00000000 00000000 00000000 P..Q............
0x0111f710: 000000a0 00000000 51cc7760 00000000 ........`w.Q....
0x0111f720: 0111f780 00000000 d923d2a2 00007ff6 ..........#.....
0x0111f730: ffffe99e 00000000 03387990 00000000 .........y8.....
0x0111f740: 03387990 00000000 031c5ff0 00000000 .y8......_......
0x0111f750: 0111f7f9 00000000 d924b9d5 00007ff6 ..........$.....
0x0111f760: 031c5ff0 00000000 03387990 00000000 ._.......y8.....
0x0111f770: 03387990 00000000 00021980 00000000 .y8.............
0x0111f780: 0000001e 00000000 0000001e 00000000 ................
0x0111f790: 0475a0c0 00000000 00000000 00000000 ..u.............
0x0111f7a0: 00000000 00000000 d924e03f 00007ff6 ........?.$.....
0x0111f7b0: 00000000 00000000 0000001e 00000000 ................
0x0111f7c0: 00000000 00000000 00000000 00000000 ................
0x0111f7d0: 00000005 0000000a 00000000 00000000 ................
0x0111f7e0: 00000000 00000000 00000000 00000000 ................
0x0111f7f0: 00000000 00000000 00000000 00000000 ................
0x0111f800: 00000000 00000000 13a9c510 00000000 ................
0x0111f810: 017f6f01 00000000 d9136a1f 00007ff6 .o.......j......
0x0111f820: 00000000 00000000 000013cc 00000000 ................
0x0111f830: 1390e410 00000000 00000000 00000000 ................
0x0111f840: 03387990 00000000 00000000 00000000 .y8.............
0x0111f850: 00000000 00000000 d913ac1b 00007ff6 ................
0x0111f860: 00000000 00000000 00000000 00000000 ................
0x0111f870: 04a93f30 00000000 00000000 00000000 0?..............
0x0111f880: 04a92250 00000000 d9137309 00007ff6 P".......s......
0x0111f890: 04a92250 00000000 00000436 00000000 P"......6.......
0x0111f8a0: 031c5ff0 00000000 031dff80 00000000 ._..............
0x0111f8b0: 03ff5cf0 00000000 d912ef7d 00007ff6 .\......}.......
0x0111f8c0: 00002874 00000000 ffffffff ffffffff t(..............
0x0111f8d0: 00000000 00000000 00000000 00000000 ................
0x0111f8e0: 031e01c0 00000000 00000000 00000000 ................
0x0111f8f0: 00000001 00000000 d9060000 00007ff6 ................
0x0111f900: 00000000 00000000 0111fb20 00000000 ........ .......
0x0111f910: 00000000 00000000 00000000 00000000 ................
0x0111f920: 0000071c 00000000 d9254d0b 00007ff6 .........M%.....
0x0111f930: 00006e0e 00000000 00000002 00000000 .n..............
0x0111f940: ffffe9d0 00000000 00000000 00000000 ................
0x0111f950: 0000071c 00000000 00000000 00000000 ................
0x0111f960: 0111f9e0 00000000 660892d0 00007fff ...........f....
0x0111f970: 0000071c 00000000 d981e777 00007ff6 ........w.......
0x0111f980: 00000001 00000000 0111f9e0 00000000 ................
0x0111f990: 00000001 00000000 00000001 00000000 ................
0x0111f9a0: 00000000 00000000 d981e94a 00007ff6 ........J.......
0x0111f9b0: 0000071c 00000000 00000000 00000000 ................
0x0111f9c0: 00000000 00000000 00000000 00000000 ................
0x0111f9d0: 00000001 00000000 00000008 00000000 ................
0x0111f9e0: 00163bd2 00000000 00000200 00000000 .;..............
0x0111f9f0: 00000000 00000000 021c0500 00000000 ................
0x0111fa00: 02b43f74 00000500 0000021c 00000000 t?..............
0x0111fa10: 00000000 00000000 d9822478 00007ff6 ........x$......
0x0111fa20: 00000004 00000000 0111fb20 00000000 ........ .......
0x0111fa30: 00000000 00000000 00000000 00000000 ................
0x0111fa40: 00000000 00000000 00000000 00007ff6 ................
0x0111fa50: 0000001d 00000000 d9921067 00007ff6 ........g.......
0x0111fa60: 00000000 00007ff6 65646900 646e6957 .........ideWind
0x0111fa70: 6c00776f 0000006c 00000000 00000000 ow.ll...........
0x0111fa80: 0000000f 00000000 d9942d4c 00007ff6 ........L-......
0x0111fa90: 65726170 5748746e 0100444e 00000000 parentHWND......
0x0111faa0: 0000000a 00000000 0000000f 00000000 ................
0x0111fab0: da0c1a98 00007ff6 02f42cc0 00000000 .........,......
0x0111fac0: 00000000 00000000 d9921067 00007ff6 ........g.......
0x0111fad0: 00000000 00000000 0000000f 00000000 ................
0x0111fae0: 017b0830 00000000 02f42d30 00000000 0.{.....0-......
0x0111faf0: 031e0400 00000000 d99333ed 00007ff6 .........3......
0x0111fb00: 00000025 00000000 0000002f 00000000 %......./.......
0x0111fb10: da235d70 00007ff6 031cfa30 00000000 p]#.....0.......
0x0111fb20: 031cfa80 00000000 031cfa80 00000000 ................
0x0111fb30: 6e755258 676e696e 031d7950 00000000 XRunningPy......
0x0111fb40: 00000004 00000000 00000034 00000000 ........4.......
0x0111fb50: 0000003f 00000000 756e6547 49656e69 ?.......GenuineI
0x0111fb60: 031d7890 00000000 64006400 64004200 .x.......d.d.B.d
0x0111fb70: 00000033 00000000 0000003f 00000000 3.......?.......
0x0111fb80: 444d4163 00000000 031e0370 00000000 cAMD....p.......
0x0111fb90: 00000000 00000000 0000002e 00000000 ................
0x0111fba0: 0000002f 00000000 d9943d70 00007ff6 /.......p=......
0x0111fbb0: 02f42cc0 00000000 02f42cc0 00000000 .,.......,......
0x0111fbc0: 00000001 00007ff6 80000000 00007ff6 ................
0x0111fbd0: da3be8d0 00007ff6 017b1f20 00000000 ..;..... .{.....
0x0111fbe0: 017b0830 00000000 00000000 00000000 0.{.............
0x0111fbf0: 00000000 00000000 00000000 00000000 ................
0x0111fc00: 0000000f 00000000 00eff000 00000000 ................
0x0111fc10: 00000000 00000000 00000000 00000000 ................
0x0111fc20: 00000000 00000000 d9927dd0 00007ff6 .........}......
0x0111fc30: 00000000 00000000 00eff000 00000000 ................
0x0111fc40: d9060000 00007ff6 00000000 00000000 ................
0x0111fc50: 00000000 00000000 00000000 00000000 ................
0x0111fc60: 00000068 00000000 0133218c 00000000 h........!3.....
0x0111fc70: 0133216c 00000000 01332122 00000000 l!3....."!3.....
0x0111fc80: 00000000 00000000 00000000 00000000 ................
0x0111fc90: 00000000 00000000 00000000 00000401 ................
0x0111fca0: 00000001 00000000 00000000 00000000 ................
0x0111fcb0: 00000000 00000000 001300ad 00000000 ................
0x0111fcc0: 00000000 00000000 00000000 00000000 ................
0x0111fcd0: 00eff000 00000000 90ca8102 00007fff ................
0x0111fce0: 00000000 00000000 d9927e18 00007ff6 .........~......
0x0111fcf0: 00000000 00000000 00000000 00000000 ................
0x0111fd00: d9927e18 00007ff6 9157c5b4 00007fff .~........W.....
0x0111fd10: 90ca80e0 00007fff 00000000 00000000 ................
0x0111fd20: 00000000 00000000 00000000 00000000 ................
0x0111fd30: 00000000 00000000 8dc97c70 00007fff ........p|......
0x0111fd40: 0111e880 00000000 0111e880 00000000 ................
0x0111fd50: 00000000 00000000 00000000 00000000 ................
0x0111fd60: 00000000 00000000 00000000 00000000 ................
0x0111fd70: 00000000 00000000 00000000 00000000 ................
0x0111fd80: 00000000 00000000 00000000 00000000 ................
0x0111fd90: 00000000 00000000 00000000 00000000 ................
0x0111fda0: 00000000 00000000 00000000 00000000 ................
0x0111fdb0: 00000000 00000000 00000000 00000000 ................
0x0111fdc0: 00000000 00000000 00000000 00000000 ................
0x0111fdd0: 00000000 00000000 00000000 00000000 ................
0x0111fde0: 00000000 00000000 00000000 00000000 ................
0x0111fdf0: 00000000 00000000 00000000 00000000 ................
0x0111fe00: 00000000 00000000 00000000 00000000 ................
0x0111fe10: 00000000 00000000 00000000 00000000 ................
0x0111fe20: 00000000 00000000 00000000 00000000 ................
0x0111fe30: 00000000 00000000 00000000 00000000 ................
0x0111fe40: 00000000 00000000 00000000 00000000 ................
0x0111fe50: 00000000 00000000 00000000 00000000 ................
0x0111fe60: 00000000 00000000 00000000 00000000 ................
0x0111fe70: 00000000 00000000 00000000 00000000 ................
0x0111fe80: 00000000 00000000 00000000 00000000 ................
0x0111fe90: 00000000 00000000 00000000 00000000 ................
0x0111fea0: 00000000 00000000 00000000 00000000 ................
0x0111feb0: 00000000 00000000 00000000 00000000 ................
0x0111fec0: 00000000 00000000 00000000 00000000 ................
0x0111fed0: 00000000 00000000 00000000 00000000 ................
0x0111fee0: 00000000 00000000 00000000 00000000 ................
0x0111fef0: 00000000 00000000 00000000 00000000 ................
0x0111ff00: 00000000 00000000 00000000 00000000 ................
0x0111ff10: 00000000 00000000 00000000 00000000 ................
0x0111ff20: 00000000 00000000 00000000 00000000 ................
0x0111ff30: 00000000 00000000 00000000 00000000 ................
0x0111ff40: 00000000 00000000 00000000 00000000 ................
0x0111ff50: 00000000 00000000 00000000 00000000 ................
0x0111ff60: 00000000 00000000 00000000 00000000 ................
0x0111ff70: 00000000 00000000 00000000 00000000 ................
0x0111ff80: 00000000 00000000 00000000 00000000 ................
0x0111ff90: 00000000 00000000 00000000 00000000 ................
0x0111ffa0: 00000000 00000000 00000000 00000000 ................
0x0111ffb0: 00000000 00000000 00000000 00000000 ................
0x0111ffc0: 00000000 00000000 00000000 00000000 ................
0x0111ffd0: 00000000 00000000 00000000 00000000 ................
0x0111ffe0: 00000000 00000000 00000000 00000000 ................
0x0111fff0: 00000000 00000000 00000000 00000000 ................

Opening the crash.dmp file is no help, it just shows the same error. Any one have any tips or advice on how to work with more cryptic Unity crashes?

Best regards

Lloyd

Can you share the log file and the crash dump?

1 Like

You bet!

http://redironlabs.com/Downloads/CrashExamples.zip
This set, appears to be crashing when when particle effects are enabled on a creature

Notes to self:

  • Reset the X/Y and Scale of the particle effects and resetting the default shaders, no change, still intermittently crashes in Standalone mode

I wasn’t expecting a response at this hour, thanks! If you need me to do a build and send over symbols/packages/files/anything, just shout.

http://redironlabs.com/Downloads/CrashSceneLoad.zip
This crash is when moving from one Scene to another Scene. It may be because the first Scene uses an Additive Scene Load. But not sure on that one yet… Doing more testing to try and narrow it down. Just takes a while because of the project size, but if I can just find the consistent cause, I’ll be able to report something useful…

Notes to self:

  • Not caused by Additive Scenes
  • Not caused by Async load of next scene
  • Doesn’t appear to be caused by Enlighten
  • Happens regardless of what “next” scene is selected, something is causing it in the initiating scene
  • Happens both when using a SceneManager load scene in a Start or in a Co-routine

Both were working prior to Unity 5.5.

Thanks. If you can find a way to recreate it in a small repro that would help.

Agreed, unfortunately in order to do that I need to figure out “how” the problem occurs… which means figuring out the data (if possible).

Do you know if there is a way get useful information out of Unity when these crashes occur? It is literally me spending hours randomly disabling things and rebuilding and rebuilding to try and find the cause. I know there has to be a smarter way that I can’t figure out … and unfortunately Development Mode builds don’t crash.

Are you able to share the Abduction.exe file? I dont need anything else, just the exe so i can view the crash dump data.

1 Like

Thank you, it’s all good! After ~30 builds and tests, I believe I’ve narrowed down the problem… Disabling particle systems seems to be what is crashing our game (I suspect only particles with a spritesheet texture set) - reproducible for us from 5.5.0.b9 to 5.5.0.f3. It looks like any standalone game using a few of the particle asset packs (VFX etc) in 5.5. will start reporting the problem.

When the player kills an enemy in our game, it destroys the objects taking-damage particle system (causing a crash).

When some things create a smoke-loop particle system (i.e. burning body) it works fine until you complete the level. Then it does a scene change and destroys the smoke-look particle system (causing a crash).

I’m going to narrow it down a bit more, get our title working and our patch released, and fire over a report with a project fort he QA team. Only impacts standalone non-dev builds. Thanks again

Hi Lloyd Summers,

As a team that just upgraded to 5.5 on Thursday, we had the same problem as you are describe, and you inspired us to lock it down. The thought of you uploading 20GB was too hard to bear.

It appears that for some, but NOT ALL, of our particle systems, we had to turn OFF prewarm to prevent our game from crashing upon scene load. I have verified that we can create a standalone windows build, with Development Build turned OFF, and we can now run without immediately crashing.

It’s worth mentioning that all of our gameObjects that contain particle systems (in this troublesome scene) start out DISABLED, and then crash our scene when we enabled them via animation. Again, the determining factor appears to be “prewarm.”

Please note that in other scenes, we have gameObjects that have particle systems running on them WITH “prewarm” that do NOT cause a crash. However, those game objects and particle systems are ON by default when the scene loads.

We are positive that prewarm must sometimes be disabled on our particle systems.
We are NOT positive that animation (as the trigger to enable the gameObject that has the prewarmed particle system) IS the cause of the crash. We don’t have enough examples in both categories to state this definitively.

We hope this helps!

Best,
Andrew

1 Like

Thanks for the reply!

That makes sense, I found that some systems were working and others were not - and our failed ones were marked as prewarm too. I created “simplified” particle systems, which seems to be working well enough for us to update our demo for our Indiegogo campaign at least. :slight_smile:

Sorry you guys hit the issue too!

Lloyd

If you are able to get this down to a reproduction we would appreciate a bug report.

Thanks

Hey folks, Another person here to confirm that on giant projects, random prewarmed particles are leading to mysterious crashes. It’s for realz.

Yes I can confirm that one of the particle system in our project will cause a crash in 5.5 when enabled if prewarm is on and only in a standalone build. This occurs in 5.5.0f3, 5.5.0p1 and 5.5.0p2. Always see this PhysX invalid address error. Particle system is not using collision.

I’ve tried exporting the particle system out into an Asset Package and importing into a new blank project and it does not crash in a standalone build. I was hoping to create an isolated repro project to send as a report but it seems like the conditions to recreate this issue are quite complicated.

I was having this crash as well. I always got tons of physx errors in the crash logs. After figuring out that it was actually the particle system causing it from other threads, I tried their solutions like changing the emission rate but it didn’t fix the problem (at least for me).

I can confirm that going through every particle effect and disabling prewarm has solved my crashing in standalone build. Thanks everyone for figuring this out :smile: I didn’t want to roll back to 5.4.

Edit: My project is on the smaller side, so I don’t think it matters how large the project is.

Is anyone able to share a project that has the problem? Submit it with a bug report if you can. Would be great to get a look at this issue.

I have been unable to reproduce it in a new project by importing my particles and setting them to prewarm, and having them turn on and off.

Tracking this issue today again. Trying to isolate it into a smaller test case project that the team is comfortable sending. Getting pretty close.

I know it is being caused by destroying an object with a child with a particle system that is set to prewarm but there is still something I’m missing. If I just destroy a bunch of prewarm particle systems it doesn’t cause the crash.

1 Like

Can you capture some crash dumps?

Sorry as a belated update I submitted a bug Tuesday night was waiting on the issue tracker url before I posted back here. Turns out someone else had submitted a related bug at the end of last week with different repro steps.

Got an email from Unity saying the issue was not reproducible in 5.5.0p3 and I can confirm today when that was released publically that the issue seems to have been fixed.

1 Like