Electron crash when opening large image


#1

I have a 20 MB image that I load into an img tag src. The app crashes right away with that dump:

[2520:0802/110554:FATAL:memory_win.cc(38)] Out of memory, size = 300000000
Backtrace:
(No symbol) [0x0143FC17]
(No symbol) [0x0143A9D1]
icu_56::Transliterator::setID [0x0388B201+976529]
icu_56::Transliterator::setID [0x03828AE7+573303]
icu_56::Transliterator::setID [0x03824F7F+558095]
icu_56::Transliterator::setID [0x0388B21C+976556]
icu_56::calendar::weekNumber [0x02AB302F+3733151]
icu_56::calendar::weekNumber [0x02B3667D+4271341]
icu_56::calendar::weekNumber [0x02B36902+4271986]
icu_56::calendar::weekNumber [0x02B36826+4271766]
icu_56::calendar::weekNumber [0x02AC8B6D+3822045]
icu_56::calendar::weekNumber [0x02ACAB2C+3830172]
icu_56::MessagePattern::partSubstringMatches [0x039BAFB8+1165256]
icu_56::MessagePattern::partSubstringMatches [0x039C7DF2+1218050]
icu_56::MessagePattern::partSubstringMatches [0x039C773C+1216332]
icu_56::MessagePattern::partSubstringMatches [0x039C7406+1215510]
icu_56::MessagePattern::partSubstringMatches [0x039C7457+1215591]
icu_56::MessagePattern::partSubstringMatches [0x039F485A+1400938]
icu_56::MessagePattern::partSubstringMatches [0x039F4FF2+1402882]
icu_56::MessagePattern::partSubstringMatches [0x039F4A36+1401414]
icu_56::MessagePattern::partSubstringMatches [0x039BA629+1162809]
icu_56::calendar::weekNumber [0x02AF19B4+3989540]
icu_56::calendar::weekNumber [0x02C1C6D4+5213508]
icu_56::calendar::weekNumber [0x02B8DEC0+4629808]
icu_56::calendar::weekNumber [0x02AF6EC6+4011318]
icu_56::MessagePattern::partSubstringMatches [0x03B5A84D+2867293]
icu_56::MessagePattern::partSubstringMatches [0x03B59842+2863186]
icu_56::MessagePattern::partSubstringMatches [0x03B5A387+2866071]
icu_56::MessagePattern::partSubstringMatches [0x03B5AAC4+2867924]
icu_56::MessagePattern::partSubstringMatches [0x03B5986B+2863227]
icu_56::MessagePattern::partSubstringMatches [0x03B5959A+2862506]
icu_56::MessagePattern::partSubstringMatches [0x03B5B99F+2871727]
icu_56::TimeZone::setID [0x01C37624+3023892]
icu_56::TimeZone::setID [0x01C3750E+3023614]
icu_56::TimeZone::setID [0x01C3753F+3023663]
(No symbol) [0x01453AD2]
BaseThreadInitThunk [0x764B33CA+18]
RtlInitializeExceptionChain [0x77E09ED2+99]
RtlInitializeExceptionChain [0x77E09EA5+54]

Backtrace:
GetHandleVerifier [0x0148B869+116809]
icu_56::Transliterator::setID [0x0388B201+976529]
icu_56::Transliterator::setID [0x03828AE7+573303]
icu_56::Transliterator::setID [0x03824F7F+558095]
icu_56::Transliterator::setID [0x0388B21C+976556]
icu_56::calendar::weekNumber [0x02AB302F+3733151]
icu_56::calendar::weekNumber [0x02B3667D+4271341]
icu_56::calendar::weekNumber [0x02B36902+4271986]
icu_56::calendar::weekNumber [0x02B36826+4271766]
icu_56::calendar::weekNumber [0x02AC8B6D+3822045]
icu_56::calendar::weekNumber [0x02ACAB2C+3830172]
icu_56::MessagePattern::partSubstringMatches [0x039BAFB8+1165256]
icu_56::MessagePattern::partSubstringMatches [0x039C7DF2+1218050]
icu_56::MessagePattern::partSubstringMatches [0x039C773C+1216332]
icu_56::MessagePattern::partSubstringMatches [0x039C7406+1215510]
icu_56::MessagePattern::partSubstringMatches [0x039C7457+1215591]
icu_56::MessagePattern::partSubstringMatches [0x039F485A+1400938]
icu_56::MessagePattern::partSubstringMatches [0x039F4FF2+1402882]
icu_56::MessagePattern::partSubstringMatches [0x039F4A36+1401414]
icu_56::MessagePattern::partSubstringMatches [0x039BA629+1162809]
icu_56::calendar::weekNumber [0x02AF19B4+3989540]
icu_56::calendar::weekNumber [0x02C1C6D4+5213508]
icu_56::calendar::weekNumber [0x02B8DEC0+4629808]
icu_56::calendar::weekNumber [0x02AF6EC6+4011318]
icu_56::MessagePattern::partSubstringMatches [0x03B5A84D+2867293]
icu_56::MessagePattern::partSubstringMatches [0x03B59842+2863186]
icu_56::MessagePattern::partSubstringMatches [0x03B5A387+2866071]
icu_56::MessagePattern::partSubstringMatches [0x03B5AAC4+2867924]
icu_56::MessagePattern::partSubstringMatches [0x03B5986B+2863227]
icu_56::MessagePattern::partSubstringMatches [0x03B5959A+2862506]
icu_56::MessagePattern::partSubstringMatches [0x03B5B99F+2871727]
icu_56::TimeZone::setID [0x01C37624+3023892]
icu_56::TimeZone::setID [0x01C3750E+3023614]
icu_56::TimeZone::setID [0x01C3753F+3023663]
(No symbol) [0x01453AD2]
BaseThreadInitThunk [0x764B33CA+18]
RtlInitializeExceptionChain [0x77E09ED2+99]
RtlInitializeExceptionChain [0x77E09EA5+54]

It happens only in Windows- does this makes sense to anyone? I’m totally lost here.