help to understand an error when running audalyzer

33 views
Skip to first unread message

Yevgen Barsukov

unread,
May 11, 2015, 9:12:20 PM5/11/15
to moon...@googlegroups.com
I was able to put audalyzer source into Eclipse-Luna and followed all the advises about cleaning
it etc. Had to reduce java level to 1.6
Finally I was able to compile it without errors. But when I try to run it in an android phone (either in debugger
or directly) it terminates with "unfortunately application has stopped".

Here is the logcat error log. Maybe anybody can point me to the reason of this?

If this is too hard, any hints on where to get a "refreshed" audalyzer code that compiles well in 1.7 level or some other tricks?

**************
05-11 20:00:21.036: I/SELinux(22168): Function: selinux_android_load_priority [0], There is no sepolicy file.
05-11 20:00:21.036: I/SELinux(22168):  
05-11 20:00:21.036: I/SELinux(22168): Function: selinux_android_load_priority , priority version is VE=SEPF_SPH-L900_4.4.2_0033
05-11 20:00:21.036: I/SELinux(22168):  
05-11 20:00:21.036: I/SELinux(22168):  
05-11 20:00:21.036: I/SELinux(22168): selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts
05-11 20:00:21.036: E/dalvikvm(22168): >>>>> Normal User
05-11 20:00:21.036: E/dalvikvm(22168): >>>>> org.hermit.audalyzer [ userId:0 | appId:10271 ]
05-11 20:00:21.041: D/dalvikvm(22168): Late-enabling CheckJNI
05-11 20:00:21.076: I/dalvikvm(22168): Enabling JNI app bug workarounds for target SDK version 4...
05-11 20:00:21.476: W/dalvikvm(22168): VFY: unable to resolve static field 743 (BLACKMAN_HARRIS) in Lorg/hermit/dsp/Window$Function;
05-11 20:00:21.476: D/dalvikvm(22168): VFY: replacing opcode 0x62 at 0x007a
05-11 20:00:21.481: W/dalvikvm(22168): No implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String;)I
05-11 20:00:21.486: E/ActivityThread(22168): Pause GC
05-11 20:00:21.486: E/ActivityThread(22168): java.lang.reflect.InvocationTargetException
05-11 20:00:21.486: E/ActivityThread(22168): at java.lang.reflect.Method.invokeNative(Native Method)
05-11 20:00:21.486: E/ActivityThread(22168): at java.lang.reflect.Method.invoke(Method.java:515)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread.pauseGC(ActivityThread.java:5525)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread.access$900(ActivityThread.java:175)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
05-11 20:00:21.486: E/ActivityThread(22168): at android.os.Handler.dispatchMessage(Handler.java:102)
05-11 20:00:21.486: E/ActivityThread(22168): at android.os.Looper.loop(Looper.java:146)
05-11 20:00:21.486: E/ActivityThread(22168): at android.app.ActivityThread.main(ActivityThread.java:5602)
05-11 20:00:21.486: E/ActivityThread(22168): at java.lang.reflect.Method.invokeNative(Native Method)
05-11 20:00:21.486: E/ActivityThread(22168): at java.lang.reflect.Method.invoke(Method.java:515)
05-11 20:00:21.486: E/ActivityThread(22168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
05-11 20:00:21.486: E/ActivityThread(22168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
05-11 20:00:21.486: E/ActivityThread(22168): at dalvik.system.NativeStart.main(Native Method)
05-11 20:00:21.486: E/ActivityThread(22168): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: dalvik.system.VMRuntime.pauseGc:(Ljava/lang/String;)I
05-11 20:00:21.486: E/ActivityThread(22168): at dalvik.system.VMRuntime.pauseGc(Native Method)
05-11 20:00:21.486: E/ActivityThread(22168): ... 15 more
05-11 20:00:21.486: I/PersonaManager(22168): getPersonaService() name persona_policy
05-11 20:00:21.511: I/dalvikvm(22168): Could not find method org.hermit.utils.CharFormatter.formatInt, referenced from method org.hermit.android.core.SurfaceRunner.statsDraw
05-11 20:00:21.511: W/dalvikvm(22168): VFY: unable to resolve static method 1453: Lorg/hermit/utils/CharFormatter;.formatInt ([CIIIZ)V
05-11 20:00:21.511: D/dalvikvm(22168): VFY: replacing opcode 0x71 at 0x0035
05-11 20:00:21.511: I/dalvikvm(22168): Could not find method org.hermit.utils.CharFormatter.formatString, referenced from method org.hermit.android.core.SurfaceRunner.statsInit
05-11 20:00:21.511: W/dalvikvm(22168): VFY: unable to resolve static method 1454: Lorg/hermit/utils/CharFormatter;.formatString ([CILjava/lang/String;I)V
05-11 20:00:21.511: D/dalvikvm(22168): VFY: replacing opcode 0x71 at 0x0031
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve static field 743 (BLACKMAN_HARRIS) in Lorg/hermit/dsp/Window$Function;
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x62 at 0x000f
05-11 20:00:21.526: I/dalvikvm(22168): Could not find method org.hermit.dsp.SignalPower.biasAndRange, referenced from method org.hermit.android.instruments.AudioAnalyser.processAudio
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve static method 1449: Lorg/hermit/dsp/SignalPower;.biasAndRange ([SII[F)V
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x71 at 0x000e
05-11 20:00:21.526: I/dalvikvm(22168): Could not find method org.hermit.dsp.SignalPower.calculatePowerDb, referenced from method org.hermit.android.instruments.AudioAnalyser.processAudio
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve static method 1450: Lorg/hermit/dsp/SignalPower;.calculatePowerDb ([SII)D
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x71 at 0x0034
05-11 20:00:21.526: I/dalvikvm(22168): Could not find method org.hermit.dsp.FFTTransformer.setInput, referenced from method org.hermit.android.instruments.AudioAnalyser.processAudio
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve virtual method 1446: Lorg/hermit/dsp/FFTTransformer;.setInput ([SII)V
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x6e at 0x004a
05-11 20:00:21.526: I/dalvikvm(22168): Could not find method org.hermit.dsp.FFTTransformer.transform, referenced from method org.hermit.android.instruments.AudioAnalyser.processAudio
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve virtual method 1448: Lorg/hermit/dsp/FFTTransformer;.transform ()V
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x6e at 0x005f
05-11 20:00:21.526: E/dalvikvm(22168): Could not find class 'org.hermit.dsp.FFTTransformer', referenced from method org.hermit.android.instruments.AudioAnalyser.setBlockSize
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve new-instance 296 (Lorg/hermit/dsp/FFTTransformer;) in Lorg/hermit/android/instruments/AudioAnalyser;
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x22 at 0x0002
05-11 20:00:21.526: I/dalvikvm(22168): Could not find method org.hermit.dsp.FFTTransformer.setWindowFunc, referenced from method org.hermit.android.instruments.AudioAnalyser.setWindowFunc
05-11 20:00:21.526: W/dalvikvm(22168): VFY: unable to resolve virtual method 1447: Lorg/hermit/dsp/FFTTransformer;.setWindowFunc (Lorg/hermit/dsp/Window$Function;)V
05-11 20:00:21.526: D/dalvikvm(22168): VFY: replacing opcode 0x6e at 0x0004
05-11 20:00:21.526: D/dalvikvm(22168): DexOpt: unable to opt direct call 0x05a3 at 0x3c in Lorg/hermit/android/instruments/AudioAnalyser;.<init>
05-11 20:00:21.531: D/dalvikvm(22168): DexOpt: unable to opt direct call 0x05a3 at 0x08 in Lorg/hermit/android/instruments/AudioAnalyser;.setBlockSize
05-11 20:00:21.531: D/AndroidRuntime(22168): Shutting down VM
05-11 20:00:21.531: W/dalvikvm(22168): threadid=1: thread exiting with uncaught exception (group=0x41eb2c08)
05-11 20:00:21.531: E/AndroidRuntime(22168): FATAL EXCEPTION: main
05-11 20:00:21.531: E/AndroidRuntime(22168): Process: org.hermit.audalyzer, PID: 22168
05-11 20:00:21.531: E/AndroidRuntime(22168): java.lang.NoClassDefFoundError: org.hermit.dsp.Window$Function
05-11 20:00:21.531: E/AndroidRuntime(22168): at org.hermit.android.instruments.AudioAnalyser.<init>(AudioAnalyser.java:481)
05-11 20:00:21.531: E/AndroidRuntime(22168): at org.hermit.audalyzer.InstrumentPanel.<init>(InstrumentPanel.java:84)
05-11 20:00:21.531: E/AndroidRuntime(22168): at org.hermit.audalyzer.Audalyzer.onCreate(Audalyzer.java:92)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.Activity.performCreate(Activity.java:5451)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.ActivityThread.access$900(ActivityThread.java:175)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.os.Handler.dispatchMessage(Handler.java:102)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.os.Looper.loop(Looper.java:146)
05-11 20:00:21.531: E/AndroidRuntime(22168): at android.app.ActivityThread.main(ActivityThread.java:5602)
05-11 20:00:21.531: E/AndroidRuntime(22168): at java.lang.reflect.Method.invokeNative(Native Method)
05-11 20:00:21.531: E/AndroidRuntime(22168): at java.lang.reflect.Method.invoke(Method.java:515)
05-11 20:00:21.531: E/AndroidRuntime(22168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
05-11 20:00:21.531: E/AndroidRuntime(22168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
05-11 20:00:21.531: E/AndroidRuntime(22168): at dalvik.system.NativeStart.main(Native Method)
************

Regards,
Yevgen

Thomas Wrobel

unread,
May 11, 2015, 9:26:48 PM5/11/15
to moon...@googlegroups.com
": No implementation found for native Ldalvik/system/VMRuntime;.pauseGc:"


~~~
Thomas & Bertines online review show:
http://randomreviewshow.com/index.html
Try it! You might even feel ambivalent about it :)

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

Yevgen Barsukov

unread,
May 12, 2015, 4:25:04 PM5/12/15
to moon...@googlegroups.com
Actually it is Samsung Galaxy Note 2. I will try another phone.

Meanwhile, the strange thing is that the originally compiled by author audylizer.apk does not cause
this problem and is running normally. It was compiled at some point in 2012.

What in my compiler settings could have caused such effect?
Could I somehow not use the Ldalvik/system/VMRuntime as original compilation appear to do?

Regards,
Yevgen

Thomas Wrobel

unread,
May 13, 2015, 1:21:18 PM5/13/15
to moon...@googlegroups.com
That is very puzzling indeed but I am afraid I dont know enough about audylizer code or requirements to help you track it down. :-/


~~~
Thomas & Bertines online review show:
http://randomreviewshow.com/index.html
Try it! You might even feel ambivalent about it :)

Reply all
Reply to author
Forward
0 new messages