Skip to content

setMetadataObjectTypes crashes, availableMetadataObjectTypes is empty #1

@miried

Description

@miried

System: macOS Sonoma 14.3

Trying to set via setMetadataObjectTypes panics, availableMetadataObjectTypes is empty

➜ cargo run
   Compiling avf-qr v0.1.0 (/Users/code/avf-qr)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.78s
     Running `target/debug/avf-qr`
manufacturer: Apple Inc.
name: FaceTime HD Camera
position: Unspecified
[]

thread 'main' (2904357) panicked at /Users/code/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/objc2-av-foundation-0.3.2/src/generated/AVCaptureMetadataOutput.rs:34:5:
uncaught exception <NSException: 0x60000020a880> 'NSInvalidArgumentException' reason: *** -[AVCaptureMetadataOutput_Tundra setMetadataObjectTypes:] Unsupported type found - use -availableMetadataObjectTypes
stack backtrace:
0   CoreFoundation                      0x00000001826fc540 __exceptionPreprocess + 176
1   libobjc.A.dylib                     0x00000001821edeb4 objc_exception_throw + 60
2   AVFCapture                          0x000000019fb24e1c -[AVCaptureMetadataOutput_Tundra rectOfInterest] + 0
3   avf-qr                              0x00000001026473e4 _ZN63_$LT$$LP$A$C$$RP$$u20$as$u20$objc2..encode..EncodeArguments$GT$8__invoke17h63eaedb814b2938cE + 88
4   avf-qr                              0x0000000102648f0c _ZN5objc27runtime16message_receiver18msg_send_primitive4send17h0b63695fcb69ea44E + 80
5   avf-qr                              0x00000001026494f4 _ZN5objc27runtime16message_receiver15MessageReceiver12send_message28_$u7b$$u7b$closure$u7d$$u7d$17h0ecca208d6675117E + 44
6   avf-qr                              0x0000000102649f6c _ZN115_$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$9call_once17hb8d4b62860ace8d7E + 40
7   avf-qr                              0x0000000102645788 _ZN5objc29exception5catch28_$u7b$$u7b$closure$u7d$$u7d$17hb3cfcbdced9d70ccE + 44
8   avf-qr                              0x0000000102644f3c _ZN5objc29exception10try_no_ret24try_objc_execute_closure17hebbacdfeded9077eE + 84
9   avf-qr                              0x0000000102660368 objc2_exception_helper_0_1_try_catch + 36
10  avf-qr                              0x0000000102644664 _ZN5objc29exception10try_no_ret17h2d675ec5a3f18cc8E + 156
11  avf-qr                              0x00000001026451f4 _ZN5objc29exception5catch17h6f7b5dd5fba7d87eE + 72
12  avf-qr                              0x00000001026460a8 _ZN5objc27runtime16message_receiver15MessageReceiver12send_message17h0de1566ab3e0d932E + 220
13  avf-qr                              0x000000010263e1d0 _ZN108_$LT$MethodFamily$u20$as$u20$objc2..__macro_helpers..msg_send_retained..MsgSend$LT$Receiver$C$Return$GT$$GT$12send_message17hb6f37f5cf4f2596fE + 180
14  avf-qr                              0x00000001026434a8 _ZN19objc2_av_foundation9generated25__AVCaptureMetadataOutput23AVCaptureMetadataOutput22setMetadataObjectTypes17h5197c1af2c9713bcE + 80
15  avf-qr                              0x000000010263805c _ZN6avf_qr22run_av_capture_session17he01fb11d28c55a67E + 1392
16  avf-qr                              0x0000000102638144 _ZN6avf_qr4main17h4e3f69c6986635acE + 12
17  avf-qr                              0x0000000102631300 _ZN4core3ops8function6FnOnce9call_once17hdb2f32d7286db01bE + 20
18  avf-qr                              0x00000001026390c8 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17hf2a31544cfd328feE + 24
19  avf-qr                              0x000000010263da5c _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h5876aa771ed5d746E + 28
20  avf-qr                              0x0000000102671b40 _ZN3std2rt19lang_start_internal17hd700ba983d3377dcE + 1024
21  avf-qr                              0x000000010263da34 _ZN3std2rt10lang_start17h8eb7c7c6beaf2846E + 84
22  avf-qr                              0x0000000102638170 main + 36
23  dyld                                0x00000001822290e0 start + 2360

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions