Some sounds Force Close the app


Last Updated:

  1. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    I am working on a soundboard just as a practice and I loaded it up on the AVD. The first seven sound files work fine, but the last five make the app crash if I try to play them. Is there anyway to figure out what is wrong?
     

    Advertisement
  2. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    anyone know how I can figure out what is wrong?
     
  3. trackaroo

    trackaroo Member

    Joined:
    Dec 12, 2009
    Messages:
    8
    Likes Received:
    0
    It might be helpful if you capture the stacktrace from the crash and provide it here.

    Jeff
     
  4. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    Ok I am kind of a Java noob. I tried to setup this remote-stacktrace thing at android-remote-stacktrace - Project Hosting on Google Code I followed it all completely and got the app on my phone.

    So I opened up my app and clicked on one that would crash it. Sure enough it did so I closed it and went to my email and there is no stacktrace report like there should have been.

    Yes I allowed internet, I followed all the directions and had no errors when i compiled.
     
  5. trackaroo

    trackaroo Member

    Joined:
    Dec 12, 2009
    Messages:
    8
    Likes Received:
    0
    Oh you don't need to do that. You can get the stacktrace from Eclipse. Go to Window -> Show View->Other ->Android ->LogCat. Then just monitor that LogCat view as you reproduce the issue. The LogCat view should capture your stacktrace.

    Jeff
     
  6. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    Hope this is the right thing! Firs line fired when i clicked and this all popped up :p

    12-16 16:38:53.677: DEBUG/AndroidRuntime(230): Shutting down VM
    12-16 16:38:53.677: WARN/dalvikvm(230): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
    12-16 16:38:53.687: ERROR/AndroidRuntime(230): Uncaught handler: thread main exiting due to uncaught exception
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): java.lang.NullPointerException
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.delebo.soundboard.glen.Glen.onClick(Glen.java:108)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.View.performClick(View.java:2364)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.View.onTouchEvent(View.java:4179)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.widget.TextView.onTouchEvent(TextView.java:6532)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.View.dispatchTouchEvent(View.java:3709)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.view.ViewRoot.handleMessage(ViewRoot.java:1690)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.os.Handler.dispatchMessage(Handler.java:99)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.os.Looper.loop(Looper.java:123)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at android.app.ActivityThread.main(ActivityThread.java:4310)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at java.lang.reflect.Method.invokeNative(Native Method)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at java.lang.reflect.Method.invoke(Method.java:521)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    12-16 16:38:53.717: ERROR/AndroidRuntime(230): at dalvik.system.NativeStart.main(Native Method)
    12-16 16:38:53.747: INFO/Process(53): Sending signal. PID: 230 SIG: 3
    12-16 16:38:53.763: INFO/dalvikvm(230): threadid=7: reacting to signal 3
    12-16 16:38:53.817: INFO/dalvikvm(230): Wrote stack trace to '/data/anr/traces.txt'
    12-16 16:38:54.126: INFO/ARMAssembler(53): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x368810:0x3688cc] in 798705 ns
    12-16 16:38:54.157: INFO/ARMAssembler(53): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x3688d0:0x368a98] in 1835708 ns
     
  7. trackaroo

    trackaroo Member

    Joined:
    Dec 12, 2009
    Messages:
    8
    Likes Received:
    0
    This stacktrace should be enough for you to figure out what's wrong. You have a nullpointerexception at Glen.java: line 108 that you need to investigate.

    Jeff
     
  8. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    A yes I saw that meant to invetigate once I got some more time. Going to go check it out now.
     
  9. suran37

    suran37 Member This Topic's Starter

    Joined:
    Dec 7, 2009
    Messages:
    14
    Likes Received:
    0
    well apparently something is wrong with mp.seekTo(0); and mp.start();
    I need them to play the soundfiles and it only crashes on some of the soundfiles I am really confused why this is happening
     

Share This Page

Loading...