1. Balu Krishnasamy
  2. PowerBuilder
  3. Tuesday, 16 July 2019

Microsoft Web Browser Control Issue:

We Upgraded to PB 2017 R3(1858) recently. Ever since we deployed our application using PB2017, there has been intermittent issues with respect to the way how the MS Web Browser Control displays the site. We do have the FEATURE_BROWSER_EMULATION set to 8888. This issue is mostly seen on Win10.

The Activex control is embedded on a window.

An Ideal Log looks something like this. When the issue occurs, the page goes blank and it appears that its still trying to load something on the webbrowser control eventually bringing down the window(window goes not responding), the lines in the color wont get logged.

It seems like something to do with executing the java script and the cached html after that. Again, this is intermittent and wide spread on Win10. Our support concluded that its not environmental or anythign to do with windows update.

Any thoughts are highly appreciated as the list of customers getting affected is growing day by day.

ole_xyz.beforenavigate2 -  Incoming URL: http://localhost:8081/xyz-web-application/?screenId=&noCacheToken=20190716115652
ole_xyz.downloadbegin    
ole_xyz.downloadcomplete    
ole_xyz.downloadbegin    
ole_xyz.navigatecomplete2(): url: http://localhost:8081/xyz-web-application/xyzweb/?screenId=&noCacheToken=20190716115652
ole_xyz.downloadcomplete    
ole_xyz.documentcomplete: http://localhost:8081/xyz-web-application/xyzweb/?screenId=&noCacheToken=20190716115652
ole_xyz.beforenavigate2 -  Incoming URL: javascript:''    
ole_xyz.beforenavigate2 -  Incoming URL: http://localhost:8081/xyz-web-application/xyzweb/F69D5B8545FF4831FCB0189E092A7E51.cache.html    
ole_xyz.downloadbegin    
ole_xyz.navigatecomplete2(): url: http://localhost:8081/xyz-web-application/xyzweb/F69D5B8545FF4831FCB0189E092A7E51.cache.html    
ole_xyz.downloadcomplete    
ole_xyz.documentcomplete: http://localhost:8081/xyz-web-application/xyzweb/F69D5B8545FF4831FCB0189E092A7E51.cache.html    
ole_xyz.downloadbegin    
ole_xyz.downloadcomplete    
ole_xyz.beforenavigate2 -  Incoming URL: about:blank    
ole_xyz.downloadbegin    
ole_xyz.navigatecomplete2(): url: about:blank    
ole_xyz.downloadcomplete    
ole_xyz.documentcomplete: about:blank    
ole_xyz.downloadbegin    
ole_xyz.downloadcomplete    
ole_xyz.downloadbegin    
ole_xyz.downloadcomplete  

Balu Krishnasamy Accepted Answer Pending Moderation
1
Votes
Undo

@here,

A quick update. We were able to pinpoint the issue  to google analytics and the team responsible for it made some changes in the sequence and that seems to have taken care of this. I really appreciate your time and all the ideas. Thank you!

On a different note, After upgrading our code base to 2017 R3, we had numerous crashes relating to the OLE browser control. It appears the OLE control hasn't been instantiated when the window open event makes a navigate call to the ole control resulting in an Error 35. We moved that code to pfc_postopen and check the validity of the ole control now before we make a navigate call the ole control. This seems to have fixed this issue.

This behavior was NOT observed in the previous versions of Powerbuilder. Not sure if anything to do with the event sequence or to do with the OLE browser got changed in 2017 +

Comment
That is because Sybase & SAP changed some event's "firing" order in B 12.5;2 and 12.6. Appeon PB is based on the PB 12.6 baseline code. So using a "Post Open" or "Post Constructor" event is most prudent (in any PB version) IMHO.
  1. Chris Pollach
  2. Wednesday, 11 September 2019
Thanks much for the clarification, Chris! We moved from PB 12.0 to 2017 so that explains it and i agree on the "post" event practice.
  1. Balu Krishnasamy
  2. Wednesday, 11 September 2019
There are no comments made yet.
  1. Wednesday, 11 September 2019
  2. PowerBuilder
  3. # 1
Nasrul lah Accepted Answer Pending Moderation
0
Votes
Undo

Comment
There are no comments made yet.
  1. Tuesday, 20 August 2019
  2. PowerBuilder
  3. # 2
Nasrul lah Accepted Answer Pending Moderation
0
Votes
Undo