You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v1.2.6: Fix memory leak, jar detection & startup scripts crash
- Search libraries/ with priority scoring: correct forge/neoforge path
gets highest priority, then filename match, then any non-installer jar.
Fixes picking random libraries (e.g. lz4-java) instead of server jar.
- Cap binary read buffer at 1MB to prevent unbounded growth
- Close pipes only if reader threads are still alive (zombie prevention)
- Clean up active_handlers on server delete
- Evict oldest entries from world_size_cache
- Use full jar path instead of basename
- Use bytearray for buffer to reduce fragmentation
- Skip run.sh/run.bat scripts (fixes readline crash on Gentoo/AppImage)
- **Fixed massive memory leak in `api_server`** — The binary read buffer in log reader threads could grow unboundedly when output had no newlines. Now capped at 1MB and force-flushed.
7
+
- **Fixed zombie reader threads** — Pipes are now closed before joining threads, preventing stuck daemon threads from holding references to old `ServerHandler` instances and their log history.
8
+
- **Fixed `active_handlers` leak** — Deleting a server now properly removes its handler from memory.
9
+
- **Fixed `world_size_cache` unbounded growth** — Cache now evicts oldest entries when exceeding 100 items.
10
+
- **Reduced memory fragmentation** — Changed `bytes +=` concatenation to `bytearray.extend()` in log reader.
11
+
12
+
### FIXED:
13
+
- **Startup scripts (run.sh/run.bat) no longer executed** — The app now uses direct JAR-based startup instead of running `run.sh`/`run.bat` scripts. Fixes `undefined symbol: rl_macro_display_hook` crash on Gentoo Linux / AppImage environments (Issue #11)
4
14
5
15
### FIXED:
6
16
- **Startup scripts (run.sh/run.bat) no longer executed** — The app now uses direct JAR-based startup instead of running `run.sh`/`run.bat` scripts. Fixes `undefined symbol: rl_macro_display_hook` crash on Gentoo Linux / AppImage environments (Issue #11)
0 commit comments