Build Error tested with Unity 5.4 and 5.6 || firebase analytics || IOException: Win32 IO returned ERROR_BROKEN_PIPE.

1,542 views
Skip to first unread message

Yassir Ouali

unread,
Apr 3, 2017, 11:20:44 PM4/3/17
to Firebase Google Group
Hello guys,
I'm stuck with this problem for days..
when i launch my app in unity editor i got this err :

DllNotFoundException: App
Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper
Firebase.AppUtilPINVOKE..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.AppUtilPINVOKE
Firebase.AppUtil.SetEnabledAllAppCallbacks (Boolean arg0)
Firebase.FirebaseApp+FirebaseHandler.Create ()
Firebase.FirebaseApp.get_DefaultInstance ()
Firebase.Analytics.FirebaseAnalytics..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalytics
GooglePlayController.Start () (at Assets/Scripts/GooglePlayController.cs:13)

and when i try to build it (mono2x) i get this one :

IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path: C:\Users\OUALI\Documents\Metal war unity\Metal War\[Unknown]
System.IO.FileStream.FlushBuffer (System.IO.Stream st) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1040)
System.IO.FileStream.FlushBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1054)
System.IO.FileStream.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:859)
System.IO.StreamWriter.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:191)
System.IO.StreamWriter.Dispose (Boolean disposing) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:162)
UnityEditor.HostView:OnGUI()

Need your help!!
thank you very much !

Stewart Miles

unread,
Apr 6, 2017, 11:44:00 AM4/6/17
to fireba...@googlegroups.com
Which version of Unity are you using?  What's your desktop platform?  Which platform are you testing on (iOS / Android)?

Are you sure you didn't delete some of the components from the plugin (e.g App.dll, libApp.so etc.)?

Cheers,
Stewart


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/4978df1a-0b5b-47e2-bdb7-fc9494b0e504%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ivan Murzak

unread,
Apr 15, 2017, 11:10:45 AM4/15/17
to Firebase Google Group
Just checked libApp.so. 
libApp is just for iOS build version in FirebaseAnalytics.unitypackage.
Is it OK? Maybe I need to independent install the libApp.so from another resource?

четверг, 6 апреля 2017 г., 18:44:00 UTC+3 пользователь Stewart Miles написал:
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

Ivan Murzak

unread,
Apr 15, 2017, 11:10:50 AM4/15/17
to Firebase Google Group
I have the same error about missing App.dll. But I checked the Unity project, the Firebase.App.dll exists
Unity 5.5.0
Testing on Android (Genymotion with gapps)

System.TypeInitializationException: 
An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalyticsPINVOKE ---> 
System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> 
System.DllNotFoundException: App
                                                             
at (wrapper managed-to-native) Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_FirebaseAnalytics (Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelegate,Firebase.Analytics.FirebaseAnalyticsPINVOKE/
SWIGExceptionHelper/
ExceptionDelega



четверг, 6 апреля 2017 г., 18:44:00 UTC+3 пользователь Stewart Miles написал:
Which version of Unity are you using?  What's your desktop platform?  Which platform are you testing on (iOS / Android)?
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

Stewart Miles

unread,
Apr 17, 2017, 1:35:44 PM4/17/17
to fireba...@googlegroups.com
"System.TypeInitializationException: 
An exception was thrown by the type initializer for Firebase.Analytics.FirebaseAnalyticsPINVOKE ---> 
System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> 
System.DllNotFoundException: App"

Is thrown on Android when the libApp.so (which is basically a native DLL on Linux derived OSes like Android).  We ship a separate native library on each platform, we treat Android a little differently as we utilize the Jar Resolver to pull in the appropriate native library dependent upon your target ABI.

libApp.so is shipped in firebase-app-unity-X.X.X.aar which should be copied into your Plugins/Android directory by the Play Services Resolver and picked up by Unity's build process.

e.g in one of my development projects:

$ unzip -l ~/dev/tmp/unity_test/messaging/client/unity/testapp/Assets/Plugins/Android/firebase-app-unity-3.0.1.aar
Archive:  /Users/smiles/dev/tmp/unity_test/messaging/client/unity/testapp/Assets/Plugins/Android/firebase-app-unity-3.0.1.aar
  Length      Date    Time    Name
---------  ---------- -----   ----
      343  03-15-2017 00:22   AndroidManifest.xml
        0  03-15-2017 00:12   R.txt
       22  03-15-2017 00:22   classes.jar
        0  03-15-2017 01:31   jni/
        0  03-15-2017 01:31   jni/armeabi-v7a/
  1035900  03-15-2017 00:22   jni/armeabi-v7a/libApp.so
        0  03-15-2017 01:31   jni/x86/
  1184528  03-15-2017 00:12   jni/x86/libApp.so
     1414  03-15-2017 00:22   proguard.txt
---------                     -------
  2222207                     9 files  


You can verify the Play Services Resolver (Jar Resolver) is enabled by checking "Enable Auto-Resolution" under the "Assets > Play Services Resolver > Android Resolver > Settings" menu item.


Cheers,
Stewart

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages