Page 1 of 1

Crash when trying to Play the sample Button Scene

Posted: 02 Jan 2021, 20:28
by thehousemd
Hello,

Trying out NoesisGUI and ran into this issue:

Environment:
MacBookPro16,1
MacOS Big Sur

1. Load this project with 2019.4.15f1:
2. Open the Noesis sample Button scene.
3. Press "Play"

Expected: Sample scene will play
Actual: Unity freezes up, and then closes itself. Attached are the logs.

Most suspect to me are these lines, which are repeated many times

```
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.15f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.15f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.dylib.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.15f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.dylib.bundle
```

That is not a valid path on my machine.
Editor.log.zip
(9.73 KiB) Downloaded 544 times
Has anyone ever seen something like this before?

Thank you.

Re: Crash when trying to Play the sample Button Scene

Posted: 03 Jan 2021, 15:40
by jsantos
This is probably same as #1851. We already fixed it for 3.0.9 (release planned for next week).

Re: Crash when trying to Play the sample Button Scene

Posted: 03 Jan 2021, 22:24
by thehousemd
Got it, thank you!

Re: Crash when trying to Play the sample Button Scene

Posted: 11 Jan 2021, 14:06
by peterh
We are having similar issues when building the project on our macs. I tried using the .dylib you share in the issue mentioned above, but it doesn't solve the issue.
When googling the issue, it looks like Unity has had problems finding .dylibs in the past.
13:39:47  Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.1.8f1/Unity.app/Contents/Frameworks/Mono/lib/libNoesis
13:39:47  DllNotFoundException: Noesis
13:39:47    at (wrapper managed-to-native) NoesisUnity.Noesis_SetLicense(string,string)
13:39:47    at NoesisUnity.SetLicense (System.String name, System.String key) [0x00001] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/NoesisUnity.cs:44 
13:39:47    at NoesisSettings.Get () [0x000ea] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/NoesisSettings.cs:74 
13:39:47    at NoesisPostprocessor.Log (System.String message) [0x00001] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:460 
13:39:47    at NoesisPostprocessor.ImportAssets (System.String[] assets, System.Boolean reload, NoesisPostprocessor+UpdateProgress d) [0x0005d] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:39 
13:39:47    at NoesisPostprocessor.ImportAllAssets (NoesisPostprocessor+UpdateProgress d) [0x0005e] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:28 
13:39:47    at NoesisPostprocessor.ImportAllAssets () [0x00001] in /Users/jenkins01/jenkins/workspace/XT_Build/Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:15 

Re: Crash when trying to Play the sample Button Scene

Posted: 11 Jan 2021, 14:45
by peterh
Update: our problem seems to be that Unity 2019.1 doesn't identify .dylibs as libraries. A temporary workaround is to simply change the filename to .bundle.

We will be updating to the latest Unity 2020 soon. Will return to this thread with an update when we've tried this.

Re: Crash when trying to Play the sample Button Scene

Posted: 11 Jan 2021, 20:20
by jsantos
Thanks for the update. We have two things here, one is the crash in MacBooks Pro with Radeon GPU (fixed on 3.0.9) and the other one is something we probably have wrong. Our minimal version of Unity for NoesisGUI 3.0 is Unity 2018 LTS but it seems the support for .dylib was added in a later version. I need to check that, we switched from .bundle to .dylib to avoid issues when signing and notarizing the application created by our clients.

Re: Crash when trying to Play the sample Button Scene

Posted: 15 Jan 2021, 10:46
by peterh
After upgrading to the latest 2020.1 the .dylib is loaded correctly, but we still get the error messages about
13:39:47  Fallback handler could not load library [...]libNoesis
when running Unity with -batchmode

Re: Crash when trying to Play the sample Button Scene

Posted: 15 Jan 2021, 13:42
by jsantos
Are you also getting 'DllNotFoundException: Noesis'?

Re: Crash when trying to Play the sample Button Scene

Posted: 25 May 2021, 10:24
by aresundnes
This is still happening in Noesis 3.0.12 in Editor in Unity 2019 and 2020 on Mac. The error message keeps spamming the logs.
However, it seems to only happen in Editor and not in builds.

Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.8f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/NoesisGUI/Plugins/Libraries/MacOS/Noesis.bundle

Re: Crash when trying to Play the sample Button Scene

Posted: 25 May 2021, 12:47
by jsantos
#1851 fixed the crash. I think those messages can be ignored as Unity is extremely verbose about that but I will analyze this again as soon as possible.