Crashing at Alarming Rate - LWP 2.6

Discussion in 'Bug Reports' started by Friendlyspeaking, Jun 23, 2013.

  1. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Hello

    The wallpapers which I have created with 2.6 is crashing at alarming rate, received 14 crash report for a wallpaper in a day can you believe it? Every wallpaper created with 2.6 is crashing. Crashing rate for wallpapers which I had created with 2.1 was 1 out of 5000 installs but this is crashing at 1 out of 20 installs.

    This is the following error users are reporting for wallpapers created with 2.6

    1. =======

    Java.lang.ClassNotFoundException
    in dalvik.system.PathClassLoader.findClass


    java.lang.RuntimeException: Unable to instantiate receiver hobbypoint.birdslivewallpaper.BootReceiver: java.lang.ClassNotFoundException: hobbypoint.birdslivewallpaper.BootReceiver in loader dalvik.system.PathClassLoader[/data/app/hobbypoint.birdslivewallpaper-1.apk]
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2789)
    at android.app.ActivityThread.access$3200(ActivityThread.java:125)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4627)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.ClassNotFoundException: hobbypoint.birdslivewallpaper.BootReceiver in loader dalvik.system.PathClassLoader[/data/app/hobbypoint.birdslivewallpaper-1.apk]
    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2780)
    ... 10 more



    2.======

    java.lang.NoClassDefFoundError
    in com.sbg.lwc.SBLiveWallpaper$LwpEngine.getWallpaperResource


    java.lang.NoClassDefFoundError: android.graphics.BitmapRegionDecoder
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.getWallpaperResource(SBLiveWallpaper.java:1002)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.init(SBLiveWallpaper.java:231)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onSurfaceChanged(SBLiveWallpaper.java:649)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:558)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:606)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:817)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4669)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
    at dalvik.system.NativeStart.main(Native Method)


    3. ================

    java.lang.RuntimeException
    in android.graphics.Canvas.throwIfRecycled

    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@415d5870
    at android.graphics.Canvas.throwIfRecycled(Canvas.java:1026)
    at android.graphics.Canvas.drawBitmap(Canvas.java:1065)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.draw(SBLiveWallpaper.java:883)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.drawFrame(SBLiveWallpaper.java:733)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onVisibilityChanged(SBLiveWallpaper.java:637)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:767)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:813)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1060)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:153)
    at android.app.ActivityThread.main(ActivityThread.java:5086)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
    at dalvik.system.NativeStart.main(Native Method)


    Please do something :eek:
  2. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Today I noticed something weird on my phone, I had 4-5 wallpapers installed on my phone created with 2.6 and out of those 1 was set on the screen but when I restarted phone It just started showing crashing message one by one for all those wallpapers created with 2.6 and which were not set on the screen, and the one which was set on the screen didn't crash :oops:
  3. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    This is not a bug. Your BootReceiver is causing the crash. Probably, because it's set up incorrectly. Make sure you specify the full path to the package, where your BootReceiver is, in the manifest. Since the package name is different in 2.6, you can no longer register extra classes in the manifest just by entering android:name=".BootReceiver". You have to specify the package that it is located in like this: android:name="com.sbg.lwc.BootReceiver"
    Friendlyspeaking likes this.
  4. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    I didn't know about this Vas, I have updated the manifest files and uploaded again on Google Play, lets wait and see if someone reports. Thank you very much for solving this issue. You saved me :D
  5. NewKid Seasoned Vet

    Member Since:
    Apr 1, 2012
    Message Count:
    100
    Likes Received:
    20
    Trophy Points:
    100
  6. virajith Active Member

    Member Since:
    Dec 2, 2012
    Message Count:
    71
    Likes Received:
    10
    Trophy Points:
    50
    I am using airpush ....

    Can some one say what should I do to solve these crashes
  7. virajith Active Member

    Member Since:
    Dec 2, 2012
    Message Count:
    71
    Likes Received:
    10
    Trophy Points:
    50
    I got total 3 error and 10 crashes

    errors are :-

    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@424b2e28
    at android.graphics.Canvas.throwIfRecycled(Canvas.java:1026)
    at android.graphics.Canvas.drawBitmap(Canvas.java:1065)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.draw(SBLiveWallpaper.java:928)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.drawFrame(SBLiveWallpaper.java:775)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onVisibilityChanged(SBLiveWallpaper.java:679)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:722)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:772)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1015)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4794)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
    at dalvik.system.NativeStart.main(Native Method)


    java.lang.IllegalArgumentException
    at android.view.Surface.unlockCanvasAndPost(Native Method)
    at com.android.internal.view.BaseSurfaceHolder.unlockCanvasAndPost(BaseSurfaceHolder.java:215)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.drawFrame(SBLiveWallpaper.java:779)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine$1.run(SBLiveWallpaper.java:92)
    at android.os.Handler.handleCallback(Handler.java:605)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:4624)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)



    java.lang.NullPointerException
    at android.webkit.WebView.requestFocus(WebView.java:7893)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2212)
    at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2256)
    at android.view.ViewGroup.requestFocus(ViewGroup.java:2215)
    at android.view.View.requestFocus(View.java:5340)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1586)
    at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2455)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4424)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
    at dalvik.system.NativeStart.main(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
    at dalvik.system.NativeStart.main(Native Method


    I think the last error might be from startapp as I did not implement exit apps
  8. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    There's nothing you can do about the first 2. They will happen occasionally.
  9. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    Hello

    The following error is being reported by users. In last 3 days I have received more than 30 times for a wallpaper :mad:


    java.lang.NumberFormatException

    in java.lang.Integer.invalidInt


    java.lang.NumberFormatException: Invalid int: "slow"
    at java.lang.Integer.invalidInt(Integer.java:138)
    at java.lang.Integer.parse(Integer.java:375)
    at java.lang.Integer.parseInt(Integer.java:366)
    at java.lang.Integer.parseInt(Integer.java:332)
    at com.sbg.lwc.RandomValueList.parseValues(RandomValueList.java:89)
    at com.sbg.lwc.RandomValueList.set(RandomValueList.java:34)
    at com.sbg.lwc.RandomValueList.<init>(RandomValueList.java:25)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onSharedPreferenceChanged(SBLiveWallpaper.java:513)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.init(SBLiveWallpaper.java:304)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onSurfaceChanged(SBLiveWallpaper.java:649)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:719)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:806)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1049)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4898)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
    at dalvik.system.NativeStart.main(Native Method)





    java.lang.NumberFormatException

    in java.lang.Integer.parse


    java.lang.NumberFormatException: unable to parse 'fast' as integer
    at java.lang.Integer.parse(Integer.java:414)
    at java.lang.Integer.parseInt(Integer.java:403)
    at java.lang.Integer.parseInt(Integer.java:363)
    at com.sbg.lwc.RandomValueList.parseValues(RandomValueList.java:89)
    at com.sbg.lwc.RandomValueList.set(RandomValueList.java:34)
    at com.sbg.lwc.RandomValueList.<init>(RandomValueList.java:25)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onSharedPreferenceChanged(SBLiveWallpaper.java:513)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.init(SBLiveWallpaper.java:304)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onSurfaceChanged(SBLiveWallpaper.java:649)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:691)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:750)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:972)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:92)
    at android.os.Handler.dispatchMessage(Handler.java:130)
    at android.os.Looper.loop(SourceFile:351)
    at android.app.ActivityThread.main(ActivityThread.java:3822)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:538)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:969)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:727)
    at dalvik.system.NativeStart.main(Native Method)




    java.lang.RuntimeException

    in android.graphics.Canvas.throwIfRecycled


    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@41715768
    at android.graphics.Canvas.throwIfRecycled(Canvas.java:1026)
    at android.graphics.Canvas.drawBitmap(Canvas.java:1065)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.draw(SBLiveWallpaper.java:886)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.drawFrame(SBLiveWallpaper.java:733)
    at com.sbg.lwc.SBLiveWallpaper$LwpEngine.onVisibilityChanged(SBLiveWallpaper.java:637)
    at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:767)
    at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:813)
    at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1060)
    at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:153)
    at android.app.ActivityThread.main(ActivityThread.java:5086)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
    at dalvik.system.NativeStart.main(Native Method)
  10. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    You put string values under (probably) speed settings where you are supposed to put numbers. The last error is the same as the first one in your first post - nothing can be done about it.
  11. Friendlyspeaking Active Member

    Member Since:
    Oct 12, 2012
    Message Count:
    86
    Likes Received:
    27
    Trophy Points:
    50
    I never used any string value but the numeric ones and the last error I am receiving only for wallpapers created with LWC 2.6 never for those which were created with LWC 2.1 :(
  12. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Yes, I know. LWC 2.1 did not use recycled bitmaps.
    First 2 errors pretty much say that 'fast' and "slow" cannot be parsed as integers. So wherever it is that you typed in 'fast' and "slow", you should've put down actual numbers.
  13. Arjun Arora Keeps coming back

    Member Since:
    Oct 22, 2012
    Message Count:
    14
    Likes Received:
    0
    Trophy Points:
    10
    Dear Vas, the wallpapers are compiling easily for me, but when I install on my mobile, the wallpaper crashes and the animated objects stop moving and remain static. When I reduced the animation to only one object it worked fine. Am I doing something wrong??
  14. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Difficult to say. It would be easier if you had a crash stack trace (find it in your eclipse>logcat in red font when your wallpaper crashes). If you are reducing animation of objects then it could be that your objects are too memory intensive. This is a speculation though. I can't say why it crashes for sure without further information.
  15. Arjun Arora Keeps coming back

    Member Since:
    Oct 22, 2012
    Message Count:
    14
    Likes Received:
    0
    Trophy Points:
    10
    Should I attach the file here, can you please take a look..
  16. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
  17. Arjun Arora Keeps coming back

    Member Since:
    Oct 22, 2012
    Message Count:
    14
    Likes Received:
    0
    Trophy Points:
    10
    Here is the file Vas..

    Attached Files:

  18. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Works fine on my phone. Even at 1000% number of items.
  19. Arjun Arora Keeps coming back

    Member Since:
    Oct 22, 2012
    Message Count:
    14
    Likes Received:
    0
    Trophy Points:
    10
    Wow, I don't know buddy.. Keeps on crashing on my galaxy s3.. I'll post a video soon..
  20. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    I also have S3. Post crash stack traces. Just like the OP in the first post. They are much more informative.

Share This Page