Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

WebView causes application to crash

A WebView causes my application to crash. I haven't found anything on this problem by googling.

I have a tableView which I'm adding a click-event on:

RSS.oTable.addEventListener("click", RSS.showItem);

The RSS.showItem:

showItem: function(e) {
    var oData = e.row.axjData;
    var oSubWin = Titanium.UI.createWindow({
        title: oData.title,
        backgroundColor:"#fff"
    });
    var oWebview = Titanium.UI.createWebView({
        url:'http://www.appcelerator.com'
    });
    //oSubWin.add(oWebview);

    Titanium.UI.currentTab.open(oSubWin);

}

Works fine without WebView. The WebView causes the following error & stack trace:
http://gist.github.com/653217

Any ideas or suggestions?

— asked October 29th 2010 by Alexander Johansson
  • crash
  • nsexception
  • tiuiwebviewproxy
  • webview
5 Comments
  • what device?

    — commented October 29th 2010 by Aaron Saunders
  • iPhone. Got any ideas?

    — commented October 31st 2010 by Alexander Johansson
  • same problem… any answers?

    — commented November 5th 2010 by sean oreilly
  • same problem

    — commented January 31st 2011 by dev 1605
  • getting the same problem. But the weird thing is that its machine specific. Not happening on all machines. Any solutions?

    — commented February 3rd 2011 by Isneesh Marwah

1 Answer

  • This solved it for me.
    Basically, delete your build folder and rebuild again.

    — answered February 3rd 2011 by Isneesh Marwah
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.