Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by joebob19 · Dec 05, 2014 at 11:46 AM · monodevelopfreezepausehang

Monodev hangs/freeze when pause during debugging

I'm in a bit of a pickle here. I have a fairly complex set of code that has some threading, does some file I/O as well as async network I/O that often freezes, hangs, and ultimately requires Unity Editor (and an attached Monodev) to be terminated and restarted.

I'm fairly experienced with debugging with attaching Monodev, and I know that pressing "pause" will point me to the location in the code where a freeze might occur--for instance a faulty while loop.

I'm puzzled about what might cause Unity Editor to freeze, and when (and already attached) Monodev is paused, it'd freeze Monodev too and never resolve. I've left it running overnight and even over the weekend while I've been out of town. CPU usage remains consistent--about 50% of a single core--and memory usage is unchanged. I have never experienced this problem before, where Monodev itself freezes and becomes unresponsive when attached to Unity and debugging.

And just to be clear, what's happening:

  1. Start Unity, select project and scene

  2. With Monodev and project solution open, attach to Unity process

  3. Start scene

  4. Hit problem, Unity becomes frozen as expected

  5. Go into Monodev, hit "pause", Monodev freezes and becomes unresponsive

  6. Terminate Unity from taskmanager, Monodev loses attachments, returns to normal

  7. Restart Unity, repeat...

I am absolutely sure it's something I'm doing, but I don't know what. The code isn't anything particularly special--a basic listen server aka where the computer is both server and client connected to itself with some reading, processing and exchanging of initial game data--and there is similar code (reading a data file, processing it and exchanging) elsewhere in the project that doesn't produce any problems.

So what might it be? Could a race condition produce this sort of behavior? Something with file I/O? I've tried everything I can think of, so even a general hunch could help point me in the right direction. For what it's worth, I'm running Win 7 64 with Unity 4.5.5 (I know 4.6 is out, haven't gotten around to upgrading yet).

Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by joebob19 · Dec 11, 2014 at 07:31 PM

UPDATE: Upon re-examining things some more, I discovered that CPU usage went to 0, not 50% as I previously stated. This suggests a deadlock, not a race condition based on my research. I have also updated from Unity 4.5.5 to 4.6.1, and was preparing to install and use UnityVS.

However, prior to installing UnityVS, I gave MonoDevelop another shot, and now the freezing/hanging is gone. No other changes than that, in which a freeze could be experienced in a consistent 1 in 3 attempts, and I've now attempted it about 20 times. I don't know what, if anything changed, and it worries me some, but time to move on.

Comment
Add comment · 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.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Make enemy wait before attacking player 2 Answers

Unity 2017.3.0bf freezing on Play when switching windows? 0 Answers

Pause Button Freezing Game 1 Answer

Unity 4.1 hangs/freezes on startup (Mac) 0 Answers

Monodevelop freezes opening js files after creating new project 1 Answer


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