Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Crashing on specific webpage
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Crashing on specific webpage
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
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
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Crashing on specific webpage
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 :
You will need to add "Windows" to the uses clause if you use IMAGE_FILE_LARGE_ADDRESS_AWARE
Please, check that your DPR includes the LARGEADDRESSAWARE flag. Use this if you use Delphi 7 :
Code: Select all
{$SetPEFlags $20}
Code: Select all
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Crashing on specific webpage
Hello Salvador,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 $20}
You will need to add "Windows" to the uses clause if you use IMAGE_FILE_LARGE_ADDRESS_AWARECode: Select all
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
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
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Crashing on specific webpage
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).
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Crashing on specific webpage
Good idea, i'll try to disable images.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Crashing on specific webpage
I just tested https://www.desentupidoraroto-rooter.com.br with the MiniBrowser demo and it works fine with the LARGEADDRESSAWARE flag.
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Crashing on specific webpage
Hi,
Just to know, in the last updates the {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} was somehow included by default ?
Just to know, in the last updates the {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} was somehow included by default ?
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Crashing on specific webpage
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.
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.