HTMLViewer crashes when loading website

Hi,

I’m building a small Mac OS X app for my personal use with Xojo2017R1.1. This app helps me to organize my movie data.
One part of that app is the administration of links to websites that contain related movie infos.
I use HTMLViewer (+ Textfield +Pushbutton) to search for the sites, whose URLs I want to save. Most of the needed websites work.

But when I load the URL http://www.moviepilot.de/movies/the-mechanic in the HTMLViewer, the HTMLViewer crashes (even in the xojo sample application “simple_browser”).

Any ideas how I can avoid that?

Thanks in advance for your ideas!

I am not seeing an issue here on 10.11.6 using that link with the simple_browser example project.
What is your macOS version?

10.12.6

Maybe the crash depends on the displayed advertising on the site and you don’t get that advertising that forces the crash?

Here you can see how the site above is shown to me in safari

Image

I can confirm what you are seeing.

I have one machine on 10.11.6 and the SimpleBrowser sample application doesn’t crash while loading that website.
On my 10.12.6 machine, the same application crashes every time the page loads.

@Jared: thanks for your test an confirmation.

That’s crazy. Does anybody have an idea to solve this?

Perhaps getting some crash information could be helpful try osx “console” and see if it returns a crash log.

This is the log from the thread that crashed.

https://pastebin.com/imKQwF8m

It looks like the issue is related to JavaScript in some way or another.

usually much better if you can find the entire crash log for the app & post a link to that
there’s a lot of info thats missing otherwise

Full crash log

https://pastebin.com/jdfGSDXn

wow … way deep in javascript core and its an illegal instruction signal
cool

when this occurs does the system offer to send it to Apple ?
if so i sure hope you sent it

Yep, I submitted it to Apple’s crash report black box.

Just curious… if you open that site in Safari, do you get any errors in debug mode?

I’m not familiar with Safari debug mode. I enabled debug mode and loaded that site. The big advertising “around” the main content of the site will not be shown (see image below). Do you mean other “errors”? Where can I find that?

Image

But the missing advertising isn’t the solution. I’m in Spain right now and even in non debug mode there is no “big” advertising around the main content and even without that HTMLViewer crashes.

The crash does not occur immediately.

It maybe possible to use executejavascript to add a handler for window.onerror and possibly prevent the crash.

https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html

It does not work. The app crashes before JavaScript can trap the error.

Any idea how this could be solved?