VLCKit 4.0.0a5 crash reason: '-[VLCMediaPlayer handleEvent:]: unrecognized selector sent to instance
Posted: 23 Aug 2024 19:28
Hello,
I was using 4.0.0a1, and then I have updated sdk to 4.0.0a5.
Do I need to do any code changes with migration to 4.0.0a5
App crashed after a second after this code:
This is what I see in console after the crash:
[0000000128116580] libvlc demux packetizer: AAC channels: 2 samplerate: 44100
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[VLCMediaPlayer handleEvent:]: unrecognized selector sent to instance 0x600003d0d950'
*** First throw call stack:
(
0 CoreFoundation 0x000000018048d8a8 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x000000018008409c objc_exception_throw + 56
2 CoreFoundation 0x00000001804a26f8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804919f8 ___forwarding___ + 1280
4 CoreFoundation 0x0000000180493d1c _CF_forwarding_prep_0 + 92
5 VLCKit 0x000000010ba7f228 HandleWatchTimeUpdate + 208
6 VLCKit 0x000000010bfff194 player_timer_on_update + 152
7 VLCKit 0x000000010c081e84 vlc_player_SendTimerSourceUpdates + 268
8 VLCKit 0x000000010c080ee0 vlc_player_UpdateTimerBestSource + 400
9 VLCKit 0x000000010c080d04 vlc_player_UpdateTimer + 600
10 VLCKit 0x000000010c07c3a8 input_thread_Events + 1584
11 VLCKit 0x000000010c055f54 input_SendEvent + 84
12 VLCKit 0x000000010c055218 input_SendEventTimes + 112
13 VLCKit 0x000000010c05282c EsOutVaPrivControlLocked + 4128
14 VLCKit 0x000000010c051238 EsOutPrivControl + 80
15 VLCKit 0x000000010c062df0 es_out_in_vaPrivControl + 68
16 VLCKit 0x000000010c0635f4 es_out_in_PrivControl + 80
17 VLCKit 0x000000010c062820 CmdExecutePrivControl + 304
18 VLCKit 0x000000010c06171c PrivControlLocked + 220
19 VLCKit 0x000000010c061454 PrivControl + 88
20 VLCKit 0x000000010c06e2dc es_out_vaPrivControl + 64
21 VLCKit 0x000000010c06e260 es_out_PrivControl + 72
22 VLCKit 0x000000010c06ff8c es_out_SetTimes + 92
23 VLCKit 0x000000010c06b0b8 InputSourceStatistics + 236
24 VLCKit 0x000000010c071314 MainLoopStatistics + 80
25 VLCKit 0x000000010c068388 MainLoop + 992
26 VLCKit 0x000000010c065f44 Run + 96
27 libsystem_pthread.dylib 0x000000010780f414 _pthread_start + 104
28 libsystem_pthread.dylib 0x000000010780a5e0 thread_start + 8
)
libc++abi: terminating due to uncaught exception of type NSException
I was using 4.0.0a1, and then I have updated sdk to 4.0.0a5.
Do I need to do any code changes with migration to 4.0.0a5
App crashed after a second after this code:
Code: Select all
let media = VLCMedia(url: fileURL)
self?.mediaPlayer.media = media
self?.mediaPlayer.minimalTimePeriod = 1000
self?.mediaPlayer.timeChangeUpdateInterval = 0.1
self?.mediaPlayer.play()
[0000000128116580] libvlc demux packetizer: AAC channels: 2 samplerate: 44100
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[VLCMediaPlayer handleEvent:]: unrecognized selector sent to instance 0x600003d0d950'
*** First throw call stack:
(
0 CoreFoundation 0x000000018048d8a8 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x000000018008409c objc_exception_throw + 56
2 CoreFoundation 0x00000001804a26f8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804919f8 ___forwarding___ + 1280
4 CoreFoundation 0x0000000180493d1c _CF_forwarding_prep_0 + 92
5 VLCKit 0x000000010ba7f228 HandleWatchTimeUpdate + 208
6 VLCKit 0x000000010bfff194 player_timer_on_update + 152
7 VLCKit 0x000000010c081e84 vlc_player_SendTimerSourceUpdates + 268
8 VLCKit 0x000000010c080ee0 vlc_player_UpdateTimerBestSource + 400
9 VLCKit 0x000000010c080d04 vlc_player_UpdateTimer + 600
10 VLCKit 0x000000010c07c3a8 input_thread_Events + 1584
11 VLCKit 0x000000010c055f54 input_SendEvent + 84
12 VLCKit 0x000000010c055218 input_SendEventTimes + 112
13 VLCKit 0x000000010c05282c EsOutVaPrivControlLocked + 4128
14 VLCKit 0x000000010c051238 EsOutPrivControl + 80
15 VLCKit 0x000000010c062df0 es_out_in_vaPrivControl + 68
16 VLCKit 0x000000010c0635f4 es_out_in_PrivControl + 80
17 VLCKit 0x000000010c062820 CmdExecutePrivControl + 304
18 VLCKit 0x000000010c06171c PrivControlLocked + 220
19 VLCKit 0x000000010c061454 PrivControl + 88
20 VLCKit 0x000000010c06e2dc es_out_vaPrivControl + 64
21 VLCKit 0x000000010c06e260 es_out_PrivControl + 72
22 VLCKit 0x000000010c06ff8c es_out_SetTimes + 92
23 VLCKit 0x000000010c06b0b8 InputSourceStatistics + 236
24 VLCKit 0x000000010c071314 MainLoopStatistics + 80
25 VLCKit 0x000000010c068388 MainLoop + 992
26 VLCKit 0x000000010c065f44 Run + 96
27 libsystem_pthread.dylib 0x000000010780f414 _pthread_start + 104
28 libsystem_pthread.dylib 0x000000010780a5e0 thread_start + 8
)
libc++abi: terminating due to uncaught exception of type NSException