After upgrading to latest version, our integration tests are failing during execution. We use firebase test lab to tu run our integration tests. Last working version was pdfrx: ^2.2.24.
I guess issue might be related to 'Updated native PDFium binaries to chromium/7811.' from Version 2.3.0.
We build our app for the integration test like this:
flutter build apk --debug --flavor $BUILD_FLAVOR --dart-define=APP_FLAVOR=$APP_FLAVOR
To create debug and test Apk:
DART_DEFINES="$(printf "APP_FLAVOR=$APP_FLAVOR" | base64)"
./gradlew app:assembleAndroidTest -Pdart-defines="$DART_DEFINES"
./gradlew app:assembleDebug -Ptarget="$APP_DIR/integration_test/main.dart" -Pdart-defines="$DART_DEFINES"
To run the tests we do:
gcloud firebase test android run firebase_test_lab_config.yaml
In the logcat I see:
05-11 22:13:11.136 22145 22381 E flutter : [ERROR:flutter/runtime/dart_isolate.cc(1402)] Unhandled exception:
05-11 22:13:11.136 22145 22381 E flutter : Exception: Failed to load PDFium module: Exception: Native assets file not found.
05-11 22:13:11.136 22145 22381 E flutter : #0 getPdfium (package:pdfium_dart/src/pdfium_loader.dart:31:5)
05-11 22:13:11.136 22145 22381 E flutter : #1 pdfium (package:pdfrx_engine/src/native/pdfium.dart:11:31)
05-11 22:13:11.136 22145 22381 E flutter : #2 _init.<anonymous closure>.<anonymous closure> (package:pdfrx_engine/src/native/pdfrx_pdfium.dart:52:7)
05-11 22:13:11.136 22145 22381 E flutter : #3 _ExecuteParams.execute (package:pdfrx_engine/src/native/worker.dart:166:43)
05-11 22:13:11.136 22145 22381 E flutter : #4 BackgroundWorker._workerEntry.<anonymous closure> (package:pdfrx_engine/src/native/worker.dart:80:19)
05-11 22:13:11.136 22145 22381 E flutter : #5 _RootZone.runUnaryGuarded (dart:async/zone.dart:891:10)
05-11 22:13:11.136 22145 22381 E flutter : #6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
05-11 22:13:11.136 22145 22381 E flutter : #7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
05-11 22:13:11.136 22145 22381 E flutter : #8 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
05-11 22:13:11.136 22145 22381 E flutter : #9 _StreamController._add (dart:async/stream_controller.dart:663:7)
05-11 22:13:11.136 22145 22381 E flutter : #10 _StreamController.add (dart:async/stream_controller.dart:618:5)
After this error, our test is stuck and won't even start and times out.
Any ideas how to fix this?
After upgrading to latest version, our integration tests are failing during execution. We use firebase test lab to tu run our integration tests. Last working version was
pdfrx: ^2.2.24.I guess issue might be related to 'Updated native PDFium binaries to chromium/7811.' from Version 2.3.0.
We build our app for the integration test like this:
flutter build apk --debug --flavor $BUILD_FLAVOR --dart-define=APP_FLAVOR=$APP_FLAVORTo create debug and test Apk:
To run the tests we do:
gcloud firebase test android run firebase_test_lab_config.yamlIn the logcat I see:
After this error, our test is stuck and won't even start and times out.
Any ideas how to fix this?