Changes between Version 2 and Version 4 of Ticket #18183


Ignore:
Timestamp:
Dec 28, 2022, 10:05:31 AM (2 years ago)
Author:
jackburton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18183

    • Property Summary Strange out of memory issue while allocating bitmaps and saving to diskStrange out of memory issue while allocating many bitmaps
  • Ticket #18183 – Description

    v2 v4  
    11While trying to fix a problem in BeScreenCapture I managed to create a test application which reproduces the problem.
    2 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.
     2The attached test application allocates many bitmaps (300) and adds them to list
    33
    4 On haiku 32 bit it fails with "no translator found". Syslog shows
    5 
    6 {{{
    7 KERN: runtime_loader: /boot/system/lib/libIlmImf-2_2.so.23.0.0: Could not map image: Out of memory
    8 }}}
     4On haiku 32 bit it fails after 100 bitmaps, more or less, with "Out of memory".
    95
    106but doesn't seem so, looking at ActivityMonitor or ProcessController.
    11 Works fine with only 100 bitmaps.
     7Works fine with less than 100 bitmaps.
    128
    139The system I'm testing it on has 4GB ram, and virtual memory is enabled and set to be managed by system.