SUMMARY I tried to attach a file without realizing that the file was 829MB. Every time I attempt to attach it kontact crashes. STEPS TO REPRODUCE 1. Attempt to attach 829MB file to email 2. Watch Kontact crash 3. OBSERVED RESULT Crash EXPECTED RESULT Possibly a complaint but otherwise it should succeed. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.15.4 (available in About System) KDE Plasma Version: 5.15.4 KDE Frameworks Version: 19.04.0 Qt Version: 5.12.3 ADDITIONAL INFORMATION
Do you have a backtrace?
Unfortunately, I have been unable to get a backtrace. It is very repeatable.
Base64 encoding will the file grow to 1105 million characters. With Qt's QChar being 16-bit wide, it will need 2210 MB space, but Qt's containers only allow 2147 MB (2^31 bytes). In other words, the backtrace will most certainly be the same as other backtraces that document failed allocations from QArrayData::allocate().