Error initiating Equalizer,my app crashes sometimes - android

So i was trying to use equalizer but sometimes app crashes
Here are the necessary things to note
1) I am using sessionid 0;
2) App crashes when any other app is either using it,or has used it and i haven't restarted the phone since then
Strangely the line number which is causing the crash is not shown
here is the logcat
04-30 18:21:29.642: E/AudioEffect(31157): set(): AudioFlinger could not create effect, status: -38
04-30 18:21:29.642: E/AudioEffects-JNI(31157): AudioEffect initCheck failed -5
04-30 18:21:29.642: E/dalvikvm(31157): JNI ERROR (app bug): accessed stale global reference 0x1d2002b2 (index 172 in a table of size 172)
04-30 18:21:29.642: E/dalvikvm(31157): VM aborting
04-30 18:21:29.642: A/libc(31157): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 31157 (thermusicplayer)

I just used a different equalizer code and that helped
https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/audiofx/Equalizer.java

Related

Libgdx Android Game Fatal signal 11 (SIGSEGV)

I have developed a game using Libgdx. It stops randomly by giving Fatal signal 11(SIGSEGV) error. Sometimes it force closes and sometimes force closes and then automatically restarts. The logs printed during force close are:-
A/libc(3475): Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 3534 (Thread-343)
I also keep on getting some logs during my game play from time to time.
04-27 09:04:18.750: D/dalvikvm(3475): Issue registerizing the trace in the backend.
04-27 09:04:18.750: I/dalvikvm(3475): Ignoring other issues and retrying without backend registerization
04-27 09:04:18.750: D/dalvikvm(3475): JIT_INFO: Retrying trace Lcom/badlogic/gdx/graphics/g2d/BitmapFontCache;translate, offset 40
04-27 09:12:39.410: D/dalvikvm(3475): JIT_INFO: Issues while compiling trace Ljava/util/Arrays;fill, offset 7
04-27 09:12:39.410: D/dalvikvm(3475): The trace provoked a spill.
04-27 09:12:39.410: I/dalvikvm(3475): Trying less registerization from 1 to 0
04-27 09:12:39.410: D/dalvikvm(3475): JIT_INFO: Retrying trace Ljava/util/Arrays;fill, offset 7
04-27 09:14:08.930: I/dalvikvm(3475): JIT_INFO: Overwriting association of v6:ecx with xmm0
04-27 09:18:30.610: D/dalvikvm(3475): JIT_INFO: Issues while compiling trace Ljava/util/Arrays;fill, offset 5
04-27 09:18:30.610: D/dalvikvm(3475): The trace provoked a spill.
04-27 09:18:30.610: I/dalvikvm(3475): Trying less registerization from 1 to 0
Please help me I am stuck and not able to find the cause of issue.

RenderScript No JNI_OnLoad found error

I am using renderscript library in my project and I perfectly run my apk on Samsung S4 I9500. But when I tried this in other phones I get crash.
No JNI_OnLoad found in /system/lib/libRSSupport.so 0x4185f0f0, skipping init
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ ERROR: couldn't find native method
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/dalvikvm﹕ Requested: Landroid/support/v8/renderscript/RenderScript;._nInit:()V
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti E/JNIHelp﹕ RegisterNatives failed for 'android/support/v8/renderscript/RenderScript', aborting
02-23 19:42:40.370 8994-8994/com.example.gameboy.gununtesti A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 8994
Any help appreciated. Thanks.
You forgot to include libRSSupport.so + the other native libraries in your .apk. This is attempting to load the system version of the compatibility, library, which will not work with your app.

Fire HD 6 + Sencha Touch 2.3.1 + Cordova 3.5.1 + Signed APK = Blank (dark grey) screen

This issue is pretty perplexing and my eyes can only take so much of looking at a Kindle device before burning with rage, so I'd like your help, generous Internet folk!
I'm working on an app that is built on Sencha Touch 2.3.1 and Cordova 3.5.1. I have this app working on really any other Android device I've tested on except for the newest Fire HD devices from Amazon, and in my case, a Fire HD 6.
When I build the APK, sign it, zipalign it, etc. and then post it online for download to the device, I'm seeing an issue of a grey screen ONLY WHEN STARTING IN PORTRAIT. Here is the screenshot:
When I start in Landscape mode, I get this screenshot:
The crazier part is that when I start the app in portrait (grey screen), rotate to landscape (no change), and then rotate back to portrait, close the app, and reopen it, the correct portrait screen is shown, here:
In contrast to the signed APK, when I build the app for testing in Eclipse and deploy to the device, the app works as expected. The only difference I can discern between the Eclipse version and the signed APK is the way that the Cordova jar file is included in the project. Here is the log file from the Fire HD 6 when I build from Eclipse:
10-15 13:36:00.715: I/Activity(16158): No ActvityExender defined. Proceed with default activity behavior.
10-15 13:36:00.719: I/CordovaLog(16158): Changing log level to DEBUG(3)
10-15 13:36:00.722: D/Whitelist(16158): Unlimited access to network resources
10-15 13:36:00.723: D/CordovaActivity(16158): CordovaActivity.onCreate()
10-15 13:36:00.726: D/CordovaActivity(16158): Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml
10-15 13:36:00.726: D/CordovaActivity(16158): Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml
10-15 13:36:00.750: W/BindingManager(16158): Cannot setInForeground() - never saw a connection for the pid: 16158
10-15 13:36:00.771: D/CordovaWebView(16158): CordovaWebView is running on device made by: Amazon
10-15 13:36:00.775: D/JsMessageQueue(16158): Set native->JS mode to 2
10-15 13:36:00.776: D/CordovaActivity(16158): CordovaActivity.init()
10-15 13:36:00.860: D/CordovaWebView(16158): >>> loadUrl(file:///android_asset/www/index.html)
10-15 13:36:00.860: D/PluginManager(16158): init()
10-15 13:36:00.874: D/CordovaWebView(16158): >>> loadUrlNow()
10-15 13:36:00.875: W/BindingManager(16158): Cannot setInForeground() - never saw a connection for the pid: 0
10-15 13:36:00.875: W/BindingManager(16158): Cannot setInForeground() - never saw a connection for the pid: 16158
10-15 13:36:00.877: I/CordovaLog(16158): Changing log level to DEBUG(3)
10-15 13:36:00.881: D/Whitelist(16158): Unlimited access to network resources
10-15 13:36:00.881: D/CordovaActivity(16158): Resuming the App
10-15 13:36:00.881: D/CordovaActivity(16158): CB-3064: The errorUrl is null
10-15 13:36:00.989: D/SoftKeyboardDetect(16158): Ignore this event
10-15 13:36:01.037: D/SoftKeyboardDetect(16158): Ignore this event
10-15 13:36:01.059: D/SoftKeyboardDetect(16158): Ignore this event
10-15 13:36:01.067: D/CordovaWebViewClient(16158): onPageStarted(file:///android_asset/www/index.html)
10-15 13:36:01.067: D/CordovaActivity(16158): onMessage(onPageStarted,file:///android_asset/www/index.html)
10-15 13:36:01.390: D/SoftKeyboardDetect(16158): Ignore this event
10-15 13:36:02.039: D/CordovaActivity(16158): onMessage(spinner,stop)
10-15 13:36:02.043: D/CordovaNetworkManager(16158): Connection Type: wifi
10-15 13:36:02.068: E/chromium(16158): [ERROR:gl_context.cc(53)] Not implemented reached in virtual void gfx::GLContext::SetUnbindFboOnMakeCurrent()
10-15 13:36:02.068: I/chromium(16158): [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
10-15 13:36:02.083: D/CordovaNetworkManager(16158): Connection Type: wifi
10-15 13:36:02.083: D/CordovaActivity(16158): onMessage(networkconnection,wifi)
10-15 13:36:02.100: D/CordovaWebViewClient(16158): onPageFinished(file:///android_asset/www/index.html)
10-15 13:36:02.100: D/CordovaActivity(16158): onMessage(onPageFinished,file:///android_asset/www/index.html)
10-15 13:36:02.324: D/CordovaLog(16158): file:///android_asset/www/app.js: Line 1 : a launch right here: file:///android_asset/www/index.html
10-15 13:36:02.324: I/chromium(16158): [INFO:CONSOLE(1)] "a launch right here: file:///android_asset/www/index.html", source: file:///android_asset/www/app.js (1)
10-15 13:36:02.345: D/CordovaLog(16158): file:///android_asset/www/app.js: Line 1 : index: gotFS
10-15 13:36:02.345: I/chromium(16158): [INFO:CONSOLE(1)] "index: gotFS", source: file:///android_asset/www/app.js (1)
10-15 13:36:02.347: D/CordovaLog(16158): file:///android_asset/www/app.js: Line 1 : here is the root: cdvfile://localhost/persistent/
10-15 13:36:02.347: I/chromium(16158): [INFO:CONSOLE(1)] "here is the root: cdvfile://localhost/persistent/", source: file:///android_asset/www/app.js (1)
10-15 13:36:04.256: I/App(16158): WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!
10-15 13:36:04.293: W/System.err(16158): org.apache.cordova.file.FileExistsException: create/exclusive fails
10-15 13:36:04.294: W/System.err(16158): at org.apache.cordova.file.LocalFilesystem.getFileForLocalURL(LocalFilesystem.java:176)
10-15 13:36:04.294: W/System.err(16158): at org.apache.cordova.file.FileUtils.getFile(FileUtils.java:698)
10-15 13:36:04.294: W/System.err(16158): at org.apache.cordova.file.FileUtils.access$5(FileUtils.java:691)
10-15 13:36:04.294: W/System.err(16158): at org.apache.cordova.file.FileUtils$16.run(FileUtils.java:349)
10-15 13:36:04.294: W/System.err(16158): at org.apache.cordova.file.FileUtils$23.run(FileUtils.java:477)
10-15 13:36:04.294: W/System.err(16158): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-15 13:36:04.294: W/System.err(16158): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-15 13:36:04.294: W/System.err(16158): at java.lang.Thread.run(Thread.java:841)
10-15 13:36:04.296: W/System.err(16158): org.apache.cordova.file.FileExistsException: create/exclusive fails
10-15 13:36:04.296: W/System.err(16158): at org.apache.cordova.file.LocalFilesystem.getFileForLocalURL(LocalFilesystem.java:176)
10-15 13:36:04.296: W/System.err(16158): at org.apache.cordova.file.FileUtils.getFile(FileUtils.java:698)
10-15 13:36:04.297: W/System.err(16158): at org.apache.cordova.file.FileUtils.access$5(FileUtils.java:691)
10-15 13:36:04.297: W/System.err(16158): at org.apache.cordova.file.FileUtils$16.run(FileUtils.java:349)
10-15 13:36:04.297: W/System.err(16158): at org.apache.cordova.file.FileUtils$23.run(FileUtils.java:477)
10-15 13:36:04.297: W/System.err(16158): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-15 13:36:04.297: W/System.err(16158): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-15 13:36:04.297: W/System.err(16158): at java.lang.Thread.run(Thread.java:841)
10-15 13:36:04.719: D/CordovaLog(16158): file:///android_asset/www/app.js: Line 1 : 12
10-15 13:36:04.719: I/chromium(16158): [INFO:CONSOLE(1)] "12", source: file:///android_asset/www/app.js (1)
10-15 13:36:04.720: D/CordovaLog(16158): file:///android_asset/www/app.js: Line 1 : 12
10-15 13:36:04.720: I/chromium(16158): [INFO:CONSOLE(1)] "12", source: file:///android_asset/www/app.js (1)
10-15 13:36:04.743: D/TEST(16158): cdvfile://localhost/persistent/com.------.------/data/downloadQueue.json: 12
10-15 13:36:04.863: D/CordovaLog(16158): file:///android_asset/www/plugins/com.smartmobilesoftware.inappbilling/www/inappbilling.js: Line 6 : InAppBilling[js]: setup ok
10-15 13:36:04.863: I/chromium(16158): [INFO:CONSOLE(6)] "InAppBilling[js]: setup ok", source: file:///android_asset/www/plugins/com.smartmobilesoftware.inappbilling/www/inappbilling.js (6)
10-15 13:36:05.118: D/CordovaActivity(16158): onMessage(splashscreen,hide)
10-15 13:36:05.149: D/FileTransfer(16158): download http://www.------.com/fx/json/publication.php?v=1.0.25&authid=------&groupid=------------ to cdvfile://localhost/persistent//com.------.------/-----------.json
10-15 13:36:05.150: D/FileTransfer(16158): Download file:http://www.------.com/fx/json/publication.php?v=1.0.25&authid=------&groupid=-------------
10-15 13:36:05.237: D/FileTransfer(16158): download http://www.------.com/fx/json/catalog.php?v=1.0.25&authid=------ to cdvfile://localhost/persistent//com.-----.------/data/catalog.json
10-15 13:36:05.242: D/FileTransfer(16158): Download file:http://www.------.com/fx/json/catalog.php?v=1.0.25&authid=------
10-15 13:36:05.784: D/FileTransfer(16158): Saved file: cdvfile://localhost/persistent//com.------.------/data/catalog.json
10-15 13:36:05.819: D/FileTransfer(16158): Saved file: cdvfile://localhost/persistent//com.------.------/------------.json
Unfortunately, even after trying a quick Google search, I don't know a way of grabbing logs from the Fire HD 6 when the signed APK runs. Does anyone have any idea about finding those logs on the device?
Here is the logcat from the sideloaded APK:
D/CordovaActivity(32519): onMessage(exit,null)
I/ActivityManager( 535): START u0 {xxxx} from pid 1208
I/Activity(32519): No ActvityExender defined. Proceed with default activity behavior.
I/CordovaLog(32519): Changing log level to DEBUG(3)
D/Whitelist(32519): Unlimited access to network resources
D/CordovaActivity(32519): CordovaActivity.onCreate()
D/CordovaActivity(32519): Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml
D/CordovaActivity(32519): Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml
W/BindingManager(32519): Cannot setInForeground() - never saw a connection for the pid: 32519
D/AmazonTransitionManager( 535): openingActivityName = com.branded.-----.BrandedActivity, animationType = ZOOM
D/CordovaWebView(32519): CordovaWebView is running on device made by: Amazon
D/JsMessageQueue(32519): Set native->JS mode to 2
D/CordovaActivity(32519): CordovaActivity.init()
D/CordovaWebView(32519): loadUrlIntoView(file:///android_asset/www/index.html, 12000)
D/CordovaActivity(32519): onMessage(splashscreen,show)
D/CordovaWebView(32519): >>> loadUrl(file:///android_asset/www/index.html)
D/PluginManager(32519): init()
D/CordovaWebView(32519): >>> loadUrlNow()
W/BindingManager(32519): Cannot setInForeground() - never saw a connection for the pid: 0
W/BindingManager(32519): Cannot setInForeground() - never saw a connection for the pid: 32519
I/CordovaLog(32519): Changing log level to DEBUG(3)
D/Whitelist(32519): Unlimited access to network resources
D/CordovaActivity(32519): Resuming the App
D/CordovaActivity(32519): CB-3064: The errorUrl is null
D/SoftKeyboardDetect(32519): Ignore this event
I/ActivityManager( 535): Displayed com.branded.-----/.BrandedActivity: +142ms
D/SoftKeyboardDetect(32519): Ignore this event
D/CordovaActivity(32519): onMessage(onPageStarted,file:///android_asset/www/index.html)
D/SoftKeyboardDetect(32519): Ignore this event
I/ActivityManager( 535): Process android.process.acore (pid 28595) has died.
I/ActivityManager( 535): Process com.ivona.tts.oem (pid 31488) has died.
D/CordovaWebViewClient(32519): onPageFinished(file:///android_asset/www/index.html)
D/CordovaActivity(32519): onMessage(onPageFinished,file:///android_asset/www/index.html)
D/CordovaActivity(32519): onMessage(spinner,stop)
D/CordovaNetworkManager(32519): Connection Type: wifi
E/chromium(32519): [ERROR:gl_context.cc(53)] Not implemented reached in virtual void gfx::GLContext::SetUnbindFboOnMakeCurrent()
I/chromium(32519): [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
D/CordovaNetworkManager(32519): Connection Type: wifi
D/CordovaActivity(32519): onMessage(networkconnection,wifi)
I/ActivityManager( 535): Process com.smartcom.attwifi (pid 27770) has died.
W/ActivityManager( 535): Scheduling restart of crashed service com.smartcom.attwifi/com.smartcom.libwispr.MainWifiService in 1000ms
D/CordovaLog(32519): file:///android_asset/www/app.js: Line 1 : a launch right here: file:///android_asset/www/index.html
I/chromium(32519): [INFO:CONSOLE(1)] "a launch right here: file:///android_asset/www/index.html", source: file:///android_asset/www/app.js (1)
W/PackageManager( 535): Launching com.smartcom.attwifi (32109) with AMZ_APP_GID
I/ActivityManager( 535): Start proc com.smartcom.attwifi for service com.smartcom.attwifi/com.smartcom.libwispr.MainWifiService: pid=32727 uid=32109 gids={72109, 3003, 9001}
I/wpa_supplicant(31391): wlan0: CTRL-EVENT-SCAN-STARTED
D/CordovaActivity(32519): onMessage(spinner,stop)
Finally, does anyone have any idea why I'm seeing this bug? Or any ideas if building the Cordova jar differently would introduce this bug? Or why the Fire HDs are the only devices that have the issue? Or if this is a Sencha Touch/Cordova issue on Fire HDs? Or does anyone have any ideas for troubleshooting - I've run out of 'try this next' scenarios?
Thanks for reading and any help you provide, I do appreciate it!
It turns out that the key to a fix was the rotation piece I mentioned. I added a couple of these lines during the launch function of the Sencha Touch project's app.js:
Ext.Viewport.fireEvent('orientationchange');
Here is the app.js launch function after I added them:
launch: function() {
Ext.Viewport.bodyElement.on('resize', Ext.emptyFn, this, { buffer: 1});
Ext.Viewport.fireEvent('orientationchange');
console.log('a launch right here: '+window.location);
if (window.device.platform) {
try{
window.requestFileSystem(
LocalFileSystem.PERSISTENT,
0,
function(fSys) {
console.log('index: gotFS');
window.fsRoot = fSys.root;
console.log('here is the root: '+window.fsRoot.toURL());
// Create the main viewport
setTimeout(function(){
Ext.Viewport.add( Ext.create('-------.view.Main') );
Ext.Viewport.fireEvent('orientationchange');
}, 100);
},
function(err) {
console.log("FileSystem Failure: " + err.code);
}
);
}catch(e){
//Any other error
alert('Could not open filesystem, errorcode: ' + e);
}
}else {
window.Dlog('no device platform found');
setTimeout(function(){
Ext.Viewport.add( Ext.create('-------.view.Main') );
}, 100);
}
},

Application gets crashed and displays a Error in Thread(Fatal Signal)

In LogCat :
12-16 01:49:49.139: A/libc(790): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 806 (Thread-93)
12-16 01:49:49.169: A/libc(790): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 824 (Thread-112)
I wrote a code for creating Threads one by one when a button is clicked.It switches to multiple screens.
when i tap on button multiple time my app is closing automatically,how to resolve this issue?

Android AVD emulator not running app, but device does? (OpenGL)

Hi I am trying to run some sample openGl code on an emulator. I am new to Android development. It crashes on the emulator but not my device, a Samsung Galaxy Note phone N7000.
The AVD settings I tried were:
Target: Android 4.1 - API Level 16
CPU/ABI: ARM (armeabi-v7a)
SD Card: 32 MiB
Skin: Built-in : WGA800
Here are the errors on the console:
10-15 13:23:34.287: E/Trace(621): error opening trace file: No such file or directory (2)
10-15 13:23:34.848: D/libEGL(621): Emulator without GPU support detected. Fallback to software renderer.
10-15 13:23:34.878: D/libEGL(621): loaded /system/lib/egl/libGLES_android.so
10-15 13:23:34.947: D/gralloc_goldfish(621): Emulator without GPU emulation detected.
10-15 13:23:34.977: W/dalvikvm(621): threadid=11: thread exiting with uncaught exception (group=0x40a13300)
10-15 13:23:34.977: E/AndroidRuntime(621): FATAL EXCEPTION: GLThread 72
10-15 13:23:34.977: E/AndroidRuntime(621): java.lang.IllegalArgumentException: No configs match configSpec
10-15 13:23:34.977: E/AndroidRuntime(621): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
10-15 13:23:34.977: E/AndroidRuntime(621): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
10-15 13:23:34.977: E/AndroidRuntime(621): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
10-15 13:23:34.977: E/AndroidRuntime(621): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
10-15 13:23:35.377: I/Choreographer(621): Skipped 67 frames! The application may be doing too much work on its main thread.
10-15 13:23:36.658: I/Choreographer(621): Skipped 72 frames! The application may be doing too much work on its main thread.
Thanks
Bob
10-15 13:23:34.848: D/libEGL(621): Emulator without GPU support detected. Fallback to software renderer.
Just recreate or edit your emulator and be sure that under the hardware list you have
GPU Emulation set to Yes

Categories

Resources