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

退出时有崩溃 #23

Closed
hoowang opened this issue Nov 15, 2016 · 5 comments
Closed

退出时有崩溃 #23

hoowang opened this issue Nov 15, 2016 · 5 comments

Comments

@hoowang
Copy link

hoowang commented Nov 15, 2016

感谢作者提供如此给力的开源项目。自从上次升级以后,截止当前版本,播放器销毁时有崩溃。具体log如下:observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x61000003f940> (
<NSKeyValueObservance 0x610000051970: Observer: 0x7fba66e10510, Key path: player.currentItem.status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x608000092890>
<NSKeyValueObservance 0x610000051c70: Observer: 0x7fba66e10510, Key path: player.currentItem.duration, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x6100000954a0>
<NSKeyValueObservance 0x6100000521b0: Observer: 0x7fba66e10510, Key path: layer.readyForDisplay, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x610000095b80>

应该是observer没有正确移除导致。

@casatwy
Copy link
Owner

casatwy commented Nov 15, 2016

你是initWithFrame的用法导致的crash么?如果是的话,这个问题已经在新版解决了。

如果不是的话,你能不能把你使用的语句给我看一下?

发自我的 iPhone

在 2016年11月15日,23:23,coderHooge <notifications@github.commailto:notifications@github.com> 写道:

感谢作者提供如此给力的开源项目。自从上次升级以后,截止当前版本,播放器销毁时有崩溃。具体log如下:observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x61000003f940> (
<NSKeyValueObservance 0x610000051970: Observer: 0x7fba66e10510, Key path: player.currentItem.status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x608000092890>
<NSKeyValueObservance 0x610000051c70: Observer: 0x7fba66e10510, Key path: player.currentItem.duration, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x6100000954a0>
<NSKeyValueObservance 0x6100000521b0: Observer: 0x7fba66e10510, Key path: layer.readyForDisplay, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x610000095b80>

应该是observer没有正确移除导致。


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/23, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA9Y1ff2as5LIDsuWHwJGkR87mVS5u-vks5q-cpfgaJpZM4KyoUc.

@casatwy
Copy link
Owner

casatwy commented Nov 15, 2016

或者你在demo的tableview列表里给我提一个pr来复现这个crash?

发自我的 iPhone

在 2016年11月15日,23:23,coderHooge <notifications@github.commailto:notifications@github.com> 写道:

感谢作者提供如此给力的开源项目。自从上次升级以后,截止当前版本,播放器销毁时有崩溃。具体log如下:observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x61000003f940> (
<NSKeyValueObservance 0x610000051970: Observer: 0x7fba66e10510, Key path: player.currentItem.status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x608000092890>
<NSKeyValueObservance 0x610000051c70: Observer: 0x7fba66e10510, Key path: player.currentItem.duration, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x6100000954a0>
<NSKeyValueObservance 0x6100000521b0: Observer: 0x7fba66e10510, Key path: layer.readyForDisplay, Options: <New: YES, Old: NO, Prior: NO> Context: 0x105fd6388, Property: 0x610000095b80>

应该是observer没有正确移除导致。


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/23, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA9Y1ff2as5LIDsuWHwJGkR87mVS5u-vks5q-cpfgaJpZM4KyoUc.

@hoowang
Copy link
Author

hoowang commented Nov 16, 2016

我在项目中使用的过程中发现了有这样的bug。所以我下载最新项目的demo。在demo第一项Single Remote Video列表项点击,进入第一个videoplay 页面,此时不管是否点击play按钮,只要点击back按钮,在pop页面的时候(经测试,进入任何一个demo页面, pop的时候都会出现),必定出现这个bug。测试环境:Xcode 8.1,iPhone 7模拟器。
crash log:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7fe39f70df00 of class CTVideoView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x6080002398e0> (
<NSKeyValueObservance 0x6080002465a0: Observer: 0x7fe39f70df00, Key path: player.currentItem.status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x10518d388, Property: 0x6000000918f0>
<NSKeyValueObservance 0x6080002463f0: Observer: 0x7fe39f70df00, Key path: player.currentItem.duration, Options: <New: YES, Old: NO, Prior: NO> Context: 0x10518d388, Property: 0x608000091490>
<NSKeyValueObservance 0x608000246600: Observer: 0x7fe39f70df00, Key path: layer.readyForDisplay, Options: <New: YES, Old: NO, Prior: NO> Context: 0x10518d388, Property: 0x608000090ef0>
)'
这个bug应该是从version 1.3.0出现,version 1.2.9没有这个问题。

@casatwy
Copy link
Owner

casatwy commented Nov 16, 2016

卧槽?我赶紧看看

发自我的 iPhone

在 2016年11月16日,10:14,coderHooge <notifications@github.commailto:notifications@github.com> 写道:

我在项目中使用的过程中发现了又这样的bug。所以我下载最新项目的demo。在demo第一项Single Remote Video列表项点击,进入第一个videoplay 页面,此时不管是否点击play按钮,只要点击back,pop页面的时候(经测试 进入任何一个demo页面, pop的时候都会出现),必定出现这个bug。测试环境:Xcode 8.1,iPhone 7模拟器。
debug log:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7fe39f70df00 of class CTVideoView was deallocated while key value observers were still registered with it. Current observation info: (
Context: 0x10518d388, Property: 0x6000000918f0>
Context: 0x10518d388, Property: 0x608000091490>
Context: 0x10518d388, Property: 0x608000090ef0>
)'
这个bug应该是从version 1.3.0出现,version 1.2.9没有这个问题。


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/23#issuecomment-260833591, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA9Y1fRTYcDqF96avTUM3HwPSgJh5uVTks5q-mcLgaJpZM4KyoUc.

@casatwy
Copy link
Owner

casatwy commented Nov 16, 2016

已经在1.3.1中解决掉这个bug了,1.3.1已经发版。

@casatwy casatwy closed this as completed Nov 16, 2016
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

2 participants