Page 1 of 1
Crashing on specific webpage
Posted: Tue Feb 20, 2018 12:04 pm
by thefunkyjoint
Hi,
I'm using the latest build (3.3282.1733.0).
It's working but somehow when i open this specific website, my app raises an Access violation and crashes :
https://www.desentupidoraroto-rooter.com.br
I could not reproduce the same problem with another url. How can i find out why it's crashing ?
Thanks
Re: Crashing on specific webpage
Posted: Tue Feb 20, 2018 1:17 pm
by salvadordf
I haven't tried that on the demos but that website has a huge background image (5Mb)
Please, check that your DPR includes the LARGEADDRESSAWARE flag. Use this if you use Delphi 7 :
Or this if you have other Delphi versions :
Code: Select all
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
You will need to add "Windows" to the uses clause if you use IMAGE_FILE_LARGE_ADDRESS_AWARE
Re: Crashing on specific webpage
Posted: Tue Feb 20, 2018 5:42 pm
by thefunkyjoint
salvadordf wrote: Tue Feb 20, 2018 1:17 pm
I haven't tried that on the demos but that website has a huge background image (5Mb)
Please, check that your DPR includes the LARGEADDRESSAWARE flag. Use this if you use Delphi 7 :
Or this if you have other Delphi versions :
Code: Select all
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
You will need to add "Windows" to the uses clause if you use IMAGE_FILE_LARGE_ADDRESS_AWARE
Hello Salvador,
Thanks for answering. In the past i tried to use this option, but i use Faststrings (
http://www.delphipages.com/comp/fast_strings-5279.html) and somehow when i use the SetPEFlags directive, functions inside the Faststrings unit stop to work properly... Faststrings is a unit with some functions that replace Delphi's System ones, like 'pos'. They are way faster than the Delphi native ones.
Any hints ?
Thanks
Re: Crashing on specific webpage
Posted: Tue Feb 20, 2018 6:22 pm
by salvadordf
You could try disabling the images setting TChromium.Options.ImageLoading to STATE_DISABLED or replacing the FastStrings functions you use with other alternatives (if there are any).
Re: Crashing on specific webpage
Posted: Tue Feb 20, 2018 6:24 pm
by thefunkyjoint
Good idea, i'll try to disable images.
Re: Crashing on specific webpage
Posted: Tue Feb 20, 2018 6:28 pm
by salvadordf
I just tested
https://www.desentupidoraroto-rooter.com.br with the MiniBrowser demo and it works fine with the LARGEADDRESSAWARE flag.
Re: Crashing on specific webpage
Posted: Fri Dec 28, 2018 3:23 pm
by thefunkyjoint
Hi,
Just to know, in the last updates the {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} was somehow included by default ?
Re: Crashing on specific webpage
Posted: Fri Dec 28, 2018 4:39 pm
by salvadordf
I tested the MiniBrowser demo with this large image :
https://upload.wikimedia.org/wikipedia/ ... t_10MB.jpg
If I build the demo with IMAGE_FILE_LARGE_ADDRESS_AWARE then the image will be loaded correctly but if I disable the flag then the browser remains black.
If I remember correctly, disabling the flag caused a render process crash with large images. I guess something has changed in Chromium to avoid that crash but the browser doesn't show the image.