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

4.4.2 KVO iOS Crash #1643

Closed
reaperdtme opened this issue Jul 1, 2019 · 2 comments
Closed

4.4.2 KVO iOS Crash #1643

reaperdtme opened this issue Jul 1, 2019 · 2 comments

Comments

@reaperdtme
Copy link
Contributor

iOS Crash

"react-native-video": "^4.4.2"

Stack Trace:

e = (0 0; 136.667 136.667); layer = <CALayer: 0x280686a40>>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: frame Observed object: <UIView: 0x1290019c0; frame = (0 0; 414 736); layer = <CALayer: 0x2807892c0>> Change: { kind = 1; new = "NSRect: {{0, 0}, {414, 736}}"; old = "NSRect: {{0, 0}, {414, 736}}"; } Context: 0x0
-[RCTVideo observeValueForKeyPath:ofObject:change:context:]


Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x1dcb6127c __exceptionPreprocess
1  libobjc.A.dylib                0x1dbd3b9f8 objc_exception_throw
2  CoreFoundation                 0x1dca6b4b0 -[NSCache init]
3  Foundation                     0x1dd5ac9b4 -[NSObject(NSKeyValueObserving) observeValueForKeyPath:ofObject:change:context:]
4  Relevnt                        0x10283403c -[RCTVideo observeValueForKeyPath:ofObject:change:context:] + 599 (RCTVideo.m:599)
5  Foundation                     0x1dd5acb08 NSKeyValueNotifyObserver
6  Foundation                     0x1dd5aee9c NSKeyValueDidChange
7  Foundation                     0x1dd5ae80c -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:]
8  Foundation                     0x1dd500c84 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:]
9  Foundation                     0x1dd5aa924 _NSSetRectValueAndNotify
10 AVKit                          0x1eec3c334 -[AVPlayerLayerAndContentOverlayContainerView layoutSubviews]
11 UIKitCore                      0x209932ed0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
12 QuartzCore                     0x1e1015a20 -[CALayer layoutSublayers]
13 QuartzCore                     0x1e101a9c8 CA::Layer::layout_if_needed(CA::Transaction*)
14 QuartzCore                     0x1e0f7d2d0 CA::Context::commit_transaction(CA::Transaction*)
15 QuartzCore                     0x1e0fab330 CA::Transaction::commit()
16 QuartzCore                     0x1e0fabf20 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
17 CoreFoundation                 0x1dcaf25f8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
18 CoreFoundation                 0x1dcaed320 __CFRunLoopDoObservers
19 CoreFoundation                 0x1dcaed89c __CFRunLoopRun
20 CoreFoundation                 0x1dcaed0b0 CFRunLoopRunSpecific
21 GraphicsServices               0x1deced79c GSEventRunModal
22 UIKitCore                      0x20949b978 UIApplicationMain
23 Relevnt                        0x10261c1a4 main + 14 (main.m:14)
24 libdyld.dylib                  0x1dc5b28e0 start

Environment info

React native info output:

React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
      Memory: 43.87 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 12.4.0 - /usr/local/bin/node
      Yarn: 1.17.0 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 24, 25, 26, 27
        Build Tools: 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.0
        System Images: android-24 | Google APIs Intel x86 Atom_64, android-25 | Google APIs ARM EABI v7a, android-25 | Google APIs Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: ^0.59.9 => 0.59.9 
@CHaNGeTe CHaNGeTe changed the title 4.4.2 iOS Crash 4.4.2 KVO iOS Crash Jul 2, 2019
@CHaNGeTe CHaNGeTe mentioned this issue Jul 6, 2019
@CHaNGeTe
Copy link
Contributor

CHaNGeTe commented Jul 9, 2019

Check on 4.4.3

@CHaNGeTe CHaNGeTe closed this as completed Jul 9, 2019
@hezheop
Copy link

hezheop commented Aug 7, 2019

Do any body try this? my case is using a RCTRootView in UITableViewCell, and RCTVideo need to reset the src , when I update the code , I still encounter this crash , can anyone fix this ?
image
image

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

No branches or pull requests

3 participants