Development
[haiku-development] Re: Who's working Haiku's on UI/UX? (fox noodles)
[haiku-development] Re: Who's working Haiku's on UI/UX? (Ithamar Adema)
Icon-o-Matic: fix variables name 2
[haiku-development] Re: Who's working Haiku's on UI/UX? (Humdinger)
Ticket #12135 ([Tracker] Potential memory leak in the desktop background) created
Use a very big image as the desktop background (see #8778).
Reboot the system, if doesn't show up at first try.
Use the Backgrounds preference to remove the image as the desktop background.
The Tracker doesn't release the huge amount of memory used for the image.
Ticket #8778 (Poor handling of very large JPEG images in Backgrounds preferences.) closed
Part 1 is reported in #8788 (Mouse click).
Part 2 is reported in #8779 (Corrupted image).
Part 3 is a system limit as explained in comment:4. There are no problems with the x86_64 version.
Icon-O-Matic: fix variables name
Ticket #10840 (Apps not abiding GUI colour definitions) closed
Fixed in hrev49256.
Icon-o-Matic: list views use system colors
Ticket #12134 (segfaulting on lyx binary when debugging enabled) created
I'm trying to build lyx from their git repository (2.1.3 release is fine), but it segfaults when debugging is enabled. Disabling debugging when building creates a binary that runs without error.
After suggestions from hamishm, I've attached listarea and also syslog output.
Perhaps this is somehow related to the random binary crashes of #10279? CC'ing Ingo in case it is...
Ticket #12133 (Missing <float.h>) closed
float.h is provided by gcc hpkgs.
Ticket #12133 (Missing <float.h>) created
Called by posix/limits.h but missing from sources.
Ticket #12132 (Implement malloc_usable_size()) created
Blender requires the following GNU POSIX extension, also provided by FreeBSD:
size_t malloc_usable_size(void *ptr);
http://linux.die.net/man/3/malloc_usable_size
This is a request for comments.
diff --git a/headers/posix/malloc.h b/headers/posix/malloc.h
index b36b17d..7754038 100644
--- a/headers/posix/malloc.h
+++ b/headers/posix/malloc.h
@@ -20,6 +20,10 @@ extern void free(void *pointer);
extern void *memalign(size_t alignment, size_t numBytes);
extern void *valloc(size_t numBytes);
+#ifdef _GNU_SOURCE
+size_t malloc_usable_size(void *ptr);
+#endif
+
#ifdef __cplusplus
}
#endif
diff --git a/src/system/libroot/posix/malloc/wrapper.cpp b/src/system/libroot/posix/malloc/wrapper.cpp
index 5b5e066..c83336a 100644
--- a/src/system/libroot/posix/malloc/wrapper.cpp
+++ b/src/system/libroot/posix/malloc/wrapper.cpp
@@ -490,6 +490,15 @@ realloc(void *ptr, size_t size)
}
+extern "C" size_t
+malloc_usable_size(void *ptr)
+{
+ if (ptr == NULL)
+ return 0;
+ return threadHeap::objectSize(ptr);
+}
+
+
// #pragma mark - BeOS specific extensions
