Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 unity_JwWIdtAbuZYrfg · Apr 21 at 08:38 AM · serverlinuxamazonlibrariesc# dll

Linux server .so files not loaded

Our mobile project has a multiplayer server which will run on linux. We build the server with Target Platform set to linux and Server Build ticked on the Build Settings window in Unity Editor on Windows.

The server hangs / soft crashes, since the libs cannot be loaded:

 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/FirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/FirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/FirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/FirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/FirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0.so
 Fallback handler could not load library /local/game/server_Data/Mono/libFirebaseCppApp-8_9_0
 Could not resolve all Firebase dependencies System.TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: FirebaseCppApp-8_9_0
   at (wrapper managed-to-native) Firebase.AppUtilPINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_AppUtil(Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate)
   at Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <5832818f1ad84593aa2717f5b3d23851>:0
    --- End of inner exception stack trace ---
   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
   at Firebase.AppUtilPINVOKE..cctor () [0x00000] in <5832818f1ad84593aa2717f5b3d23851>:0
    --- End of inner exception stack trace ---
   at Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) [0x00000] in <5832818f1ad84593aa2717f5b3d23851>:0
   at Firebase.LogUtil..ctor () [0x0001e] in <5832818f1ad84593aa2717f5b3d23851>:0
   at Firebase.LogUtil..cctor () [0x00010] in <5832818f1ad84593aa2717f5b3d23851>:0
    --- End of inner exception stack trace ---
   at Firebase.FirebaseApp..cctor () [0x0004a] in <5832818f1ad84593aa2717f5b3d23851>:0
    --- End of inner exception stack trace ---
   at Framework.Core.Managers.FirebaseInstaller+<Initialize>d__6.MoveNext () [0x0001e] in <98c85913016548029f68f9361c660fef>:0
 Waiting for managers.
 Uploading Crash Report
 DllNotFoundException: FirebaseCppApp-8_9_0
   at (wrapper managed-to-native) Firebase.AppUtilPINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_AppUtil(Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate,Firebase.AppUtilPINVOKE/SWIGExceptionHelper/ExceptionDelegate)
   at Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () [0x000ee] in <5832818f1ad84593aa2717f5b3d23851>:0
 Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
   at Firebase.AppUtilPINVOKE..cctor () [0x00000] in <5832818f1ad84593aa2717f5b3d23851>:0
 Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception.
   at Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) [0x00000] in <5832818f1ad84593aa2717f5b3d23851>:0
   at Firebase.LogUtil..ctor () [0x0001e] in <5832818f1ad84593aa2717f5b3d23851>:0
   at Firebase.LogUtil..cctor () [0x00010] in <5832818f1ad84593aa2717f5b3d23851>:0
 Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception.
   at Firebase.FirebaseApp..cctor () [0x0004a] in <5832818f1ad84593aa2717f5b3d23851>:0
 Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception.
   at Framework.Core.Managers.FirebaseInstaller+<Initialize>d__6.MoveNext () [0x000d2] in <98c85913016548029f68f9361c660fef>:0
 --- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <695d1cc93cca45069c528c15c9fdd749>:0
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
   at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00002] in <a3bf785675754762a66d8639375071d6>:0
 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
 UnityEngine.DebugLogHandler:LogException(Exception, Object)
 UnityEngine.Logger:LogException(Exception, Object)
 UnityEngine.Debug:LogException(Exception)
 UnityEngine.WorkRequest:Invoke()
 UnityEngine.UnitySynchronizationContext:Exec()
 UnityEngine.UnitySynchronizationContext:ExecuteTasks()


Details:

  • full log

  • Firebase .so files are in the build in the server_Data/Plugins directory

  • using .NET 4.x and unity 2020.3.31f1 -the server fails and crashes with this when built with mono or il2cpp backend

  • this happens on AWS GameLift instances - https://aws.amazon.com/amazon-linux-ami/2018.03-release-notes/ (only info I found)

  • this doesn't happen on Ubuntu 20.04.3 LTS (our test server), runs as expected

  • this doesn't happen when we build for Windows platform, runs as expected.

server-crash.txt (24.9 kB)
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

0 Replies

· Add your reply
  • Sort: 

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

145 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 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 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

TypeLoadException with libraries in C# 1 Answer

Upload to AWS S3 from Unity 0 Answers

Linux Headless -- Application.Quit() doesn't work? 1 Answer

Headless mode checkbox is uncheckable 1 Answer

Running Unity3D application on fully headless linux server 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