Skip to content

[BUG]: RCTVideo.setSelectedTextTrack(_:) #4331

Closed
@quangtuan28200

Description

Version

6.8.2

What platforms are you having the problem on?

iOS

System Version

75% ios 18

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I'm using React native 0.74.3, I got these errors from v 6.6.2 and now I'm using 6.8.2, the errors still occur
source using video in local with type .m4v and video can change

image

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x2370 objc_release + 16
1  libobjc.A.dylib                0x2370 objc_release_x0 + 16
2  HeavyBagPro                    0x66d1f4 RCTVideo.setSelectedTextTrack(_:) + 971 (RCTVideo.swift:971)
3  HeavyBagPro                    0x66bed4 RCTVideo.applyModifiers() + 932 (RCTVideo.swift:932)
4  HeavyBagPro                    0x66b844 @objc RCTVideo.setPreventsDisplaySleepDuringVideoPlayback(_:) + 1562588
5  HeavyBagPro                    0x2704ac __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_14 + 316 (RCTComponentData.m:316)
6  HeavyBagPro                    0x2709c4 __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.38 + 336 (RCTComponentData.m:336)
7  HeavyBagPro                    0x270c10 __50-[RCTComponentData setProps:forView:isShadowView:]_block_invoke + 384 (RCTComponentData.m:384)
8  CoreFoundation                 0x249f0 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
9  CoreFoundation                 0x24834 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 288
10 HeavyBagPro                    0x270b90 -[RCTComponentData setProps:forView:isShadowView:] + 386 (RCTComponentData.m:386)
11 HeavyBagPro                    0x2b9db0 __42-[RCTUIManager updateView:viewName:props:]_block_invoke + 1008 (RCTUIManager.m:1008)
12 HeavyBagPro                    0x2bac08 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 1163 (RCTUIManager.m:1163)
13 HeavyBagPro                    0x2bad0c __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.143 + 1186 (RCTUIManager.m:1186)
14 libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
15 libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
16 libdispatch.dylib              0x129e0 _dispatch_main_queue_drain + 980
17 libdispatch.dylib              0x125fc _dispatch_main_queue_callback_4CF + 44
18 CoreFoundation                 0x56204 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
19 CoreFoundation                 0x53440 __CFRunLoopRun + 1996
20 CoreFoundation                 0x52830 CFRunLoopRunSpecific + 588
21 GraphicsServices               0x11c4 GSEventRunModal + 164
22 UIKitCore                      0x3d2eb0 -[UIApplication _run] + 816
23 UIKitCore                      0x4815b4 UIApplicationMain + 340
24 HeavyBagPro                    0x892c main + 7 (main.m:7)
25 ???                            0x1bfeceec8 (Missing)

image

 Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x2370 objc_release + 16
1  libobjc.A.dylib                0x2370 objc_release_x0 + 16
2  HeavyBagPro                    0x66d1f4 RCTVideo.setSelectedTextTrack(_:) + 971 (RCTVideo.swift:971)
3  HeavyBagPro                    0x66bed4 RCTVideo.applyModifiers() + 932 (RCTVideo.swift:932)
4  HeavyBagPro                    0x66b844 @objc RCTVideo.setPreventsDisplaySleepDuringVideoPlayback(_:) + 1562588
5  HeavyBagPro                    0x2704ac __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_14 + 316 (RCTComponentData.m:316)
6  HeavyBagPro                    0x2709c4 __49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.38 + 336 (RCTComponentData.m:336)
7  HeavyBagPro                    0x270c10 __50-[RCTComponentData setProps:forView:isShadowView:]_block_invoke + 384 (RCTComponentData.m:384)
8  CoreFoundation                 0x249f0 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
9  CoreFoundation                 0x24834 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 288
10 HeavyBagPro                    0x270b90 -[RCTComponentData setProps:forView:isShadowView:] + 386 (RCTComponentData.m:386)
11 HeavyBagPro                    0x2b9db0 __42-[RCTUIManager updateView:viewName:props:]_block_invoke + 1008 (RCTUIManager.m:1008)
12 HeavyBagPro                    0x2bac08 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke + 1163 (RCTUIManager.m:1163)
13 HeavyBagPro                    0x2bad0c __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.143 + 1186 (RCTUIManager.m:1186)
14 libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
15 libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
16 libdispatch.dylib              0x129e0 _dispatch_main_queue_drain + 980
17 libdispatch.dylib              0x125fc _dispatch_main_queue_callback_4CF + 44
18 CoreFoundation                 0x56204 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
19 CoreFoundation                 0x53440 __CFRunLoopRun + 1996
20 CoreFoundation                 0x52830 CFRunLoopRunSpecific + 588
21 GraphicsServices               0x11c4 GSEventRunModal + 164
22 UIKitCore                      0x3d2eb0 -[UIApplication _run] + 816
23 UIKitCore                      0x4815b4 UIApplicationMain + 340
24 HeavyBagPro                    0x892c main + 7 (main.m:7)

here is my code

<Video
	ref={videoRef}
	source={video}
	style={[styles.video, stance === 'southpaw' && { transform: [{ rotateY: '180deg' }] }]}
	playWhenInactive={true}
	playInBackground={true}
	ignoreSilentSwitch="ignore"
	mixWithOthers={ducking}
	paused={isPause}
	repeat={isLoop}
	volume={VOICE_VOLUME / 100}
	muted={isMute || isSilent}
	progressUpdateInterval={100}
	onLoadStart={_onLoadStart}
	onProgress={_onProgress}
	onEnd={onEnd}
	onReadyForDisplay={_onReadyForDisplay}
	onError={e => _onError(e.error)}
	disableFocus={true}
	viewType={ViewType.TEXTURE}
	shutterColor="transparent"
/>

Reproduction Link

none

Reproduction

can not reproduce, it happened sometime

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions