Opened 2 years ago
Last modified 2 years ago
#18183 closed bug
Strange out of memory issue while allocating many bitmaps — at Version 4
Reported by: | jackburton | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86 |
Description (last modified by )
While trying to fix a problem in BeScreenCapture I managed to create a test application which reproduces the problem. The attached test application allocates many bitmaps (300) and adds them to list
On haiku 32 bit it fails after 100 bitmaps, more or less, with "Out of memory".
but doesn't seem so, looking at ActivityMonitor or ProcessController. Works fine with less than 100 bitmaps.
The system I'm testing it on has 4GB ram, and virtual memory is enabled and set to be managed by system.
Compile with:
gcc -g -lbe -lroot -ltranslation -lstdc++.r4 -o bitmaptest main.cpp
Change History (5)
comment:1 by , 2 years ago
Description: | modified (diff) |
---|
comment:2 by , 2 years ago
Description: | modified (diff) |
---|
comment:3 by , 2 years ago
comment:4 by , 2 years ago
Description: | modified (diff) |
---|---|
Summary: | Strange out of memory issue while allocating bitmaps and saving to disk → Strange out of memory issue while allocating many bitmaps |
Note:
See TracTickets
for help on using tickets.
Further simplified test case: it seems that earlier BBitmap::InitCheck() fails, so there's no need to save bitmaps to disk to reproduce the problem.