Opened 2 years ago

Last modified 2 years ago

#18183 closed bug

Strange out of memory issue while allocating bitmaps and saving to disk — at Version 1

Reported by: jackburton Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description (last modified by jackburton)

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), adds them to list, then iterates the list and saves the bitmap to disk using the translation kit.

On haiku 32 bit it fails with "out of memory", but doesn't seem so, looking at ActivityMonitor or ProcessController. Works fine with only 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 (1)

comment:1 by jackburton, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.