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
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
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"
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
Yes, it's exactly as vas said, check my thread, I had the same issue: http://www.livewallpapercreator.com/community/index.php?threads/344/ Correcting the .BootReceiver line solved that specific crash, like this: <receiver android:name="com.sbg.lwc.BootReceiver">
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
Hello The following error is being reported by users. In last 3 days I have received more than 30 times for a wallpaper 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)
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.
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
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.
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??
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.
I also have S3. Post crash stack traces. Just like the OP in the first post. They are much more informative.