HtmlViewer icon indicating copy to clipboard operation
HtmlViewer copied to clipboard

On Lazarus/Mac/Carbon TDibGetDIBX

Open TommySlokky opened this issue 7 years ago • 4 comments

Not sure if a bug per-se - but behavior is different on Mac than on Windows here:

There appears to be an issue in HtmlImages TDib.GetDIBX where the call to GetDIBits sometimes return 0 making GetDIBX throw outofmemory (without actually being out of memory?)

I can investigate deeper if wanted?

Beyond that - I got htmlviewer loading websites on the Mac/Lazarus/Carbon combo

TommySlokky avatar Nov 20 '17 02:11 TommySlokky

Thanks for your hard work running HtmlViewer on Mac/Carbon! It is much appreciated! I would like to encourage you to push your results to github.

BerndGabriel avatar Nov 20 '17 17:11 BerndGabriel

I will give it a go again. At first I simply commented out throwing the error thinking it is OK if an image is not always shown. However - when browsing inside HTMLViewer I get a SigSEV and it is not particular easy to reproduce to debug step into.

TommySlokky avatar Nov 23 '17 15:11 TommySlokky

I can't find the source of the problem. It is somewhere deep in carbon canvas with release of handles. Do you need me to push the other updates I repored? (Never really used GitHub) But the moment the crash thing solved on Mac, HtmlViewer is the far best light-weight solution available (I know some want Chronium, but that is a minimum a 30mb solution)

For what it is worth - the test site I can repeatedly crash HtmlViewer on (e.g. initial load then max two clicks of navigation) webhelpforums.net

TommySlokky avatar Dec 01 '17 14:12 TommySlokky

Problem in Lazarus 1.8.0 as well

TommySlokky avatar Dec 17 '17 22:12 TommySlokky