Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6026] Error when create web view IOS using SDK 7.5.0.GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-11-22T22:44:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterSathaphorn Kerdmalai
AssigneeShak Hossain
Created2018-11-19T02:35:51.000+0000
Updated2018-11-22T22:44:27.000+0000

Description

var webView = thiz.webView = Ti.UI.createWebView({
			top : 0,
			left : 0,
			scalesPageToFit : true,
			url : '',
			backgroundColor : 'transparent'
});
see error log attachment below.

Attachments

FileDateSize
7.5.0.png2018-11-19T02:35:43.000+0000574084

Comments

  1. Vijay Singh 2018-11-19

    [~iblack.dum] Can you give complete reproducible code please? And what iOS version this is happening? Thanks!
  2. Sathaphorn Kerdmalai 2018-11-19

    IOS 12.1 iPhoneX simulator. I've just created web view.
  3. Vijay Singh 2018-11-19

    [~iblack.dum] With given test code I am not able to reproduce the issue. I tried with test case -
       var webView = this.webView = Ti.UI.createWebView({
                   top : 0,
                   left : 0,
                   scalesPageToFit : true,
                   url : '',
                   backgroundColor : 'transparent'
       });
       
       var window = Ti.UI.createWindow({
           backgroundColor: 'white'
       });
       
       window.add(webView);
       window.open();
       
    but unable to reproduce it. We need complete reproducible test case. Is this problem happening on previous versions as well? And in your test case I believe 'thiz.webView' is 'this.webView'.
  4. Sathaphorn Kerdmalai 2018-11-19

    SDK 7.4.1.GA there is no error its work perfectly. It only occurs when I use sdk 7.5.0.GA
  5. Sathaphorn Kerdmalai 2018-11-19

    I think I know the cause of an error. It error when I try to use evalJS.
  6. Sharif AbuDarda 2018-11-19

    Hello [~iblack.dum], Can you send a standalone sample code for us to test on 7.5.1.GA? Thanks.
  7. Sathaphorn Kerdmalai 2018-11-20

    I have to add a property run-on-main-thread on tiapp.xml
       <property name="run-on-main-thread" type="bool">true</property>
       
  8. Sharif AbuDarda 2018-11-20

    Hello, [~iblack.dum] So, your issue is resolved I believe?

JSON Source