Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test stalls despite synchronization turned off. Detox: UIManagerModule is busy. #1435

Closed
1 task done
lukaszfryc opened this issue Jun 6, 2019 · 5 comments
Closed
1 task done

Comments

@lukaszfryc
Copy link

Describe the bug
After a few successful steps, the test pauses before executing the next .tap() action. Android logcat shows I Detox : UIManagerModule is busy..

I run my test with await device.disableSynchronization();. Why is the execution stopped?

before(async () => {
  await detox.init(config, { launchApp: false });
  await device.launchApp({
    permissions: {
      notifications: 'YES',
    },
  });
  await device.disableSynchronization();
});

To Reproduce

  • I have tested this issue on the latest Detox release and it still reproduces

Environment (please complete the following information):

  • Detox: 12.10.3. I also tried 12.6.3
  • React Native: 0.59.8
  • Node: v10.16.0
  • Device: Android Simulator
  • OS: Android

Device and Verbose Detox Logs

detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.EspressoDetox"},"method":"perform","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["login_button"]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxViewActions"},"method":"click","args":[]}}]},"messageId":8}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","params":{"result":"(null)"},"messageId":8}
 
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxAssertion"},"method":"waitForAssertMatcher","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForAnd","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["profile_button"]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[]}},{"type":"Double","value":10}]},"messageId":9}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":10}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":11}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","params":{"result":"(null)"},"messageId":9}
 
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.EspressoDetox"},"method":"perform","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["profile_button"]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxViewActions"},"method":"click","args":[]}}]},"messageId":12}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=testee action=currentStatusResult (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=testee action=currentStatusResult (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"currentStatusResult","params":{"state":"idle"},"messageId":10}
 
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"currentStatusResult","params":{"state":"idle"},"messageId":11}
 
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":13}
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":14}
detox[17183] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":15}
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)
detox[17183] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=336cd41e-de9e-4134-a39b-95629da1a350)

The next button .tap() is not executed.

@stale

This comment has been minimized.

@LeoNatan
Copy link
Contributor

LeoNatan commented Jul 9, 2019

Let's keep open.

@LeoNatan
Copy link
Contributor

LeoNatan commented Jul 9, 2019

This is due to a bug in #1513

@stale
Copy link

stale bot commented Aug 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this reporsitory, read this discussion.

@stale stale bot added the 🏚 stale label Aug 8, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

The issue has been closed for inactivity.

@stale stale bot closed this as completed Aug 15, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants