Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.8.0, 5.8
-
None
-
Windows 7,8,10
Description
The application crashes with the following error when we try to load the image attached
[8396:19100:0601/130448:FATAL:memory_win.cc(38)] Out of memory, size = 1969102080
Backtrace:
QtWebEngineCore::WebContentsAdapter::d_func [0x05E94F97+731175]
QtWebEngineCore::WebContentsAdapter::d_func [0x05E584A7+482615]
QtWebEngineCore::UserScript::validUserScriptSchemes [0x07B44342+702258]
callnewh [0x776FE239+41]
_libm_sse2_tan [0x776DCE5A+73210]
QImageData::create [0x1004E211+321]
The image size in windows explorer is 3.7 MB. Though I can understand that in some special cases, the image meta-data available in headers may provide utterly wrong or insane values, Is it possible for us to prevent Qt from trying to load those images? At any time, I can happily live with an exception rather than application crashing which is always annoying. Please try to handle this. It's critical for us.
Simple code to reproduce this crash
path=eventDict['path']
image=QPixmap()
image.load(path)
Note: This happens only in Windows. In Mac it's working fine.