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 LightStriker · Oct 15, 2013 at 01:52 PM · crashmacosx

Crash on Mac, when switching application

We have built a fairly large framework for the base of our games. We have no issue on PC... However, our mac user experience crashes when switching application after adding part of our framework to their scene.

Steps;

  1. Launch Unity with our framework

  2. Add object, component, script and so on.

  3. Run the game. Stop the game. Continue working in Unity.

Up to that point, everything is fine and work as expected.

Then if he switches application, any application, Unity crashes right away. (Application is not responding) A crash report shows up and we must force quit Unity. If he switches application before the first 3 steps, Unity doesn't crash.

Comment
Add comment · Show 9
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 meat5000 ♦ · Oct 15, 2013 at 02:19 PM 0
Share

Find the CRASH! entry in the crash logs and see what are the entries before it.

avatar image LightStriker · Oct 15, 2013 at 04:08 PM 0
Share

From what we got: "Receiving unhandled NULL exception"

avatar image meat5000 ♦ · Oct 15, 2013 at 04:22 PM 0
Share

Is there any information about the exception?

avatar image LightStriker · Oct 15, 2013 at 05:12 PM 0
Share
 Unloading 1180 unused Assets to reduce memory usage. Loaded Objects now: 734.
 Total: 20.991100 ms (FindLiveObjects: 0.125533 ms CreateObject$$anonymous$$apping: 0.023617 ms $$anonymous$$arkObjects: 1.203709 ms  DeleteObjects: 6.829594 ms)
 
 System memory in use before: 53.9 $$anonymous$$B.
 Unloading 1 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
 System memory in use after: 52.1 $$anonymous$$B.
 
 Unloading 499 unused Assets to reduce memory usage. Loaded Objects now: 1349.
 Total: 9.585827 ms (FindLiveObjects: 0.097193 ms CreateObject$$anonymous$$apping: 0.023032 ms $$anonymous$$arkObjects: 3.686626 ms  DeleteObjects: 1.440732 ms)
 
 Receiving unhandled NULL exception
 Launching bug reporter
 
 *** Launching bug reporter due to crashbug.
 Obtained 0 stack frames.

$$anonymous$$aybe I'm looking at the wrong files?

avatar image meat5000 ♦ · Oct 15, 2013 at 06:35 PM 0
Share

Did you look through the other files?

Did you actually find the line : "Crash!"

Show more comments

1 Reply

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

Answer by LightStriker · Oct 28, 2013 at 02:23 PM

Well, found out why.

We had a .dll that used System.Windows.Form to get Mouse position when being outside the OnGUI() scope. Sadly, on Mac, calling this - while it does work properly - also creates a crash after the editor switched playstates and you switch application in Mac OSX.

As a work around, we had to implement three different ways of gathering mouse position depending of the tool context; EditorWindow, SceneView and Inspector.

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

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I completly remove all traces of Unity from OSX? 2 Answers

A node in a childnode? 1 Answer

Unity Webplayer doesn't work on Mac? 3 Answers

SIGABRT on OS X 0 Answers

Mac build crashes on start up 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