FAQ
Hello.
I am using gomobile in Windows System.
When build the example named "Audio",it is successful.Howevery,when run it
on the Genymotion virtual device and a true Android device, the application
is crashed the same.
After the debug, something I found:

    - I can find the error message from logcat, it show this:

I/GoLog ( 9589): al: cannot load libopenal.so


    - Additionally, I try to delete code line, then I am sure this code (in
    onStart function) throw this error:

rc, err := asset.Open("boing.wav")

Is someone get the same error when running the example of "Audio" ?


------------------------------

I am not sure is this the issues from gomobile,or other reason?
However, as a new developer who use gomobile to build android apps,I read
the document from:
https://godoc.org/golang.org/x/mobile/example/audio
It tell me just to use "gomobile build".
Additionally, I notice the message about:

On Linux, you need to install OpenAL developer library by running the command below.
$ apt-get install libopenal-dev

However, on Windows, do I need to do something similarly?
If the GoDoc could write down it more clearly, we walked some detours can
be avoided. :)


------------------------------

I am using the newest gomobile package and keep to update everyday.
So everything is newest when this problem was happended.
Thank you sincerely.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • DoraemonYu at Sep 8, 2015 at 7:02 am
    Hi,everyone.
    I try to reinstall my gomobile environment ,then the log of "al: cannot
    load libopenal.so" was disappeared. But the crash problem is still exist.
    ------------------------------

    First of all, about the "al: cannot load libopenal.so".
    I compared two APK files between my and other developer's , and found it's
    different, the former lost the target file "lib\armeabi\libopenal.so".
    After check carefully and redo gomobile init -u again and bulid, then now
    my apk can include the expectant file now.

    So sorry for my development environment.
    Due to my network , I cannot access "dl.google.com" ,so "gomobile init"
    download files failed! Then, when build android , it seems that no include
    the "libopenal.so" file.
    By the way, if it download failed, can gomobile show some conspicuous error
    message? thanks :) If someone was in the same trouble, try to check and
    re-get gomobile.
    ------------------------------

    *Now , the crash is still exist*. It seems that is due to a error "Fatal
    signal 11".
    And the log was follow( the log is so long, search the keyword named "!!!
    Here" please ):

    I/ActivityManager( 834): Start proc org.golang.todo.audio for activity org.golang.todo.audio/org.golang.app.GoNativeI/ActivityManager( 834): Start proc org.golang.todo.audio for activity org.golang.todo.audio/org.golang.app.GoNativeActivity: pid=3966 uid=10059 gids={50059}
    I/dalvikvm( 3966): Enabling JNI app bug workarounds for target SDK version 9...
    D/dalvikvm( 3966): Trying to load lib /data/app-lib/org.golang.todo.audio-2/libaudio.so 0xa4f81980
    D/dalvikvm( 3966): Trying to load lib /data/app-lib/org.golang.todo.audio-2/libaudio.so 0xa4f81980
    D/houdini ( 3966): [3966] Loading library(version: 2.0.5.42475 RELEASE)... successfully.
    D/houdini ( 3966): [3966] Loading library(version: 2.0.5.42475 RELEASE)... successfully.
    D/dalvikD/dalvikvm( 3966): Added shared lib /data/app-lib/org.golang.todo.audio-2/libaudio.so 0xa4f81980
    D/MobileDataStateTracker( 834): default: setPolicyDataEnable(enabled=true)
    V/PhoneStatusBar( 890): setLightsOn(true)
    D/houdini ( 3966): [3966] Loading library(version: 2.0.5.42475 RELEASE)... successfully.
    *----------- !!! Here Begin-----------*
    D/houdini ( 3966): [3966] Loading library(versioD/houdini ( 3966): [3979] Unsupported feature .
    F/libc ( 3966): Fatal signal 11 (SIGSEGV) at 0xdead0000 (code=1), thread 3979 (lang.todo.audio)*----------- !!! Here End-----------*

    I/DEBUG ( 147): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG ( 147): Build fingerprint: 'generic/vbox86p/vbox86p:4.4.4/KTU84P/eng.buildbot.20150610.102145:userdebug/test-keys'
    I/DEBUG ( 147): Revision: '0'
    * *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG ( 147): Build fingerprint: 'geneI/DEBUG ( 147): pid: 3966, tid: 3979, name: lang.todo.audio >>> org.golang.todo.audio <<<
       147): Revision: '0'
    I/DEBUG ( 147): pid: 3966, tid: 3979, name: lang.todo.audio >>> org.I/DEBUG ( 147): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr dead0000
    I/DEBUG ( 147): eax 00000fff ebx 00000001 ecx 95530bfc edx 000000e0
    I/DEBUG ( 147): esi 00000008 edi 9514fc18
    I/DEBUG ( 147): xcs 00000073 xds 0000007b xes 0000007b xfs 00000043 xss 0000007b
    I/DEBUG ( 147): eip 952da530 ebp 9514fb78 esp 9514fb30 flags 00210202
    I/DEBUG ( 147):
    I/DEBUG ( 147): backtrace:
    bp 9514fb78 esp 9514fb30 flags 00210202
    I/DEBUG ( 147):
    I/DEBI/DEBUG ( 147): #00 pc 00086530 /system/lib/libhoudini.so
    system/lib/libhoudini.so
    I/DEBUG ( 147): #01 pc 0008b5d4 /I/DEBUG ( 147): #01 pc 0008b5d4 /system/lib/libhoudini.so
    I/DEBUG ( 147): #02 pc 0008b6a1 /system/lib/libhoudini.so
    I/DEBUG ( 147): #03 pc 00089c63 /system/lib/libhoudini.so
    I/DEBUG ( 147): #04 pc 00087bbc /system/lib/libhoudini.so
    I/DEBUG ( 147): #05 pc 00087c01 /system/lib/libhoudini.so
    I/DEBUG ( 147): #04 pc 00087bbc /system/lib/libhoudini.so
    I/DEBUG ( 147): #05 pc 00087c01 /system/lib/libhoudini.so
    I/DEBUG ( 147): #06 pc 00087f73 /system/lib/libhoudini.so
    I/DEBUG ( 147): #07 pc 0000bc7c /system/lib/libc.so (__thread_entry+236)
    I/DEBUG ( 147): #08 pc 0003e295 /system/lib/libc.so (__pthread_clone+69)
    I/DEBUG ( 147): #09 pc 00087f2f /system/lib/libhoudini.so
    I/DEBUG ( 147): #10 pc ffffffff <unknown>
    I/DEBUG ( 147I/DEBUG ( 147): #11 pc 00001a77 [heap]
    so
    I/DEBUG ( 147): #12 pc 00048527 [heap]
    I/DEBUG ( 147): #13 pc 000478cf [heap]
    I/DEBUG ( 147): #14 pc 00047377 [heap]
    p]
    I/DEBUG ( 147): #13 pc 000478cf [heaI/DEBUG ( 147): #15 pc 00046ab7 [heap]
    I/DEBUG ( 147): #14 pc 00047377 [heap]
    I/DEBUG ( 147): #16 pc 000257e7 [heap]
    I/DEBUG ( 147): #17 pc 0004c71f [heap]
    I/DEBUG ( 147): #18 pc 0000e9c7 [heap]
    I/DEBUG ( 147): #19 pc 000261df [heap]
    I/DEBUG ( 147): #19 pc 000261df [heapI/DEBUG ( 147):
    I/DEBUG ( 147): stack:
    I/DEBUG ( 147): 9514fd40 00000001
    I/DEBUG ( 147): 9514fd44 9514fdc0 [stack:3979]
    I/DEBUG ( 147): 9514fd48 b76eafcc /system/lib/libc.so
    I/DEBUG ( 147): 9514fd4c 94000220
    I/DEBUG ( 147): 9514fd50 940003d4
    I/DEBUG ( 147): 9514fd54 b9245a78 [heap]
    I/DEBUG ( 147): 9514fd58 9514fd78 [stack:3979]
    I/DEBUG ( 147): 9514fd5c 952dbf74 /system/lib/libhoudini.so
    I/DEBUG ( 147): 9514fd60 9552c9a0
    I/DEBUG ( 147): 9514fd64 00000000
    I/DEBUG ( 147): 9514fd68 b765cda9 /system/lib/libc.so (pthread_mutex_lock+9)
    I/DEBUG ( 147): 9514fd6c b76eafcc /system/lib/libc.so
    (pthread_mutex_lock+9)
    I/DEBUG ( 147): 9514fd6c b76eafcI/DEBUG ( 147): 9514fd70 b76eafcc /system/lib/libc.so
    I/DEBUG ( 147): 9514fd74 9514fdd0 [stack:3979]
    I/DEBUG ( 147): 9514fd78 b9245a78 [heap]
    I/DEBUG ( 147): 9514fd7c b765ac7d /system/lib/libc.so (__thread_entry+237)
    I/DEBUG ( 147): #07 9514fd80 94000220
    I/DEBUG ( 147): 9514fd84 00000000
    I/DEBUG ( 147): 9514fd88 00000003
    I/DEBUG ( 147): 9514fd8c 00000022
    I/DEBUG ( 147): 9514fd90 00000000
    I/DEBUG ( 147): 9514fd94 00000000
    I/DEBUG ( 147): 9514fd98 00000000
    I/DEBUG ( 147): 9514fd9c 00000000
    I/DEBUG ( 147): 9514fda0 00000000
    I/DEBUG ( 147): 9514fda4 9504e000
    I/DEBUG ( 147): 9514fda8 00000000
    I/DEBUG ( 147): 9514fdac 00002000
    I/DEBUG ( 147): 9514fdb0 00050f00
    I/DEBUG ( 147): 9514fdb4 9514fdd0 [stack:3979]
    I/DEBUG ( 147): 9514fdb8 95050000
    I/DEBUG ( 147): 9514fdbc b768d296 /system/lib/libc.so (__pthread_clone+70)
    I/DEBUG ( 147): #08 9514fdc0 952dbf30 /system/lib/libhoudini.so
    I/DEBUG ( 147): 9514fdc4 94000220
    I/DEBUG ( 147): 9514fdc8 9514fdd0 [stack:3979]
    I/DEBUG ( 147): 9514fdcc 00000000
    I/DEBUG ( 147): 9514fdd0 9514fdd0 [stack:3979]
    I/DEBUG ( 147): 9514fdd4 b9245a78 [heap]
    I/DEBUG ( 147): 9514fdd8 00000000
    I/DEBUG ( 147): 9514fddc 00000000
    I/DEBUG ( 147): 9514fde0 00000000
    I/DEBUG ( 147): 9514fd9c 00000000
    I/DEBUG ( 147): 9514fda0 00000000
    I/DEBUG ( 147): 9514fda4 9504e000
    I/DEBUG ( 147): 9514fde4 cfb4d1c6
    I/DEBUG ( 147): 9514fde8 00000000
    I/DEBUG ( 147): 9514fdec 00000000
    I/DEBUG ( I/DEBUG ( 147): 9514fdf0 00000000
    I/DEBUG ( 147): 9514fdf4 00000000
    I/DEBUG ( 147): 9514fdbc b7I/DEBUG ( 147): 9514fdf8 00000000
    I/DEBUG ( 147): #0I/DEBUG ( 147): 9514fdfc 00000000
    I/DEBUG ( 147): 9514fdc4 94000220
    I/DEBUG ( I/DEBUG ( 147):
    I/DEBUG ( 147): memory map around fault addr dead0000:
    I/DEBUG ( 147): bfee2000-bff03000 rw- [stack]
    I/DEBUG ( 147): (no map for address)
    [stack:3979]
    I/DEBUG ( 147): 9514fdd4 b9245a78 [heap]
    I/DEBUG ( 147): 9514fdd8 00000000
    I/DEBUG ( 147): 9514fddc 00000000
    I/DEBUG ( 147): 9514fde0 00000000
    I/DEBUG ( 147): 9514fde4 cfb4d1c6
    I/DEBUG ( 147): 9514fde8 00000000
    I/DEBUG ( 147): 9514fdec 00000000
    I/DEBUG ( 147): 9514fdf0 00000000
    I/DEBUG ( 147): 9514fdf4 00000000
    I/DEBUG ( 147): 9514fdf8 00000000
    I/DEBUG ( 147): 9514fdfc 00000000
    I/DEBUG ( 147):
    I/DEBUG ( 147): memory map around fault addr dead0000:
    I/DEBUG ( 147): bfee2000-bff03000I/DEBUG ( 147): (no map above)
    o map for address)
    I/DEBUG ( 147): I/BootReceiver( 834): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
    I/BootReceiver( 834): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
    W/ActivityManager( 834): Force finishing activity org.golang.todo.audio/org.golang.app.GoNativeActivity
    W/ActivityManager( 834): Force finishing activity org.golang.todo.audio/org.golang.app.GoNativeActivity
    D/Zygote ( 496): Process 3966 terminated by signal (11)
    I/WindowManager( 834): Screenshot max retries 4 of Token{528f3038 ActivityRecord{52995b18 u0 org.golang.todo.audio/org.golang.app.GoNativeActivity t27 f}} appWin=Window{5293a168 u0 Starting org.golang.todo.audio} drawState=4
    W/WindowManager( 834): Screenshot failure taking screenshot for (480x854) to layer 21040
    I/WindowManager( 834): Screenshot max retries 4 of Token{528f3038 ActivityRecord{52995b18 u0 org.golang.todo.audio/org.golang.app.GoNativeActivity t27 f}} appWin=Window{5293a168 u0 Starting org.golang.todo.audio} drawState=4
    W/WindowManager( 834): Screenshot failure taking screenshot for (480x854) to layer 21040
    W/ActivityManager( 834): Exception thrown during pause
    W/ActivityManager( 834): android.os.DeadObjectException
    W/ActivityManager( 834): at android.os.BinderProxy.transact(Native Method)
    W/ActivityManager( 834): at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660)
    W/ActivityManager( 834): at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:761)
    W/ActivityManager( 834): at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2443)
    W/ActivityManager( 834): at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2320)
    W/ActivityManager( 834): at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2050)
    W/ActivityManager( 834): at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9548)
    W/ActivityManager( 834): at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9441)
    W/ActivityManager( 834): at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10086)
    W/ActivityManager( 834): at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9637)
    W/ActivityManager( 834): at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
    I/ActivityManager( 834): Process org.golang.todo.audio (pid 3966) has died.

    ------------------------------

    Thank you sincerely.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Burcu Dogan at Sep 8, 2015 at 10:18 pm
    I responded to it on the issue tracker, at
    https://github.com/golang/go/issues/12514.
    On Sat, Sep 5, 2015 at 9:22 PM, DoraemonYu wrote:

    Hello.
    I am using gomobile in Windows System.
    When build the example named "Audio",it is successful.Howevery,when run it
    on the Genymotion virtual device and a true Android device, the application
    is crashed the same.
    After the debug, something I found:

    - I can find the error message from logcat, it show this:

    I/GoLog ( 9589): al: cannot load libopenal.so


    - Additionally, I try to delete code line, then I am sure this code
    (in onStart function) throw this error:

    rc, err := asset.Open("boing.wav")

    Is someone get the same error when running the example of "Audio" ?


    ------------------------------

    I am not sure is this the issues from gomobile,or other reason?
    However, as a new developer who use gomobile to build android apps,I read
    the document from:
    https://godoc.org/golang.org/x/mobile/example/audio
    It tell me just to use "gomobile build".
    Additionally, I notice the message about:

    On Linux, you need to install OpenAL developer library by running the command below.
    $ apt-get install libopenal-dev

    However, on Windows, do I need to do something similarly?
    If the GoDoc could write down it more clearly, we walked some detours can
    be avoided. :)


    ------------------------------

    I am using the newest gomobile package and keep to update everyday.
    So everything is newest when this problem was happended.
    Thank you sincerely.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • DoraemonYu at Sep 9, 2015 at 1:53 am
    :) Thank you for your reply.
    I will reply on github later.



    在 2015年9月9日星期三 UTC+8上午6:19:12,Burcu Dogan写道:
    I responded to it on the issue tracker, at
    https://github.com/golang/go/issues/12514.

    On Sat, Sep 5, 2015 at 9:22 PM, DoraemonYu <moonyuy...@gmail.com
    <javascript:>> wrote:
    Hello.
    I am using gomobile in Windows System.
    When build the example named "Audio",it is successful.Howevery,when run
    it on the Genymotion virtual device and a true Android device, the
    application is crashed the same.
    After the debug, something I found:

    - I can find the error message from logcat, it show this:

    I/GoLog ( 9589): al: cannot load libopenal.so


    - Additionally, I try to delete code line, then I am sure this code
    (in onStart function) throw this error:

    rc, err := asset.Open("boing.wav")

    Is someone get the same error when running the example of "Audio" ?


    ------------------------------

    I am not sure is this the issues from gomobile,or other reason?
    However, as a new developer who use gomobile to build android apps,I read
    the document from:
    https://godoc.org/golang.org/x/mobile/example/audio
    It tell me just to use "gomobile build".
    Additionally, I notice the message about:

    On Linux, you need to install OpenAL developer library by running the command below.
    $ apt-get install libopenal-dev

    However, on Windows, do I need to do something similarly?
    If the GoDoc could write down it more clearly, we walked some detours can
    be avoided. :)


    ------------------------------

    I am using the newest gomobile package and keep to update everyday.
    So everything is newest when this problem was happended.
    Thank you sincerely.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 8, '15 at 12:14a
activeSep 9, '15 at 1:53a
posts4
users2
websitegolang.org

2 users in discussion

DoraemonYu: 3 posts Burcu Dogan: 1 post

People

Translate

site design / logo © 2022 Grokbase