question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes after plugging in charger

See original GitHub issue

Gear: Samsung GT-i5510 Galaxy, Cyanogenmod 7 (Android 2.3.7) Shader Editor version: 2.8.1 Logcat:

W/ActivityManager( 1717): Permission Denial: Accessing service ComponentInfo{de.markusfisch.android.shadereditor/de.markusfisch.android.shadereditor.service.ShaderWallpaperService} from pid=1717, uid=1000 requires android.permission.BIND_WALLPAPER
E/AndroidRuntime( 2557): java.lang.RuntimeException: Unable to start receiver de.markusfisch.android.shadereditor.receiver.BatteryLevelReceiver: java.lang.SecurityException: Not allowed to start service Intent { cmp=de.markusfisch.android.shadereditor/.service.ShaderWallpaperService (has extras) } without permission android.permission.BIND_WALLPAPER
E/AndroidRuntime( 2557): Caused by: java.lang.SecurityException: Not allowed to start service Intent { cmp=de.markusfisch.android.shadereditor/.service.ShaderWallpaperService (has extras) } without permission android.permission.BIND_WALLPAPER
E/AndroidRuntime( 2557): 	at de.markusfisch.android.shadereditor.receiver.BatteryLevelReceiver.a(Unknown Source)
E/AndroidRuntime( 2557): 	at de.markusfisch.android.shadereditor.receiver.BatteryLevelReceiver.onReceive(Unknown Source)
I/WindowManager( 1717): WIN DEATH: Window{407f62a0 de.markusfisch.android.shadereditor/de.markusfisch.android.shadereditor.activity.MainActivity paused=false}
I/ActivityManager( 1717): Process de.markusfisch.android.shadereditor (pid 2557) has died.
W/ActivityManager( 1717): Scheduling restart of crashed service de.markusfisch.android.shadereditor/.service.ShaderWallpaperService in 5000ms
W/WallpaperService( 1717): Wallpaper service gone: ComponentInfo{de.markusfisch.android.shadereditor/de.markusfisch.android.shadereditor.service.ShaderWallpaperService}
I/WindowManager( 1717): WIN DEATH: Window{407f0fd8 de.markusfisch.android.shadereditor.service.ShaderWallpaperService paused=false}

Used wallpaper:

#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform float battery;
uniform float time;
uniform vec3 gravity;

void main(void) {
  vec2 uv = gl_FragCoord.xy / resolution.xy - 0.5;
  const float pi = 3.14;
  const float pih = 1.57;
  float grot = gravity.y / length(gravity.xy) * pih;
  float a = gravity.x > 0.0 ? grot : pi - grot;
  float b = battery;
  vec2 uvr = vec2(
    uv.x * cos(a) - uv.y * sin(a),
    uv.x * sin(a) + uv.y * cos(a)
  );
  float t = time;
  float c = ((uvr.y+ 0.5)/b + 1.0 - 1.0/b + sin(t) *uvr.x*0.2);
  float cs = abs(sin(t)) * c;
  float cr = (1.0 - 2.0 * b) * cs;
  float cg = b * cs;
  gl_FragColor = vec4(cr, cg, 0.0, 1.0);
}

This app is amazing by the way 😃

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lechcommented, May 19, 2020

You’re going to dislike this, but I plugged my phone in this afternoon, checked on it this evening and it looks like this is persisting. I got a week’s worth of live wallpaper though, so it’s not resetting daily which is nice. I’ll keep you posted.

1reaction
markusfischcommented, May 15, 2020

Good to know! Thanks for reporting! Let’s hope it stays that way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Phone crashing when I plug in the charger?
I've noticed it will crash almost instantly. It's charging ok now so I suspect it will be fine this time. Is this a...
Read more >
My Laptop crashes when I plug it in the charger
1. Press WINDOWS + X · 2. Click on "Device Manager" · 3. Click on "Battery" · 4. Right click on the first...
Read more >
Apps close among other things when I plug in my charger ...
Here's a few scenarios that happen when I plug in my charger: Playing Clash Royale and I plug in my phone, it force...
Read more >
iMessage freezing and crashing while iPhone is charging
Once I plug it in, the messaging app freezes and it won't allow me to use the app until I do a factory...
Read more >
laptop crashes when plugged in works fine on battery
- Do also try a different AC adapter that has the same voltage with yours and see if the same problem will persist...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found