Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Mobile Safari Crash


I have a JWPlayer embedded in an AngularJS view and it's pointed at a video on a remote server to play. I'm seeing an issue on iPad when using Mobile Safari. We have navigation buttons on our page that allow us to move thru a set of pages. If I hit a button to navigate away from the page before the JWPlayer video loads, Safari crashes hard.

I don't see the issue when I browse from my Mac and I don't see the issue using Chrome on the iPad, just Safari on iPad.

Just wondering if anyone has seen anything like this before? And any ideas of where to start looking? Thanks.






9 Community Answers

rujackson

User  
1 rated :

Here's a chunk of the crash log, btw, in case it holds a clue....

ncident Identifier: 8250E5AC-3891-4037-83F3-A53E5C4FDDC6
CrashReporter Key: 8e100195dafcdc337c58973d6efcdfbd6573a302
Hardware Model: iPad3,1
Process: MobileSafari [162]
Path: /var/mobile/Applications/3A648D1F-CE72-4920-A291-39DBBFB58810/MobileSafari.app/MobileSafari
Identifier: com.apple.mobilesafari
Version: 9537.53 (7.0)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2014-06-30 13:55:14.627 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 2

Thread 0:
0 libsystem_kernel.dylib 0x3938aa58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3938a854 mach_msg + 44
2 CoreFoundation 0x2e204896 0x2e166000 + 649366
3 CoreFoundation 0x2e203002 0x2e166000 + 643074
4 CoreFoundation 0x2e16df0a 0x2e166000 + 32522
5 CoreFoundation 0x2e16dcee 0x2e166000 + 31982
6 GraphicsServices 0x3309365e 0x3308a000 + 38494
7 UIKit 0x30ab9168 0x30a4b000 + 450920
8 MobileSafari 0x0009d0d6 0x94000 + 37078
9 libdyld.dylib 0x392e7ab4 0x392e6000 + 6836

Thread 1:
0 libsystem_kernel.dylib 0x3938a808 kevent64 + 24
1 libdispatch.dylib 0x392cc078 0x392c1000 + 45176
2 libdispatch.dylib 0x392cbdfe 0x392c1000 + 44542

Thread 2 name: WebThread
Thread 2 Crashed:
0 WebCore 0x367a73c0 0x36605000 + 1713088
1 WebCore 0x367a71b2 0x36605000 + 1712562
2 WebCore 0x36eb6c1e 0x36605000 + 9116702
3 WebCore 0x36a9da22 0x36605000 + 4819490
4 WebCore 0x36a5889a 0x36605000 + 4536474
5 WebCore 0x366f5a16 0x36605000 + 985622
6 WebCore 0x366f4ec2 0x36605000 + 982722
7 WebCore 0x366f0ffa 0x36605000 + 966650
8 WebCore 0x367717f0 0x36605000 + 1492976
9 WebCore 0x36786324 0x36605000 + 1577764
10 WebCore 0x367862d0 0x36605000 + 1577680
11 ??? 0x476cf6fe 0 + 1198323454
12 JavaScriptCore 0x2f1ef664 0x2f189000 + 419428
13 WebCore 0x36637aa2 0x36605000 + 207522
14 WebCore 0x366376c8 0x36605000 + 206536
15 WebCore 0x366372bc 0x36605000 + 205500
16 WebCore 0x36636900 0x36605000 + 203008
17 WebCore 0x366363f4 0x36605000 + 201716
18 WebCore 0x36636346 0x36605000 + 201542
19 CoreFoundation 0x2e2051b4 0x2e166000 + 651700
20 CoreFoundation 0x2e204dca 0x2e166000 + 650698
21 CoreFoundation 0x2e203166 0x2e166000 + 643430
22 CoreFoundation 0x2e16df0a 0x2e166000 + 32522
23 CoreFoundation 0x2e16dcee 0x2e166000 + 31982
24 WebCore 0x366c3116 0x36605000 + 778518
25 libsystem_pthread.dylib 0x39406916 _pthread_body + 138
26 libsystem_pthread.dylib 0x39406886 _pthread_start + 98
27 libsystem_pthread.dylib 0x39404aa0 thread_start + 4

Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3938aa58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3938a854 mach_msg + 44
2 CoreFoundation 0x2e204896 0x2e166000 + 649366
3 CoreFoundation 0x2e202fbc 0x2e166000 + 643004
4 CoreFoundation 0x2e16df0a 0x2e166000 + 32522
5 CoreFoundation 0x2e16dcee 0x2e166000 + 31982
6 Foundation 0x2ebad082 0x2eb54000 + 364674
7 Foundation 0x2ec22a5a 0x2eb54000 + 846426
8 libsystem_pthread.dylib 0x39406916 _pthread_body + 138
9 libsystem_pthread.dylib 0x39406886 _pthread_start + 98
10 libsystem_pthread.dylib 0x39404aa0 thread_start + 4

Thread 4 name: JavaScriptCore::BlockFree

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link we can look at?

rujackson

User  
0 rated :

Hey Ethan,

Sorry, I don't have a public link... maybe I can put together a little example that I can put on an external server. One thing we noticed tonight is that we get the same crash in Chrome on iPad also.

If I turn off the source, so it's not trying to load a video, then I don't see the crash. So it seems that the crash happens when the jwplayer is actively loading a video and we navigate away from the page. If we delay like 5 seconds, then navigate away, it works fine.

Russell

bwiederholt

User  
0 rated :

Hi Ethan, I work with Russell. Is there a way we can get a copy of 6.9 RC and see if that changes things?

Ethan Feldman

JW Player Support Agent  
0 rated :

6.9 is out on the cloud now.

bwiederholt

User  
0 rated :

Hi Ethan, Is a 6.9 zip downloadable for a self-hosting situation? When I click on download link my account I still get 6.8.

Ethan Feldman

JW Player Support Agent  
0 rated :

Not yet, but you can get the 3 files separately from:

http://p.jwpcdn.com/6/9/jwplayer.js
http://p.jwpcdn.com/6/9/jwplayer.html5.js
http://p.jwpcdn.com/6/9/jwplayer.flash.swf

rujackson

User  
0 rated :

Thanks Ethan, gave 6.9 a try, but it didn't fix our crash.

Russell

Ethan Feldman

JW Player Support Agent  
0 rated :

Np.

I really need to be able to see something in order to debug properly.

This question has received the maximum number of answers.