Open vlazdra opened 1 year ago
Hello @vlazdra, what is the version of the camerawesome plugin do you use ?
Hey @istornz, my apologise. It's 1.4.0.
Can you try on the latest pre-release v2 ?
@istornz Will give it a go and check back.
@istornz Thanks for the update. I can confirm that the issue is no longer reproducible. 🙌
Closing the issue.
We are using 2.0.0-dev1 version of the plugin. Issue is still reproducible for "previewOnly" mode
It's still happening in release mod.
final sensor = Sensor.position(SensorPosition.back);
return CameraAwesomeBuilder.custom(
sensorConfig: SensorConfig.single(
sensor: sensor,
flashMode: cameraawesome.FlashMode.none,
aspectRatio: CameraAspectRatios.ratio_4_3,
zoom: 0.0,
),
saveConfig: SaveConfig.photo(
pathBuilder: (_) async {
final extDir = await getTemporaryDirectory();
final testDir = await Directory(
'${extDir.path}/camerawesome',
).create(recursive: true);
final String filePath =
'${testDir.path}/${DateTime.now().millisecondsSinceEpoch}.jpg';
return SingleCaptureRequest(filePath, sensor);
},
),
imageAnalysisConfig: AnalysisConfig(
// Android specific options
androidOptions: const AndroidAnalysisOptions.nv21(
width: 250,
),
),
onImageForAnalysis: _onImageForAnalysis,
builder: (_, __, ___) {
return Container();
},
)
We also have the same issue on version 2.0.0-dev1.
Crash log from Apple report:
Incident Identifier: BEBE68DF-302A-498B-A27A-1D22CA805179
Hardware Model: iPhone11,2
Process: Runner [67947]
Path: /private/var/containers/Bundle/Application/990C6404-49FD-4A36-B836-FA43491BB9E0/Runner.app/Runner
Identifier: io.snaq
Version: 9.0.0 (317)
AppStoreTools: 14E221
AppVariant: 1:iPhone11,2:16
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: io.snaq [3123]
Date/Time: 2023-07-26 12:13:41.1079 +0200
Launch Time: 2023-07-26 11:29:31.9685 +0200
OS Version: iPhone OS 16.5.1 (20F770750d)
Release Type: User
Baseband Version: 5.02.02
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes: 0x0000000000000001, 0x0000000000000010
VM Region Info: 0x10 is not in any region. Bytes before following region: 68719476720
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated)
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [67947]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 camerawesome 0x0000000102406988 __88-[ImageStreamController captureOutput:didOutputSampleBuffer:fromConnection:orientation:]_block_invoke + 8 (ImageStreamController.m:92)
1 libdispatch.dylib 0x00000001c7e5d320 _dispatch_call_block_and_release + 32 (init.c:1518)
2 libdispatch.dylib 0x00000001c7e5eeac _dispatch_client_callout + 20 (object.m:560)
3 libdispatch.dylib 0x00000001c7e6d6a4 _dispatch_main_queue_drain + 928 (queue.c:7794)
4 libdispatch.dylib 0x00000001c7e6d2f4 _dispatch_main_queue_callback_4CF + 44 (queue.c:7954)
5 CoreFoundation 0x00000001c0a27c28 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
6 CoreFoundation 0x00000001c0a09560 __CFRunLoopRun + 1992 (CFRunLoop.c:3147)
7 CoreFoundation 0x00000001c0a0e3ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
8 GraphicsServices 0x00000001fbeab35c GSEventRunModal + 164 (GSEvent.c:2196)
9 UIKitCore 0x00000001c2d9b6e8 -[UIApplication _run] + 888 (UIApplication.m:3782)
10 UIKitCore 0x00000001c2d9b34c UIApplicationMain + 340 (UIApplication.m:5372)
11 Runner 0x00000001007f1014 main + 68 (AppDelegate.swift:6)
12 dyld 0x00000001dfee6dec start + 2220 (dyldMain.cpp:1165)
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001ff8d3c84 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001ff8e6b54 mach_msg2_internal + 80 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001ff8e6e2c mach_msg_overwrite + 540 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001ff8d41c8 mach_msg + 24 (mach_msg.c:323)
4 CoreFoundation 0x00000001c0a08024 __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2622)
5 CoreFoundation 0x00000001c0a09250 __CFRunLoopRun + 1208 (CFRunLoop.c:3005)
6 CoreFoundation 0x00000001c0a0e3ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
7 Foundation 0x00000001bac96fd4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8 Foundation 0x00000001bac96ebc -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9 UIKitCore 0x00000001c2ece3fc -[UIEventFetcher threadMain] + 416 (UIEventFetcher.m:1376)
10 Foundation 0x00000001bacb0544 __NSThread__start__ + 716 (NSThread.m:963)
11 libsystem_pthread.dylib 0x000000022071d6b8 _pthread_start + 148 (pthread.c:893)
12 libsystem_pthread.dylib 0x000000022071cb88 thread_start + 8 (:-1)
Thread 2:
0 libsystem_pthread.dylib 0x000000022071cb74 start_wqthread + 0 (:-1)
Thread 3 name:
Thread 3:
0 App 0x000000010a45ccdc Utf8Decoder.convertSingle + 616 (convert_patch.dart:0)
1 App 0x000000010a45ca60 Utf8Decoder.convert + 244 (utf.dart:351)
2 App 0x000000010a369080 StandardMessageCodec.readValueOfType + 344 (message_codecs.dart:503)
3 App 0x000000010a369328 StandardMessageCodec.readValue + 152 (message_codecs.dart:478)
4 App 0x000000010a369328 StandardMessageCodec.readValueOfType + 1024 (message_codecs.dart:530)
5 App 0x000000010a369214 StandardMessageCodec.readValue + 152 (message_codecs.dart:478)
6 App 0x000000010a369214 StandardMessageCodec.readValueOfType + 748 (message_codecs.dart:523)
7 App 0x000000010a369380 StandardMessageCodec.readValue + 88 (message_codecs.dart:478)
8 App 0x000000010a369380 StandardMessageCodec.readValueOfType + 1112 (message_codecs.dart:530)
9 App 0x000000010a36333c StandardMessageCodec.readValue + 112 (message_codecs.dart:478)
10 App 0x000000010a51b970 StandardMethodCodec.decodeEnvelope + 104 (message_codecs.dart:645)
11 App 0x0000000109e10850 MethodChannel._invokeMethod + 352 (platform_channel.dart:310)
12 App 0x000000010a58f594 SuspendState._createAsyncStarCallback.
Crash log from crashlytics:
Crashed: com.apple.main-thread
0 camerawesome 0xa988 __88-[ImageStreamController captureOutput:didOutputSampleBuffer:fromConnection:orientation:]_block_invoke + 8
1 libdispatch.dylib 0x63850 _dispatch_call_block_and_release + 24
2 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
3 libdispatch.dylib 0x45f18 _dispatch_main_queue_drain + 888
4 libdispatch.dylib 0x45b90 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
5 CoreFoundation 0x93818 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
6 CoreFoundation 0x77498 __CFRunLoopRun + 2096
7 CoreFoundation 0x7bb48 CFRunLoopRunSpecific + 584
8 GraphicsServices 0x1984 GSEventRunModal + 160
9 UIKitCore 0x375638 -[UIApplication _run] + 868
10 UIKitCore 0x3752b0 UIApplicationMain + 312
11 Runner 0x8374 main + 6 (AppDelegate.swift:6)
12 ??? 0x1d54a5df0 (Missing)
is this fixed in 2.0.1 version?
The 2.0.1 has completely rewrite the iOS part. I don't have that kind of errors on the apps I have in production but they don't use the analyzer. Would kinda need a bit more to reproduce it.
Steps to Reproduce
I don't have a clear step to reproduce the issue. What I'm using at the moment is the
preview
mode to scan QR codes.Expected results
The app doesn't crash, and is able to scan a QR code.
Actual results
The app "kinda" crashes, sometimes it restarts and starts from the begging and when that occurs it is not possible to scan the QR code. The preview does work, but it's not recognising anything.
Restarting the app, by removing it from the background and starting the app again resolves the issue.
Crash log
About your device
Your flutter version