Open rzetzsche opened 2 years ago
I have found that after adding mobile_scanner in pubspec, the asynchronous errors from callbacks like button onPress do not get caught in runZoneGuarded
onError
callback.
Anybody working on this?
@rzetzsche Does this still occur on mobile_scanner version 4.0.1 (or the new beta, version 5.0.0-beta.1)
It seems you are hitting an assert on the Dart side?
I plan on adding integration tests to mobile_scanner
itself in the future to hopefully prevent issues like this.
I discovered recently that my integration tests freeze on CI/CD. After investigation I discovered that I've updated from
qr_code_scanner
tomobile_scanner
and after that update my integration tests stopped working. They neither success nor fail, they just freeze blocking my pipeline till timeout comes through. If I migrate back toqr_code_scanner
my integration tests work again without a hick up.The integration tests on Android run pretty normal, only the web execution will fail.
Tested with flutter 3.0.0 and 3.3.0, Windows 11 and MacOS 12.5 1 and chromedriver 105.0.5195.52.
After I messed around with the problem, I discovered that headless as well as normal web execution will fail.
I execute the tests on chrome with:
or headless with:
Logs
Chrome logs
Headless logs of chromedriver
Code sample
testdriver/integration_test.dart
integration_test/test.dart