• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Adam Frisby · Mar 03, 2010 at 12:45 PM · networkingcrashwebplayermono

Debugging Unity3D player crashes?

Hiya,

We've got a reproducible player crash whenever someone exits the Unity3d window (embedded in a browser) on an application we are developing.

Unfortunately, "reproducible" seems to be "reproducible everywhere but at Unity's offices" [we've confirmed it on all 40 PCs in our office, and 15+ elsewhere - with a wide mix of hardware.] and we're gauging it unlikely that the issue will be resolved by our launch date; so we need to tackle it ourselves.

With that out of the way in advance - does anyone here have any experience or has any tips for diagnosing what might be causing the Unity web player to crash? We're fairly certain it is scripting related (e.g; the following is a debug crash from Unity) - but we're unable to find exactly what.

Unity Web Player [version: Unity 2.6.1f3_31223]

mono-1-vc.dll caused an Access Violation (0xc0000005) in module mono-1-vc.dll at 001b:0e81c28e.

Error occurred at 2010-03-03_193826. C:\Program Files\Mozilla Firefox\firefox.exe, run by Adam. 60% memory in use. 2048 MB physical memory [1189 MB free]. 0 MB paging file [3940 MB free]. 2048 MB user address space [1767 MB free]. Read from location 05190d50 caused an access violation.

Context: EDI: 0x0e94b244 ESI: 0x05190d20 EAX: 0x00000000 EBX: 0x76fb7dc0 ECX: 0x000009d0 EDX: 0x76fc9a94 EIP: 0x0e81c28e EBP: 0x0f47f83c SegCs: 0x0000001b EFlags: 0x00010246 ESP: 0x0f47f810 SegSs: 0x00000023

Bytes at CS:EIP: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??

... snip ...

The one bit of advice we did get from Unity was that some resources (possibly network) may not be being released before exit; and we should add the release functions into another specific method - w$$anonymous$$ch we tried without success; so any suggestions or tips on what we should try would be very much appreciated!

Thanks!

EDIT: T$$anonymous$$s might be related to these issues:

  • http://answers.unity3d.com/questions/2061/
  • http://answers.unity3d.com/questions/4345

Comment
user-1470 (google)
user-1471 (google)
user-1472 (google)
user-1473 (google)
user-1487 (google)
philipzhang
Oudaiesty
KHopcraft
Ray-Pendergraph
Ben 2
Ricardo
joukokar
Ehren
qhhh
yoyo
And 2 more...

People who like this

17 Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Motionreactor · Mar 03, 2010 at 01:03 PM 0
Share

Whatever you recently added to the game, try removing it. This will help you track down methodically the cause of the memory exception. That is of course assuming it is not actually a real bug in the player but rather as you suggested a scripting problem.

avatar image Lucas Meijer 1 ♦♦ · Mar 04, 2010 at 07:00 PM 0
Share

Could you post the casenumber of the bug here?

avatar image Oudaiesty · Mar 09, 2010 at 11:36 PM 0
Share

Sounds kinda like a memory leak or something.

avatar image Mortoc · Mar 11, 2010 at 06:32 PM 0
Share

That crash dump isn't really too much help. Have you tested with different browsers? Firefox has an overly ambitious null reference handler that keeps mono from actually creating a NullReferenceException, so sometimes it's useful to test in IE or Safari and compare the player logs.

Can you attach your webplayer log and link to the case in unity's bugtracker?

avatar image OZAV · Jan 29, 2015 at 11:02 AM 0
Share

We did about 100 tests here, with this problem, tried about 100 different solutions, including Unity 'support' answers / ideas: the same - it always crashes - every web build, every (new and error-free scene) as well. Now, after some months of searching what is causing it, we still can't find it. So, our conclusion is: It's one of these two (either, or both): 1 Unity Web Player (current version) is crap 2 Unity Web-Export module (current version) is crap. Michael.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by jonas-echterhoff · Apr 06, 2010 at 01:53 PM

As Lucas stated, if you post the case number here, we (Unity employees) can have a look at the bug report. But that aside if you have some deadline, and need to work around the crash, and cannot wait for a fix, what I would do is to first look at the webplayer log file for anyt$$anonymous$$ng suspicious. If there's any error messages or exceptions logged, that may give you a clue on where to start looking.

If that doesn't show anyt$$anonymous$$ng relevant, I'd start binary searc$$anonymous$$ng the project for what is causing it:

Make a copy of the project folder, and start removing stuff from that. Does it happen for any scene? If it is, start removing game objects from the scenes. If you found somet$$anonymous$$ng w$$anonymous$$ch causes the crash, re-add it, and check all c$$anonymous$$ld game objects and components. It may be hard work, but you'll probably be able to find out w$$anonymous$$ch script is causing the issue. Then, remove code from that script, until you find the responsible line(s). Now, you should be able to find some workaround. When you got here, it would also be really nice to add your findings to the bug report to make fixing the issue easier for us.

Comment
Lucas Meijer 1
Ehren
Barrett-Fox

People who like this

3 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by RaidenX · May 07, 2011 at 08:09 PM

Im playing Dead Frontier and when i load the game it always ALWAYS! say The Unity Web Player has crash send crash report (i click send) then it says crash report sent reload page and i reload the page and it continues to do t$$anonymous$$s how can i fix it i want to play the game!

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

IE only web player crash "Receiving unhandled exception / mono: exit called, code 1" 2 Answers

Use .NET native dll calls 1 Answer

webplayer crash when use www download assetbundle 0 Answers

Chrome: Preventing Unity Plugin from Crashing if Multiple Windows w Players opened 0 Answers

What things cause this message?The content was stopped because a... 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges