Closed Bug 848977 Opened 11 years ago Closed 11 years ago

Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap,testBookmarklets,testAboutPage | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: intermittent-failure)

https://tbpl.mozilla.org/php/getParsedLog.php?id=20368826&tree=Mozilla-Inbound

Android 4.0 Panda mozilla-inbound opt test robocop-2 on 2013-03-05 23:53:16 PST for push 763bff1cfe1a
slave: panda-0586

0 INFO SimpleTest START
1 INFO TEST-START | testWebContentContextMenu
Exception caught during test!
java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
	at android.os.Parcel.readException(Parcel.java:1327)
	at android.os.Parcel.readException(Parcel.java:1281)
	at android.view.IWindowManager$Stub$Proxy.injectKeyEvent(IWindowManager.java:1178)
	at android.app.Instrumentation.sendKeySync(Instrumentation.java:859)
	at android.app.Instrumentation.sendStringSync(Instrumentation.java:842)
	at org.mozilla.fennec.FennecNativeActions.sendKeys(FennecNativeActions.java:408)
	at org.mozilla.fennec.tests.BaseTest.enterUrl(BaseTest.java:201)
	at org.mozilla.fennec.tests.BaseTest.loadUrl(BaseTest.java:217)
	at org.mozilla.fennec.tests.PixelTest.loadAndGetPainted(PixelTest.java:11)
	at org.mozilla.fennec.tests.PixelTest.loadAndPaint(PixelTest.java:22)
	at org.mozilla.fennec.tests.testWebContentContextMenu.testWebContentContextMenu(testWebContentContextMenu.java:30)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
	at org.mozilla.fennec.tests.BaseTest.runTest(BaseTest.java:125)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)
2 INFO TEST-UNEXPECTED-FAIL | testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
3 INFO TEST-END | testWebContentContextMenu | finished in 10274ms
4 INFO TEST-START | Shutdown
5 INFO Passed: 0
6 INFO Failed: 1
7 INFO Todo: 0
8 INFO SimpleTest FINISHED
https://tbpl.mozilla.org/php/getParsedLog.php?id=22415023&tree=Mozilla-Inbound
Summary: Intermittent testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission → Intermittent testAddonManager,testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
https://tbpl.mozilla.org/php/getParsedLog.php?id=22418706&tree=Mozilla-Inbound
Summary: Intermittent testAddonManager,testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission → Intermittent testAddonManager,testOverscroll,testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
In comments 0, 1, 2 and 4, the watcher dies, the keyguard is displayed, and then the next step of the robocop test fails because the keyguard is the foreground activity:

03-12 08:14:26.695 I/ActivityManager( 1400): No longer want com.mozilla.watcher (pid 1859): hidden #16
03-12 08:14:26.703 W/ActivityManager( 1400): Scheduling restart of crashed service com.mozilla.watcher/.WatcherService in 5000ms
Comment 3 is a different case, and less clear, but likely related to a crash in another system process:

04-30 08:02:40.606 E/AndroidRuntime( 2658): FATAL EXCEPTION: main
04-30 08:02:40.606 E/AndroidRuntime( 2658): java.lang.NoSuchMethodError: android.app.NotificationManager.
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at com.android.bluetooth.opp.BluetoothOppService.onCreate(BluetoothOppService.java:159)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2959)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.app.ActivityThread.access$3300(ActivityThread.java:125)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.os.Looper.loop(Looper.java:123)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at android.app.ActivityThread.main(ActivityThread.java:4627)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at java.lang.reflect.Method.invoke(Method.java:521)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-30 08:02:40.606 E/AndroidRuntime( 2658): 	at dalvik.system.NativeStart.main(Native Method)
See Also: → 825426
Depends on: 867360
https://tbpl.mozilla.org/php/getParsedLog.php?id=22571107&tree=Mozilla-Inbound
Summary: Intermittent testAddonManager,testOverscroll,testWebContentContextMenu | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission → Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
https://tbpl.mozilla.org/php/getParsedLog.php?id=22599955&tree=Mozilla-Inbound
Summary: Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission → Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap,testBookmarklets | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
https://tbpl.mozilla.org/php/getParsedLog.php?id=22626959&tree=Mozilla-Inbound
Summary: Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap,testBookmarklets | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission → Intermittent testAddonManager,testOverscroll,testWebContentContextMenu,testVkbOverlap,testBookmarklets,testAboutPage | Exception caught - java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
(OrangeWFM bugs not modified in > 2 months)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.