<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Crash in -[WebAVPlayerController isPictureInPicturePossible]"
href="https://bugs.webkit.org/show_bug.cgi?id=154454">154454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in -[WebAVPlayerController isPictureInPicturePossible]
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Other
</td>
</tr>
<tr>
<th>Hardware</th>
<td>iOS
</td>
</tr>
<tr>
<th>OS</th>
<td>iOS 9.2
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebCore Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lpromero@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>I get this crash:
Thread 23 CRASHED [EXC_BAD_ACCESS / KERN_INVALID_ADDRESS @ 0x00000080 ] MAGIC SIGNATURE THREAD
0x0000000198148c04 (WebCore + 0x00e3cc04 ) -[WebAVPlayerController isPictureInPicturePossible]
0x0000000198148c00 (WebCore + 0x00e3cc00 ) -[WebAVPlayerController isPictureInPicturePossible]
0x0000000183cf3154 (AVKit + 0x00027154 ) -[AVPictureInPictureController isPictureInPicturePossible]
0x0000000183cf39a0 (AVKit + 0x000279a0 ) -[AVPictureInPictureController _updatePictureInPictureShouldStartWhenEnteringBackground]
0x0000000183cf3958 (AVKit + 0x00027958 ) -[AVPictureInPictureController _checkIsFullScreenAndUpdatePictureInPictureShouldStartWhenEnteringBackground]
0x0000000183cf3ff8 (AVKit + 0x00027ff8 ) __79-[AVPictureInPictureController observeValueForKeyPath:ofObject:change:context:]_block_invoke
0x000000019a9a96a4 (libdispatch.dylib + 0x000016a4 ) _dispatch_client_callout
0x000000019a9c02b8 (libdispatch.dylib + 0x000182b8 ) _dispatch_source_latch_and_call
0x000000019a9abb98 (libdispatch.dylib + 0x00003b98 ) _dispatch_source_invoke
0x000000019a9b75b8 (libdispatch.dylib + 0x0000f5b8 ) _dispatch_root_queue_drain
0x000000019a9b72d8 (libdispatch.dylib + 0x0000f2d8 ) _dispatch_worker_thread3
0x000000019abc946c (libsystem_pthread.dylib + 0x0000146c ) _pthread_wqthread
0x000000019abc901c (libsystem_pthread.dylib + 0x0000101c ) start_wqthread
Looking at the source:
<a href="https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm#L617">https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm#L617</a>
it seems that self.fullscreenInterface is nil and calling the function on it is what crashes.
Seems that this class already had similar issues with its delegate, see <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Prevent crash when accessing WebAVPlayerController.delegate."
href="show_bug.cgi?id=140893">https://bugs.webkit.org/show_bug.cgi?id=140893</a>.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>