Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
quangtuan28200 opened this issue Dec 11, 2024 · 4 comments
Open

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

quangtuan28200 opened this issue Dec 11, 2024 · 4 comments

Comments

@quangtuan28200
Copy link

quangtuan28200 commented Dec 11, 2024

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

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

github-actions bot commented Dec 11, 2024

Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

Thank you for your bug report. We will review it and get back to you if we need more information.

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

No branches or pull requests

1 participant