Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphone crashes on Galaxy Y and Ace #1

Open
andrecaribe opened this issue Sep 4, 2013 · 1 comment
Open

Microphone crashes on Galaxy Y and Ace #1

andrecaribe opened this issue Sep 4, 2013 · 1 comment

Comments

@andrecaribe
Copy link

I'm testing the Microphone example and an implementation following the example, but if I use the microphone on second time, my device dies. It seems instance of microphone is open and not closed when microphone:stop() is called.

I'm testing on Samsung Galaxy Y, Samsung Galaxy Ace, Samsung Galaxy SIII and Samsung Galaxy Tab. Crash only occurred on Y and Ace.

Y have ARMv6 processor and Android 2.3.5
ACE have ARMv6 processor and Android 2.3.6

Process on Android consumes ~15mb of RAM and ~7% of CPU

LogCat shows something like this:

09-04 14:41:42.059: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): No JNI_OnLoad found in /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x4051fbf8, skipping init
09-04 14:41:42.075: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libluasocket.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libluasocket.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblfs.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblfs.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libggooglebilling.so 0x4051fbf8
09-04 14:41:42.075: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libggooglebilling.so 0x4051fbf8
09-04 14:41:42.083: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblsqlite3.so 0x4051fbf8
09-04 14:41:42.083: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblsqlite3.so 0x4051fbf8
09-04 14:41:42.083: D/dalvikvm(4870): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libmicrophone.so 0x4051fbf8
09-04 14:41:42.083: D/dalvikvm(4870): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libmicrophone.so 0x4051fbf8
09-04 14:41:42.083: I/ApplicationPackageManager(4870): cscCountry is not German : ZTA
09-04 14:41:42.106: I/GLThread(4870): noticed surfaceView surface lost tid=10
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 1
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 2
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 3
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 4
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 5
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 6
09-04 14:41:42.106: D/SensorManager(4870): ====>>>>>Num Sensor: 0
09-04 14:41:42.184: D/Gideros_Java(4870): externalDir: /mnt/sdcard
09-04 14:41:42.184: D/Gideros_Java(4870): internalDir: /data/data/br.com.gamecentral.memorygame/files
09-04 14:41:42.184: D/Gideros_Java(4870): cacheDir: /data/data/br.com.gamecentral.memorygame/cache
09-04 14:41:42.294: D/dalvikvm(4870): GC_CONCURRENT freed 300K, 49% free 2915K/5639K, external 408K/517K, paused 3ms+7ms
09-04 14:41:42.325: I/GLThread(4870): noticed surfaceView surface acquired tid=10
09-04 14:41:42.325: W/EglHelper(4870): start() tid=10
09-04 14:41:42.372: D/libEGL(4870): loaded /system/lib/egl/libGLES_hgl.so
09-04 14:41:42.372: D/BRCM_EGL(4870): eglCreateContext() context: 0x1bcb98, VC context 1, Thread 4882
09-04 14:41:42.380: W/EglHelper(4870): createContext com.google.android.gles_jni.EGLContextImpl@405211f0 tid=10
09-04 14:41:42.380: I/GLThread(4870): noticing that we want render notification tid=10
09-04 14:41:42.380: I/GLThread(4870): onResume tid=10
09-04 14:41:42.380: W/GLThread(4870): egl createSurface
09-04 14:41:42.380: W/EglHelper(4870): createSurface()  tid=10
09-04 14:41:42.380: D/BRCM_EGL(4870): eglCreateWindowSurface() surface: 0x1bcc48, VC surface: 1, Thread: 4882
09-04 14:41:42.380: D/BRCM_EGL(4870): eglMakeCurrent(0x1bcb98, 0x1bcc48, 0x1bcc48) Thread: 4882
09-04 14:41:42.380: W/GLThreadManager(4870): checkGLESVersion mGLESVersion = 131072 mMultipleGLESContextsAllowed = true
09-04 14:41:42.380: W/GLThread(4870): onSurfaceCreated
09-04 14:41:42.450: W/GLThread(4870): onSurfaceChanged(320, 240)
09-04 14:41:42.458: I/GLThread(4870): sending render notification tid=10
09-04 14:41:44.223: W/KeyCharacterMap(4870): Can't open keycharmap file
09-04 14:41:44.223: W/KeyCharacterMap(4870): Error loading keycharmap file '/system/usr/keychars/sec_touchscreen_.kcm.bin'. hw.keyboards.65538.devname='sec_touchscreen '
09-04 14:41:44.223: W/KeyCharacterMap(4870): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
09-04 14:41:48.184: I/GLThread(4870): onPause tid=10
09-04 14:41:48.184: I/Main thread(4870): onPause waiting for mPaused.
09-04 14:41:48.184: I/GLThread(4870): mPaused is now true tid=10
09-04 14:41:48.184: I/GLThread(4870): releasing EGL surface because paused tid=10
09-04 14:41:48.184: W/EglHelper(4870): destroySurface()  tid=10
09-04 14:41:48.192: D/BRCM_EGL(4870): eglMakeCurrent(NULL) Thread: 4882
09-04 14:41:48.192: D/BRCM_EGL(4870): eglDestroySurface() surface: 0x1bcc48, android window 0x1b7ef0, Thread: 4882
09-04 14:41:48.192: W/EglHelper(4870): finish() tid=10
09-04 14:41:48.192: D/BRCM_EGL(4870): eglDestroyContext() context: 0x1bcb98, VC context: 1, Thread 4882
09-04 14:41:48.192: E/EGL_SERVER(4870): pid mem_get_free_space before =  5ffc00
09-04 14:41:48.192: E/EGL_SERVER(4870): pid mem_get_free_space =  5ffc00
09-04 14:41:48.208: I/GLThread(4870): releasing EGL context because paused tid=10
09-04 14:41:48.348: E/libEGL(4870): call to OpenGL ES API with no current context (logged once per thread)
09-04 14:41:48.434: I/GLThread(4870): noticed surfaceView surface lost tid=10
09-04 14:41:48.575: W/IInputConnectionWrapper(4870): showStatusIcon on inactive InputConnection

Or:

09-04 14:42:42.372: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): No JNI_OnLoad found in /mnt/asec/br.com.gamecentral.memorygame-2/lib/libgideros.so 0x40520cb0, skipping init
09-04 14:42:42.388: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libluasocket.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libluasocket.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblfs.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblfs.so 0x40520cb0
09-04 14:42:42.388: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libggooglebilling.so 0x40520cb0
09-04 14:42:42.403: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libggooglebilling.so 0x40520cb0
09-04 14:42:42.411: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblsqlite3.so 0x40520cb0
09-04 14:42:42.419: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/liblsqlite3.so 0x40520cb0
09-04 14:42:42.419: D/dalvikvm(4971): Trying to load lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libmicrophone.so 0x40520cb0
09-04 14:42:42.427: D/dalvikvm(4971): Added shared lib /mnt/asec/br.com.gamecentral.memorygame-2/lib/libmicrophone.so 0x40520cb0
09-04 14:42:42.434: I/ApplicationPackageManager(4971): cscCountry is not German : ZTA
09-04 14:42:42.450: I/GLThread(4971): noticed surfaceView surface lost tid=10
09-04 14:42:42.450: D/SensorManager(4971): ====>>>>>Num Sensor: 1
09-04 14:42:42.450: D/SensorManager(4971): ====>>>>>Num Sensor: 2
09-04 14:42:42.450: D/SensorManager(4971): ====>>>>>Num Sensor: 3
09-04 14:42:42.450: D/SensorManager(4971): ====>>>>>Num Sensor: 4
09-04 14:42:42.450: D/SensorManager(4971): ====>>>>>Num Sensor: 5
09-04 14:42:42.458: D/SensorManager(4971): ====>>>>>Num Sensor: 6
09-04 14:42:42.458: D/SensorManager(4971): ====>>>>>Num Sensor: 0
09-04 14:42:42.575: D/Gideros_Java(4971): externalDir: /mnt/sdcard
09-04 14:42:42.583: D/Gideros_Java(4971): internalDir: /data/data/br.com.gamecentral.memorygame/files
09-04 14:42:42.583: D/Gideros_Java(4971): cacheDir: /data/data/br.com.gamecentral.memorygame/cache
09-04 14:42:42.638: D/dalvikvm(4971): GC_CONCURRENT freed 304K, 49% free 2913K/5639K, external 408K/517K, paused 3ms+4ms
09-04 14:42:42.677: I/GLThread(4971): noticed surfaceView surface acquired tid=10
09-04 14:42:42.677: W/EglHelper(4971): start() tid=10
09-04 14:42:42.731: D/libEGL(4971): loaded /system/lib/egl/libGLES_hgl.so
09-04 14:42:42.739: D/BRCM_EGL(4971): eglCreateContext() context: 0x1b8400, VC context 1, Thread 4979
09-04 14:42:42.739: W/EglHelper(4971): createContext com.google.android.gles_jni.EGLContextImpl@40535b30 tid=10
09-04 14:42:42.739: I/GLThread(4971): noticing that we want render notification tid=10
09-04 14:42:42.739: I/GLThread(4971): onResume tid=10
09-04 14:42:42.739: W/GLThread(4971): egl createSurface
09-04 14:42:42.739: W/EglHelper(4971): createSurface()  tid=10
09-04 14:42:42.739: D/BRCM_EGL(4971): eglCreateWindowSurface() surface: 0x1bcb50, VC surface: 1, Thread: 4979
09-04 14:42:42.739: D/BRCM_EGL(4971): eglMakeCurrent(0x1b8400, 0x1bcb50, 0x1bcb50) Thread: 4979
09-04 14:42:42.739: W/GLThreadManager(4971): checkGLESVersion mGLESVersion = 131072 mMultipleGLESContextsAllowed = true
09-04 14:42:42.739: W/GLThread(4971): onSurfaceCreated
09-04 14:42:42.809: W/GLThread(4971): onSurfaceChanged(320, 240)
09-04 14:42:42.825: I/GLThread(4971): sending render notification tid=10
09-04 14:44:08.598: E/AudioRecord(4971): Could not get audio input for record source 1
09-04 14:44:08.598: E/AudioRecord-JNI(4971): Error creating AudioRecord instance: initialization check failed.
09-04 14:44:08.606: E/AudioRecord-Java(4971): [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
09-04 14:44:08.630: D/Gideros(4971): *visit(MouseEvent* v)* stack NOT ok begin:0 end:6 delta:0
09-04 14:44:08.630: D/Gideros(4971): *CppLuaBridge::luaEvent* stack NOT ok begin:0 end:6 delta:0
09-04 14:44:08.630: D/Gideros(4971): *enterFrame* stack NOT ok begin:0 end:6 delta:0
09-04 14:44:08.630: D/Gideros(4971): attempt to index a nil value
09-04 14:44:08.630: D/Gideros(4971): stack traceback:
09-04 14:44:08.630: D/Gideros(4971):    /Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GameSpeechTest.lua.jet:9: in function 'init'
09-04 14:44:08.630: D/Gideros(4971):    [string "property.lua"]:52: in function '__new'
09-04 14:44:08.630: D/Gideros(4971):    [string "property.lua"]:59: in function 'new'
09-04 14:44:08.630: D/Gideros(4971):    /Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/libs/SceneManager.lua.jet:63: in function 'changeScene'
09-04 14:44:08.630: D/Gideros(4971):    /Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GameOverScene.lua.jet:113: in function </Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GameOverScene.lua.jet:100>
09-04 14:44:08.645: D/Gideros(4971): *visit(Event* v)* stack NOT ok begin:0 end:8 delta:0
09-04 14:44:08.645: D/Gideros(4971): *CppLuaBridge::luaEvent* stack NOT ok begin:0 end:8 delta:0
09-04 14:44:08.653: D/Gideros(4971): /Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GamePlayScene.lua.jet:39: attempt to index field 'pauseButton' (a nil value)
09-04 14:44:08.653: D/Gideros(4971): stack traceback:
09-04 14:44:08.653: D/Gideros(4971):    /Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GamePlayScene.lua.jet:39: in function </Users/andrecaribe/Sites/WizardMemoryGame/assets/assets/screens/GamePlayScene.lua.jet:38>
09-04 14:44:08.692: I/GLThread(4971): onPause tid=10
09-04 14:44:08.692: I/Main thread(4971): onPause waiting for mPaused.
09-04 14:44:08.692: I/GLThread(4971): mPaused is now true tid=10
09-04 14:44:08.692: I/GLThread(4971): releasing EGL surface because paused tid=10
09-04 14:44:08.692: W/EglHelper(4971): destroySurface()  tid=10
09-04 14:44:08.692: D/BRCM_EGL(4971): eglMakeCurrent(NULL) Thread: 4979
09-04 14:44:08.692: D/BRCM_EGL(4971): eglDestroySurface() surface: 0x1bcb50, android window 0x1b7ed8, Thread: 4979
09-04 14:44:08.700: W/EglHelper(4971): finish() tid=10
09-04 14:44:08.700: D/BRCM_EGL(4971): eglDestroyContext() context: 0x1b8400, VC context: 1, Thread 4979
09-04 14:44:08.700: E/EGL_SERVER(4971): pid mem_get_free_space before =  5ffc00
09-04 14:44:08.708: E/EGL_SERVER(4971): pid mem_get_free_space =  5ffc00
09-04 14:44:08.716: I/GLThread(4971): releasing EGL context because paused tid=10
09-04 14:44:08.911: E/libEGL(4971): call to OpenGL ES API with no current context (logged once per thread)
09-04 14:44:09.028: I/GLThread(4971): noticed surfaceView surface lost tid=10
09-04 14:44:09.106: W/IInputConnectionWrapper(4971): showStatusIcon on inactive InputConnection
09-04 14:44:20.997: D/dalvikvm(4971): GC_EXPLICIT freed 62K, 49% free 2883K/5639K, external 410K/517K, paused 37ms

@andrecaribe
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant