AndEngine icon indicating copy to clipboard operation
AndEngine copied to clipboard

Unhandled event loop exception. CPU may be pegged. trying again.

Open bondjpf opened this issue 12 years ago • 2 comments

I'm having this error where my Live Wallpaper freezes randomly. Sometimes it takes a few minutes, sometimes when the phone wakes or I do something fast. I've been looking for this and found others with similar problems like this one:

http://stackoverflow.com/questions/5814002/cpu-may-be-pegged-opengl-live-wallpaper-locks-up

It pointed me to those 2 links:

https://github.com/markfguerra/GLWallpaperService/issues/7

https://github.com/markfguerra/GLWallpaperService/issues/11

Is it possible that we have the same issues as them?

Stack trace:

java.lang.NullPointerException at com.android.ddmuilib.logcat.LogCatPanel$WrappingToolTipSupport.createViewerToolTipContentArea(LogCatPanel.java:904) at org.eclipse.jface.viewers.ColumnViewerToolTipSupport.createToolTipContentArea(ColumnViewerToolTipSupport.java:104) at org.eclipse.jface.window.ToolTip.toolTipShow(ToolTip.java:359) at org.eclipse.jface.window.ToolTip.toolTipOpen(ToolTip.java:483) at org.eclipse.jface.window.ToolTip.toolTipCreate(ToolTip.java:348) at org.eclipse.jface.window.ToolTip.access$2(ToolTip.java:342) at org.eclipse.jface.window.ToolTip$ToolTipOwnerControlListener.handleEvent(ToolTip.java:631) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

Logcat:

03-07 09:32:21.094: W/SharedBufferStack(10571): waitForCondition(LockCondition) timed out (identity=3909, status=0). CPU may be pegged. trying again.

bondjpf avatar Mar 07 '12 09:03 bondjpf

Hi, We have this same problem a lot on an HTC Desire. I see a lot about this bug all around Internet. There seems to be no real solution, but a lot of tricks to reduce its chances of occuring. Here is the open bug in android: http://code.google.com/p/android/issues/detail?id=6478

flomin avatar Oct 15 '12 16:10 flomin

Hi again, This issue is very problematic for us, we have it several time per days (like 5-10 times) on an HTC Desire and it forces the user to remove the battery of the phone to restart it and be able to unlock it ! This is a huge problem for any real application using AndEngine ! Here are a few links related to this issue, but I'm not good enough with the AndEngine OpenGL calls to be able to test the provided tricks... * https://groups.google.com/forum/?fromgroups=#!topic/android-developers/97axewT5PvM * http://www.mail-archive.com/[email protected]/msg110732.html * http://www.andengine.org/forums/post34505.html?hilit=rb_timestamp_wait_on_timestamp#p34505 * http://stackoverflow.com/questions/5018883/garbage-collector-hangs-opengl-on-htc-ev-es * http://stackoverflow.com/questions/8458404/android-cpu-may-be-pegged-bug * http://code.google.com/p/android/issues/detail?id=6478 * https://github.com/markfguerra/GLWallpaperService/issues/7 * https://developer.qualcomm.com/forum/qdevnet-forums/mobile-gaming-graphics-optimization-adreno/11525

Could someone help us on this one, please ? Regards

flomin avatar Dec 11 '12 15:12 flomin