Crash after several browsing on Youtube using UIWebView

0

I had an IOS app that utilize UIWebView to browse Youtube. However recently I found the app crash after browsing several youtube videos ( around 4-5 video). I use the debug mode on Xcode and not much information is given.

I had tested again with a simple UIViewController adding a UIWebview to it, pointing it to youtube. Play for some videos. Then it crashes.

Below are the logs.

2019-04-18 18:25:01.658793+0800 testj[30393:4684669] [0x15a831600] Options: 320x180 [FFFFFFFF,FFFFFFFF] 00024060
2019-04-18 18:25:01.659327+0800 testj[30393:4684669] [0x15a831600] Decoding failed with error code 7
2019-04-18 18:25:01.659374+0800 testj[30393:4684669] [0x15a831600] Decoding: C0 0x014000B4 0x0000304A 0x22111100 0x00000000 983
2019-04-18 18:25:01.659426+0800 testj[30393:4684669] [0x15a831600] Options: 320x180 [FFFFFFFF,FFFFFFFF] 0001C060
2019-04-18 18:25:01.659640+0800 testj[30393:4684669] [0x15a831600] Decoding failed with error code 7
2019-04-18 18:25:01.659682+0800 testj[30393:4684669] [0x15a831600] Decoding: C0 0x014000B4 0x0000304A 0x22111100 0x00000000 983
2019-04-18 18:25:01.659725+0800 testj[30393:4684669] [0x15a831600] Options: 320x180 [FFFFFFFF,FFFFFFFF] 0001C060
2019-04-18 18:25:04.400842+0800 testj[30393:4684722] [0x15b044a00] Decoding failed with error code -1
2019-04-18 18:25:04.400988+0800 testj[30393:4684722] [0x15b044a00] Decoding: C0 0x014000B4 0x0000304A 0x22111100 0x00000000 10706
2019-04-18 18:25:48.130163+0800 testj[30393:4684678] WF: _WebFilterIsActive returning: NO
2019-04-18 18:25:54.709600+0800 testj[30393:4685231] [0x15b832400] Decoding failed with error code -1
2019-04-18 18:25:54.709712+0800 testj[30393:4685231] [0x15b832400] Decoding: C0 0x00B000B0 0x0000304A 0x11111100 0x00000000 879
2019-04-18 18:25:54.709741+0800 testj[30393:4685231] [0x15b832400] Options: 2x-1 [00000000,00B000B0] 0001C060
2019-04-18 18:25:55.561210+0800 testj[30393:4685229] [0x158a82c00] Decoding failed with error code -1
2019-04-18 18:25:55.561235+0800 testj[30393:4685229] [0x158a82c00] Decoding: C0 0x014000B4 0x0000304A 0x22111100 0x00000000 10706
2019-04-18 18:25:55.561242+0800 testj[30393:4685229] [0x158a82c00] Options: 320x180 [FFFFFFFF,FFFFFFFF] 00024060
2019-04-18 18:25:55.562628+0800 testj[30393:4685229] [0x158a87200] Decoding failed with error code -1
2019-04-18 18:25:55.562639+0800 testj[30393:4685229] [0x158a87200] Decoding: C0 0x014000B4 0x0000304A 0x22111100 0x00000000 5159
2019-04-18 18:25:55.562645+0800 testj[30393:4685229] [0x158a87200] Options: 320x180 [FFFFFFFF,FFFFFFFF] 00024060
(lldb) 

Then it crashes.

Is there anyone had the similar experience can share?

- (void)viewDidLoad {
   [super viewDidLoad];

    NSString*      weburl = @"https://m.youtube.com/watch?v=JTdF-qUCp4A";

    [_webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:weburl]]];
}

Only error I got is this error: memory read failed for 0x0 WebThread (9): EXC_BAD_ACCESS (code=1, address=0x0)

objective-c
xcode
youtube
uiwebview
asked on Stack Overflow Apr 18, 2019 by Beda • edited Apr 18, 2019 by mle

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0