• 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

SIGABRT on OS X 0 Answers

Mac build crashes on start up 1 Answer

Does Unity include its own Python interpreter and does it use it for post process builds on Mac? 2 Answers

How to uninstall unity3d on Mac? 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges