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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Crashing on specific webpage

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Crashing on specific webpage

Post 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
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Crashing on specific webpage

Post 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 :

Code: Select all

{$SetPEFlags $20}
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
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Crashing on specific webpage

Post 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 :

Code: Select all

{$SetPEFlags $20}
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
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Crashing on specific webpage

Post 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).
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Crashing on specific webpage

Post by thefunkyjoint »

Good idea, i'll try to disable images.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Crashing on specific webpage

Post by salvadordf »

I just tested https://www.desentupidoraroto-rooter.com.br with the MiniBrowser demo and it works fine with the LARGEADDRESSAWARE flag.
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Crashing on specific webpage

Post by thefunkyjoint »

Hi,

Just to know, in the last updates the {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} was somehow included by default ?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Crashing on specific webpage

Post 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.
Post Reply