halfninja/android-parallax-wallpaper — Issue #2: Crashes when selecting wallpaper layers.
Author: Dahie
Created: 2012-02-24 10:17:22+00:00
State: open

I ran the wallpaper from eclipse and installed on my device. When I select a set of wallpaper layers via custon_path. It stays black with this catlog message:

```
02-24 11:05:29.884: E/InputQueue-JNI(28174): channel '41cc9870 uk.co.halfninja.wallpaper.parallax.ParallaxWallpaper (client)' ~ Publisher closed input channel or an error occurred. events=0x8
```

When I go back to the settings now, it crashes with this trace:

```
02-24 11:07:24.454: E/AndroidRuntime(28174): java.lang.OutOfMemoryError
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:493)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:299)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:324)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at uk.co.halfninja.wallpaper.parallax.ParallaxWallpaper$ParallaxEngine.addLayer(ParallaxWallpaper.java:183)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at uk.co.halfninja.wallpaper.parallax.ParallaxWallpaper$ParallaxEngine.loadLayers(ParallaxWallpaper.java:172)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at uk.co.halfninja.wallpaper.parallax.ParallaxWallpaper$ParallaxEngine.onSharedPreferenceChanged(ParallaxWallpaper.java:155)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at uk.co.halfninja.wallpaper.parallax.ParallaxWallpaper$ParallaxEngine.onCreate(ParallaxWallpaper.java:165)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:729)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:973)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.os.Handler.dispatchMessage(Handler.java:99)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.os.Looper.loop(Looper.java:137)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at android.app.ActivityThread.main(ActivityThread.java:4340)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at java.lang.reflect.Method.invokeNative(Native Method)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at java.lang.reflect.Method.invoke(Method.java:511)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-24 11:07:24.454: E/AndroidRuntime(28174):	at dalvik.system.NativeStart.main(Native Method)
```

Thanks for the wallpaper, exactly what I'm looking for. :)