Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2010, 09:39 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 4
rene is on a distinguished road
Angry UIWebView crashing after loading YouTube for second time

Hi, I have an annoying bug when trying to load a YouTube Video within a UIWebView.
First, I added a UIWebView within IB to a UIViewController and connected everthing fine. For the first time the view is called everthing works fine. If I call the view a second time (e.g. go back with NavigationBar) I get a crash and a EXC_BAD_ACCESS. I tried everything, NSZOmbieEnabled, cant get the error.
You'll find a demo project at the end of this post, please compile it for iPad Simulator (it also doesn't work on the device) and click on "Add WebView", let the page load, click on "Remove WebView" and click AGAIN on "Add WebView". There will be the crash.

What i tried:
- enabled NSZombie to track the bug - doesn't work
- set delegate of WebView to nil

The error from debugger is:
http://dl.dropbox.com/u/4259690/bug.png

The bug only exists on iOS 4.2.1. With iOS 4.1 everthing works fine


Demo:
http://dl.dropbox.com/u/4259690/yout...ubeCrashes.zip
rene is offline   Reply With Quote
Old 01-03-2011, 04:48 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 2
ait109 is on a distinguished road
Default

I have exactly the same problem. Please post if you have found a solution.

Ed
Quote:
Originally Posted by rene View Post
Hi, I have an annoying bug when trying to load a YouTube Video within a UIWebView.
First, I added a UIWebView within IB to a UIViewController and connected everthing fine. For the first time the view is called everthing works fine. If I call the view a second time (e.g. go back with NavigationBar) I get a crash and a EXC_BAD_ACCESS. I tried everything, NSZOmbieEnabled, cant get the error.
You'll find a demo project at the end of this post, please compile it for iPad Simulator (it also doesn't work on the device) and click on "Add WebView", let the page load, click on "Remove WebView" and click AGAIN on "Add WebView". There will be the crash.

What i tried:
- enabled NSZombie to track the bug - doesn't work
- set delegate of WebView to nil

The error from debugger is:
http://dl.dropbox.com/u/4259690/bug.png

The bug only exists on iOS 4.2.1. With iOS 4.1 everthing works fine


Demo:
http://dl.dropbox.com/u/4259690/yout...ubeCrashes.zip
ait109 is offline   Reply With Quote
Reply

Bookmarks

Tags
4.2.1, crash, exc_bad_access, uiwebview, youtube

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 397
9 members and 388 guests
chemistry, daudrizek, HemiMG, jeroenkeij, Kirkout, PavelMik, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0