WatchOS Sample App Crashing on Simulator and Device

iOS, iPad, iPhone, tvOS specific usage questions
jcltravels
New Cone
New Cone
Posts: 1
Joined: 19 Jan 2025 15:58

WatchOS Sample App Crashing on Simulator and Device

Postby jcltravels » 19 Jan 2025 16:02

Cloned VLCKit from Github

Compiled using: ./compileAndBuildVLCKit.sh -f -w -v

Pointed to the framework in the Sample WatchOS project and ran it

creating player instance using shared library
[31;1mError:[0m Unknown option `[33m--http-reconnect[0m'
Did you mean [32m--http-cert[0m?
For more information try [32m--help[0m
*** Assertion failure in -[VLCLibrary prepareInstanceWithOptions:], VLCLibrary.m:180
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'libvlc failed to initialize'
*** First throw call stack:
(
0 CoreFoundation 0x00000001808034d8 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x000000018006e0b4 objc_exception_throw + 72
2 Foundation 0x000000018170ac24 _userInfoForFileAndLine + 0
3 VLCKit 0x000000010675f3c4 -[VLCLibrary prepareInstanceWithOptions:] + 704
4 VLCKit 0x000000010675eff4 -[VLCLibrary init] + 128
5 VLCKit 0x000000010675ef00 __27+[VLCLibrary sharedLibrary]_block_invoke + 36
6 libdispatch.dylib 0x000000010495a654 _dispatch_client_callout + 16
7 libdispatch.dylib 0x000000010495c10c _dispatch_once_callout + 84
8 VLCKit 0x000000010675eeb4 +[VLCLibrary sharedLibrary] + 88
9 VLCKit 0x000000010676d22c -[VLCMediaPlayer(Private) initWithDrawable:options:] + 328
10 VLCKit 0x0000000106768384 -[VLCMediaPlayer init] + 56
11 SimplePlayback Watch App.debug.dyli 0x0000000104434778 $sSo14VLCMediaPlayerCABycfcTO + 24
12 SimplePlayback Watch App.debug.dyli 0x0000000104432b44 $sSo14VLCMediaPlayerCABycfC + 32
13 SimplePlayback Watch App.debug.dyli 0x00000001044329cc $s24SimplePlayback_Watch_App21VLCMediaPlayerWrapperCACycfc + 436
14 SimplePlayback Watch App.debug.dyli 0x0000000104432b64 $s24SimplePlayback_Watch_App21VLCMediaPlayerWrapperCACycfcTo + 20
15 SimplePlayback Watch App.debug.dyli 0x000000010442e9c8 $s24SimplePlayback_Watch_App21VLCMediaPlayerWrapperCACycfC + 28
16 SimplePlayback Watch App.debug.dyli 0x000000010442e9a0 $s24SimplePlayback_Watch_App10PlayerViewV04_vlcE033_22EFB4FC88790DE6E24B09416BF99CC4LL7SwiftUI11StateObjectVyAA08VLCMediaE7WrapperCGvpfiAJycfu_AJycfu0_ + 28
17 SwiftUICore 0x00000001b0fce600 $s7SwiftUI11StateObjectV3Box33_BDD24532CFCFEBA7264ABA5DE20A4002LLV6update8property5phaseSbACyxGz_AA12_GraphInputsV5PhaseVtFyyScMYcXEfU_TA + 40
18 SwiftUICore 0x00000001b0fcdca8 $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcfu_TA + 28
28 AttributeGraph 0x0000000185ec2124 _ZN2AG5Graph11UpdateStack6updateEv + 532
29 AttributeGraph 0x0000000185ec2974 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEj + 432
30 AttributeGraph 0x0000000185eca4b8 _ZN2AG5Graph20input_value_ref_slowENS_4data3ptrINS_4NodeEEENS_11AttributeIDEjjPK15AGSwiftMetadataRhl + 716
31 AttributeGraph 0x0000000185edfe64 AGGraphGetValue + 232
32 SwiftUICore 0x00000001b0a40a5c $s7SwiftUI20DynamicViewContainer031_3FB6ABB0477B815AB3C89DD5EDC9F0M0LLV11updateValueyyFAA03AnyD0V_Tg5 + 76
33 SwiftUICore 0x00000001b0a4e758
44 UIKitCore 0x00000001ab33d9d8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2324
45 QuartzCore 0x0000000187df210c _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 432
46 QuartzCore 0x0000000187dfce0c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 124
47 QuartzCore 0x0000000187d31b50 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 464
48 QuartzCore 0x0000000187d5ffac _ZN2CA11Transaction6commitEv + 648
49 UIKitCore 0x00000001aaec993c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 32
50 CoreFoundation 0x0000000180768d58 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
51 CoreFoundation 0x00000001807684a4 __CFRunLoopDoBlocks + 352
52 CoreFoundation 0x0000000180762d44 __CFRunLoopRun + 812
53 CoreFoundation 0x00000001807625c0 CFRunLoopRunSpecific + 552
54 GraphicsServices 0x000000018604cb70 GSEventRunModal + 160
55 UIKitCore 0x00000001aaeb24a0 -[UIApplication _run] + 796
56 UIKitCore 0x00000001aaeb6580 UIApplicationMain + 124
57 WatchKit 0x000000019d7afca0 WKApplicationMain + 124
58 WatchKit 0x000000019d7b86cc WKApplicationExtensionMain + 380
59 SwiftUI 0x00000001858e14c8 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 124
60 SwiftUI 0x000000018575a0fc $s7SwiftUI3AppPAAE4mainyyFZ + 148
61 SimplePlayback Watch App.debug.dyli 0x0000000104435b04 $s24SimplePlayback_Watch_App0ab1_c1_dD0V5$mainyyFZ + 40
62 SimplePlayback Watch App.debug.dyli 0x0000000104435bb4 __debug_main_executable_dylib_entry_point + 12
63 dyld 0x00000001044cd410 start_sim + 20
64 ??? 0x00000001
libc++abi: terminating due to uncaught exception of type NSException
(removed a few lines in the stack trace to fit the requirements)

fkuehne
Developer
Developer
Posts: 7299
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: WatchOS Sample App Crashing on Simulator and Device

Postby fkuehne » 08 Feb 2025 07:26

Needs an update. Thanks for the report. I'll take a look!
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

fkuehne
Developer
Developer
Posts: 7299
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: WatchOS Sample App Crashing on Simulator and Device

Postby fkuehne » 08 Feb 2025 10:19

Take a look at this merge request for the fix: https://code.videolan.org/videolan/VLCK ... quests/357

It will be merged next week.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: firepaw185 and 45 guests