qBadAlloc - strange problem
-
I run with debugger that's why I know that application crashes in QByteArray realloc function and when allocating more memory fails it do crash.
This part of code is used to compress data to ZIP file. It's not stream base that's why usage is so high.
But reall question is why same code (nothing was changed) crashed in debug mode and after closing Firefox and again rerunning application in debug mode problem is resolved.
Not only that - in application I do have 2 ways to save file to ZIP and using "other" way did work for large file but when used "first" mode it did crash (didn't crash on other PC with WIn 8.1 / Mac 10.10 - run also in debug mode).
I know that my description is vague but I'm working on large application and I can't go into details here.
Another question - could to much recursive calls cause throw of qBadAlloc() ?
-
Hi,
Did you check the available memory on your computer when FireFox was running ?
-
Theory - I will need to test this out but I'm suspecting that issue is related to manually set "Virtual Memory" on system.
Tested on other applications (many Firefox tabs, memory intense application) and apps did crash - although in event viewer I don't see any crash related to memory per say but this may be a case here). -
How are you modifying the virtual memory handling on your computer ?
-
-
Are you increasing or decreasing the available Virtual Memory ?
-
Then there's only one answer: gremlins...
-