locked
Infer.NET 2.6 on Unity built to Android RRS feed

  • Question

  • Hi

    I am trying to implement a simple discrete bayesian network for a game. The development is being done through the Unity engine and built for the Android platform (the plan in the future is to be built for both Android and iOS). The program runs fine on the Unity editor however when the android build is run, this error occurs right after the infer() method is called (on a press of a button):

    01-02 01:09:23.976: D/Unity(5580): Compiling model...
    01-02 01:09:36.034: D/Unity(5580): Unable to lookup library path for 'kernel32.dll', native render plugin support disabled.
    01-02 01:09:36.034: E/Unity(5580): Unable to find kernel32.dll
    01-02 01:09:37.070: D/Unity(5580): d
    01-02 01:09:37.070: D/Unity(5580): o
    01-02 01:09:37.070: D/Unity(5580): n
    01-02 01:09:37.070: D/Unity(5580): e
    01-02 01:09:37.070: D/Unity(5580): .
    01-02 01:09:37.525: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/Mono.WebBrowser.dll (this message is harmless)
    01-02 01:09:37.529: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/System.Configuration.dll (this message is harmless)
    01-02 01:09:37.535: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/Mono.Posix.dll (this message is harmless)
    01-02 01:09:37.538: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/System.Runtime.Serialization.Formatters.Soap.dll (this message is harmless)
    01-02 01:09:37.540: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/Accessibility.dll (this message is harmless)
    01-02 01:09:37.579: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/System.Data.dll (this message is harmless)
    01-02 01:09:37.588: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/Mono.Security.dll (this message is harmless)
    01-02 01:09:37.595: D/Unity(5580): Platform assembly: /data/app/com.thesis.linetest-1/base.apk/assets/bin/Data/Managed/System.ServiceModel.Internals.dll (this message is harmless)
    01-02 01:09:39.393: D/Unity(5580): Unable to lookup library path for 'libc', native render plugin support disabled.
    01-02 01:09:39.393: E/Unity(5580): Unable to find libc
    01-02 01:09:39.575: E/Unity(5580): IOException: I/O error occurred.
    01-02 01:09:39.575: E/Unity(5580):   at System.CodeDom.Compiler.TempFileCollection.CreateOwnTempDir () [0x000b7] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 
    01-02 01:09:39.575: E/Unity(5580):   at System.CodeDom.Compiler.TempFileCollection.get_BasePath () [0x00051] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 
    01-02 01:09:39.575: E/Unity(5580):   at System.CodeDom.Compiler.TempFileCollection.AddExtension (System.String fileExtension, System.Boolean keepFile) [0x00000] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 
    01-02 01:09:39.575: E/Unity(5580):   at Mono.CSharp.CSharpCodeCompiler.GetTempFileNameWithExtension (System.CodeDom.Compiler.TempFileCollection temp_files, System.String extension, System.Boolean keepFile) [0x00000] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 
    01-02 01:09:39.575: E/Unity(5580):   at Mono.CSharp.CSharpCodeCompiler.BuildArgs (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames, System.Collections.Generic.IDictionary`2[TKey,TValue] providerOptions) [0x00120] in <f044fe2c9e7e4b8e91984b41f0cf0b04>:0 
    01-02 01:09:39.575: E/Unity(5580):   at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.St

    I'm really stuck with this problem and any help would be appreciated.
    Thank you.


    Monday, January 1, 2018 6:35 PM

All replies

  • Hi Neil,

    If it runs on the Unity editor, then everything seems to be okay on the Infer.NET side of things. Therefore, I don't think I'll be able to help.

    Could it be that the Mono version is different on the Android build? Looking online, other people have experienced similar issues libraries other than Infer.NET. It might be worth going over these threads or asking the Unity guys directly.

    -Y-

    Monday, January 8, 2018 1:32 PM