Fix server crashes: tcmalloc and workshop collection issues
- Add automatic tcmalloc disable in start scripts to prevent 'large alloc' segfaults - Add warnings and documentation about workshop COLLECTION vs addon IDs - Expand troubleshooting section with solutions for common crashes - Document that -authkey deprecation warning can be safely ignored Fixes: - tcmalloc: large alloc XXXXXXX bytes == (nil) followed by Segmentation fault - Item is not a collection! error when using addon ID instead of collection ID - Missing 32-bit libraries warning with installation instructions
This commit is contained in:
@@ -57,9 +57,13 @@ else
|
||||
fi
|
||||
|
||||
# Add workshop collection if provided
|
||||
# NOTE: Make sure WORKSHOP_COLLECTION is a COLLECTION ID, not an individual item ID!
|
||||
# You can verify at: https://steamcommunity.com/sharedfiles/filedetails/?id=YOUR_ID
|
||||
# If it says "Collection" it's valid. If it says "Addon" it will fail with "Item is not a collection!"
|
||||
if [[ -n "$WORKSHOP_COLLECTION" ]]; then
|
||||
ARGS="$ARGS +host_workshop_collection $WORKSHOP_COLLECTION"
|
||||
echo -e "${BLUE}[INFO]${NC} Workshop collection: $WORKSHOP_COLLECTION"
|
||||
echo -e "${YELLOW}[WARNING]${NC} Ensure this is a Collection ID, not an individual addon ID!"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
@@ -70,6 +74,13 @@ echo " • Port: $PORT"
|
||||
echo " • Gamemode: $GAMEMODE"
|
||||
echo ""
|
||||
|
||||
# Disable tcmalloc which causes segfaults with large memory allocations
|
||||
# The error "tcmalloc: large alloc XXXXXXX bytes == (nil)" indicates memory allocation failure
|
||||
if [[ -f "$SERVER_DIR/bin/libtcmalloc_minimal.so.4" ]]; then
|
||||
echo -e "${BLUE}[INFO]${NC} Disabling tcmalloc to prevent memory allocation crashes..."
|
||||
mv "$SERVER_DIR/bin/libtcmalloc_minimal.so.4" "$SERVER_DIR/bin/libtcmalloc_minimal.so.4.disabled" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}Starting server...${NC}"
|
||||
|
||||
# Start the server
|
||||
|
||||
Reference in New Issue
Block a user