Page MenuHomeSchine - Phabricator

Starmade | (Mac) Game becomes unresponsive in background
Closed, RejectedPublic

Description

After I switch to another process and wait a few minutes, Starmade becomes unresponsive, and I am unable to do anything with it but force quit. I've found that it takes 2-3 minutes for it to becomes unresponsive, switching back before that window has not caused the issue.

I've attached the last changed log file, hopefully that will

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
none/unspecified
Reproducible
uncertain
Last tested (version)
version 0.198.222 - build 20160622_203509
Category
none/unspecified
First occurrence (version)
v0.198.131 - The Main Menu
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Video Card Model
NVIDIA GeForce GT 750M
Steps to reproduce

Enter game mode, spawn, command+tab to another process, wait 2-3 minutes, tab back to find process unresponsive.

Detected video (Graphicsinfo.txt)

Running on thread: main
Adapter: null
Driver Version: null
Vendor: NVIDIA Corporation
OpenGL Version: 2.1 NVIDIA-10.4.2 310.41.35f01
Renderer: NVIDIA GeForce GT 750M OpenGL Engine
GLSL Ver: 1.20

Clientconfig (settings.cfg)
C_USE_NEW_PLAYER_MODEL_ = true
CONTROL_HELP = false //Display help for controls
C_MOUSE_BUTTOM_SWITCH = false //Switch build/remove mouse buttons
G_RESOLUTION = 1024 x 768 //Resolution
G_FULLSCREEN = false //Fullscreen
G_WINDOWED_BORDERLESS = true //Borderless windowed mode
G_TEXTURE_PACK = Default //Texture Pack
G_TEXTURE_PACK_RESOLUTION = 64 //Texture Quality (Resolution)
G_VSYNCH = false //Vert-Synch
G_MULTI_SAMPLE_TARGET = 0 //Antialiasing (Samples)
G_MULTI_SAMPLE = 0
G_FOV = 85.0 //Field of View
G_MAX_SEGEMENTSDRAWN = 1000 //Max segments Drawn at once (view distance)
G_NORMAL_MAPPING = false //Enable Normal mapping
G_SHADOWS = false
G_SHADOW_QUALITY = SIMPLE
G_SHADOWS_TARGET = false //Enable Shadows
G_SHADOW_QUALITY_TARGET = BEST //Set Shadow Quality
G_PROD_BG = true //Procedural Background (fbo req)
G_PROD_BG_QUALITY = 1024 //Procedural BG quality
G_DRAW_SURROUNDING_GALAXIES_IN_MAP = false //Draw other galaxies in map (slow)
HIT_INDICATION_NUMBERS_LIFETIME = 0.4 //Time, hit numbers remain (sec)
PLAYER_SKIN_CREATE =  //Create Player Skin
PLAYER_SKIN = /Users/g/Downloads/ZK Skin.smskin //Path to player skin. Remove to Use default
D_LIFETIME_NORM = 30 //Lifetime (secs) of debris (0 to turn off)
S_SOUND_SYSTEM_ENABLED = true
S_SOUND_ENABLED = false //Sound
S_SOUND_VOLUME_GLOBAL = 0 //Sound Volume
N_TRANSMIT_RAW_DEBUG_POSITIONS = false
C_SELECTED_JOYSTICK = -1
ICON_BAKERY_BLOCKSTYLE_ROTATE_DEG = -90.0
MOUSE_WHEEL_SENSIBILITY = 7.0E-4
BUILD_MODE_SHIFT_SPEED = 25.0
ORBITAL_CAM_SPEED = 0.5
G_DAMAGE_DISPLAY = 600 //Damage display distance
G_STAR_COUNT = 512 //Star Count
G_VBO_BULKMODE_SIZE = 4
G_DRAW_FOG = false
G_DRAW_BEAMS = false //Draw beams
G_DRAW_EXHAUST_PLUMS = false //Draw thruster plums
D_INFO_CONTROLMANAGER = false
D_INFO_SHADER = true
T_ENABLE_TEXTURE_BAKER = false
D_INFO_DRAW_TIMES = false
D_INFO_DRAW_SPACE_PARTICLE = false
G_SPACE_PARTICLE = false //Draw space dust particles
G_DRAW_MOUSE_COLLISION = false
G_ATMOSPHERE_SHADER = normal
F_FRAME_BUFFER_USE = false //Use Framebuffer
G_SHADOW_NEAR_DIST = 1.0
G_SHADOW_FAR_DIST = 75.0
G_SHADOW_DEPTH_RANGE_NEAR = 0.0
G_SHADOW_DEPTH_RANGE_FAR = 1.0
G_SHADOW_SPLIT_FAR_0 = 0.325
G_SHADOW_SPLIT_NEAR_1 = 0.325
G_SHADOW_SPLIT_FAR_1 = 0.325
G_SHADOW_SPLIT_NEAR_2 = 0.325
G_SHADOW_SPLIT_MULT = 1.005
G_SHADOW_CROP_MATRIX_MAX = -1000.0
G_SHADOW_CROP_MATRIX_MIN = 1000.0
G_SHADOW_EXTRA_BACKUP = 20.0
G_SHADOW_NEAR_CLIP = 0.05
G_SHADOW_SPLIT_RADIUS_ADD_0 = 0.0
G_SHADOW_SPLIT_RADIUS_ADD_1 = 10.0
G_SHADOW_SPLIT_RADIUS_ADD_2 = 0.0
G_SHADOW_SPLIT_RADIUS_ADD_3 = 0.0
G_SHADOW_SPLIT_ORTHO_FAR_ADDED_0 = 0.0
G_SHADOW_SPLIT_ORTHO_FAR_ADDED_1 = 100.0
G_SHADOW_SPLIT_ORTHO_FAR_ADDED_2 = 0.0
G_SHADOW_SPLIT_ORTHO_FAR_ADDED_3 = 0.0
G_SHADOW_SPLIT_ORTHO_NEAR_ADDED = -100.0
G_SHADOW_ULTRA_FAR_BOUND_ADDED_0 = -0.023
G_SHADOW_ULTRA_FAR_BOUND_ADDED_1 = -0.002
G_SHADOW_ULTRA_FAR_BOUND_ADDED_2 = -0.002
G_SHADOW_OTHER_QUALITY_FAR_BOUND_ADDED_0 = -0.023
G_SHADOW_OTHER_QUALITY_FAR_BOUND_ADDED_1 = -0.002
G_SHADOW_OTHER_QUALITY_FAR_BOUND_ADDED_2 = -0.0
G_SHADOW_FOV_ADDED_RAD = 0.2
G_SHADOW_DISPLAY_SHADOW_MAP = false
G_DRAW_SHIELDS = true //Shield Effect
G_DRAW_WATER = true
G_DRAW_BACKGOUND = true //Background Image
G_WATER_USER_MIPMAPS = false
E_NAVIGATION_FILTER = 613
G_DRAW_ENTITIES = true
G_FRUSTUM_CULLTING = true
G_DRAW_EFFECTS = true
G_SHADER_RELOAD = false
G_FRAMRATE_FIXED = -1 //Limit Framerate (30, 60, 120, 240, or -1 for unlimited),
G_SHADERS_ACTIVE = true
G_DEBUG_DRAW_GRID = false
G_DEBUG_DRAW_LINES = true
T_TERRAIN_DRAW = true
T_TERRAIN_WIREFRAME_DRAW = false
G_CULLING_ACTIVE = true
G_TEXTURE_ARRAYS = false
G_AUTO_NORMALIZATION = true
G_DRAW_BY_SIDES = true
G_WIREFRAMED = false
G_TEXTURE_COMPRESSION_BLOCKS = false
G_TEXTURE_ARRAY_COMPRESSION = true
G_TEXTURE_ARRAY_MIPMAP = true
G_TEXTURE_MIPMAP = true
G_SHADOWS_VSM = false
S_PAUSED = false
S_SETTINGS_SHOW = false
MINIMAP_MODE = SMALL //Radar (minimap) size
SECTOR_INDICATION_MODE = INDICATION_ONLY //Indicators for other sectors
S_KEY_ALLOW_DUPLICATES = true //Allow key assign duplicates
GIF_WIDTH = 640
GIF_HEIGHT = 640
GIF_FPS = 15
GIF_GUI = false
G_DEBRIS_THRESHOLD_MS = 4
S_INITIAL_SETTING = Single Player
S_GAME_MODE = Sandbox
G_BONE_ANIMATION = true
P_NT_DEBUG_ACTIVE = false
P_PHYSICS_DEBUG_ACTIVE_OCCLUSION = false
P_PHYSICS_DEBUG_ACTIVE = false
P_PHYSICS_DEBUG_MODE = 0
G_DEUBG_LINE_DRAWING_ACTIVATED = false
G_WINDOW_START_POSITION = center
G_DRAW_GUI_ACTIVE = true
G_DRAW_NO_OVERLAYS = false
G_PARTICLE_SORTING = true
P_PHYSICS_ACTIVATED = true
G_SMOKE_QUALITY = false
G_DRAW_STARS = false //Draw additional stars
G_DRAW_PASTE_PREVIEW = true //Draw preview for paste
G_USE_SPRITE_VBO = true
TUTORIAL_NEW = false //Tutorial enabled
G_AUTOSELECT_CONTROLLERS = false //AutoSelect Controllers
S_INFO_DRAW = FPS_AND_PING //Tech Info
G_VBO_FLAG = STATIC
N_LAG_COMPENSATION = true
N_IGNORE_SAVED_UPLINK_CREDENTIALS_IN_SINGLEPLAYER = true
N_SERVERTIME_UPDATE_FREQUENCE = 10000
M_TEXTURE_PACK_CONFIG_TOOL = ./data/textures/block/Default/64/
G_MIPMAP_LEVEL_MAX = 3
M_MOUSE_SENSITIVITY = 1.0 //MoUse Sensitivity
G_HIT_INDICATION_SIZE = 1.0 //Size of hit indications
F_BLOOM = false //Bloom Effect
F_BLOOM_INTENSITY = 0.5 //Bloom Intensity
S_MOUSE_LOCK = true
G_DRAW_ADV_BUILDMODE_BLOCK_PREVIEW = true
G_DRAW_ALL_CONNECTIONS = false
G_SHOW_PURE_NUMBERS_FOR_SHIELD_AND_POWER = false
S_FLIP_HOTBAR_MOUSEWHEEL_WITHOUT_CTRL = true //flip through hotbars on mouse wheel without control
S_ZOOM_MOUSEWHEEL = SLOTS //primary mouse wheel function
S_MOUSE_SHIP_INVERT = false //Invert MoUse-Y (Ship)
S_MOUSE_ALL_INVERT = false //Invert MoUse-Y (All)
S_USE_REGION_SIGNATURE_TEST = false
G_PREVIEW_TO_BUILD_BLOCK = true //Preview Block to build
S_EXIT_ON_ESC = false
G_USE_HIGH_QUALITY_ACKGROUND = false
G_DRAW_POPUPS = true
G_USE_VBO_MAP = true
G_DRAW_JUMP_OVERLAY = true
G_MAG_FILTER_LINEAR_BLOCKS = false //Use linear mag filter on Blocks (restart required)
G_MAG_FILTER_LINEAR_GUI = false //Use linear mag filter on GUI (restart required)
G_MAX_BEAMS = 1024 //MaxBeamsDrawn (restart required)
SEGMENT_REQUEST_BATCH = 32 //Size of Chunk request-queue
CLIENT_BUFFER_SIZE = 65536
ICON_BAKERY_SINGLE_RESOLUTION = 150
G_RAYTRACE_COUNT = 64 //Block light quality (impacts chunk refresh time, but not fps)
ICON_BAKERY_SINGLE_ICONS = false
G_MUST_CONFIRM_DETACHEMENT_AT_SPEED = 50.0 //Popup Detach Warning (% server speed, -1 off)
G_USE_SHADER4 = true
O_OCULUS_RENDERING = false
G_USE_VERTEX_LIGHTING_ONLY = true //Simple Lighting Quality (faster)
CLIENT_TRAFFIC_CLASS = true
G_DRAW_SELECTED_BLOCK_WOBBLE = true
G_USE_TWO_COMPENENT_SHADER = false
A_FORCE_AUTHENTICATION_METHOD = -1
MIN_FFA = 2
B_UNDO_REDO_MAX = 30
N_ARTIFICIAL_DELAY = 0
SEGMENT_PIECE_QUEUE_SINGLEPLAYER = 32767
G_MAX_MISSILE_TRAILS = 128 //Max Missile Trails (restart required)
G_USE_OCCLUSION_CULLING = false
C_AUTOASSIGN_WEAPON_SLOTS = false //Autoassign weapons on fire if bar empty
G_DRAW_NT_STATS_OVERLAY = false //Draw network statistics in hud
CLIENT_CUSTOM_TEXTURE_PATH = ./customBlockTextures
SECRET = none
USE_OPEN_AL_SOUND = false
LIMIT_FPS_UNFOCUS = true
GUI_USE_DISPLAY_LISTS = false
USE_GL_MULTI_DRAWARRAYS = true //MultiDraw Optimization (turn off on chunk Draw problems)
USE_GL_MULTI_DRAWARRAYS_INITIAL_SET = false
CHAT_CLOSE_ON_ENTER = true //Close chat on enter
A_FORCE_LOCAL_SAVE_ENABLED_IN_SINGLE_PLAYER = false
G_SHIP_INFO_ZOOM = 0
G_SINGLEPLAYER_CREATIVE_MODE = true //creative mode
G_DRAW_LAG_OBJECTS_IN_HUD = false //Draw lag statistics in hud
G_SHOW_SYMMETRY_PLANES = true //Show symmetry planes
LANGUAGE_PACK = english
LANGUAGE_PACK_ASSIGNED = true
DELETE_SEVER_DATABASE_ON_STARTUP = false
G_BASIC_SELECTION_BOX = false //Draw basic selection boxes
OFFLINE_PLAYER_NAME = 
ONLINE_PLAYER_NAME = Garland
SERVERLIST_COMPATIBLE = true
SERVERLIST_RESPONSIVE = true
SERVERLIST_FAVORITES = false
SERVERLIST_CUSTOMS = false
CUBE_LIGHT_NORMALIZER_NEW = true
SERVERLIST_LAST_SERVER_USED = 
LAST_GAME = MP;sm.lazygamerz.org;4242;Garland
PLAY_INTRO = false //Play Intro
TUTORIAL_BUTTON_BLINKING = true
TUTORIAL_PLAY_INTRO = false
TUTORIAL_WATCHED = fundamentals;
LOD_DISTANCE_IN_THRESHOLD = 80.0 //Non Block Render Distance (LoD)
Java Version (64bit)

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Event Timeline

Restricted Application added a project: Issue Navigation. · View Herald TranscriptJun 23 2016, 4:59 AM
lancake claimed this task.

-feedback-

First occurence is set to the main menu, does that mean that before that version, it was fine?
I don't see anything special in those logs but it might be a memory issue.

When alt tabbed, it doesn't clean up memory as often/thorough. I'm not sure if that's also the case for windowed mode.

Try minimizing starmade when using fullscreen mode and windowed mode (with borders). See if either option has the same result. Also try assigning more memory to Starmade and see if it lasts longer when minimized.

lancake shifted this object from the S1 Public space to the S3 Starmade space.Jun 23 2016, 11:11 PM
lancake changed the visibility from "Custom Policy" to "Public (No Login Required)".
lancake changed the edit policy from "Task Author" to "Starmade (Project)".
lancake triaged this task as High priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptJun 23 2016, 11:11 PM
Garland220 added a comment.EditedJun 24 2016, 12:45 AM

I never once experienced this issue before that patch, but I can't 100% guarantee that is where it started. I wasn't playing as much around that time. So perhaps I shouldn't have said that.

My current memory settings are:
Max: 4096 MB
Initial: 1024 MB
Early: 128 MB

I am playing in windowed mode, and I tried windowed mode without borders as well, it was no better. I cannot command+tab while in full screen mode at all, so I can't test that.

I just doubled all of the memory values above, and I didn't notice any difference in time required for the issue to manifest.

Is there any additional log or file I could provide to give more clues?

EDIT:

I have also tried deleting the game content through steam, and reinstalling, there was no change. Though I read another issue on here that said that doesn't actually clear out most of the files, so maybe I should try a full manual wipe.

Here are my computer specs:
OSX 10.10.5
MacBook Pro (Retina, 15-inch, Mid 2014)
Processor: 2.8 GHz Intel Core i7
Memory: 16 GB 1600 MHz DDR3
Video card: NVIDIA GeForce GT 750M 2048 MB

Garland220 added a comment.EditedJun 24 2016, 2:02 AM

Memory does not appear to be the problem. CPU usage is an unreal 200 - 250%. I also found that the game keeps going just fine while in the background. I had it displaying on half my screen, while I tabbed to a program on the other half. The game never visibly stuttered or anything, but I couldn't tab back, it was unresponsive, yet still playing.

This is from my activity monitor, the first number following the process name is the "% CPU"

This is from the memory tab, the first number after the process name is the memory usage, second is the compressed memory.

EDIT:

Actually, after further investigation it appears CPU usage is consistently that high, even when not in the background. So I'm not certain if that information is any use. This is a screenshot taken while still focused on the game:

lancake added a comment.EditedJun 24 2016, 3:58 PM

Your CPU has 4 core. 400% should be your max cpu usage. 250% or so would be a reasonable number for a game that's never minimized (it's windowed).

Doesn't seem like a CPU or memory issue then, can you share another log file after crashing this way? Maybe there's something new in it.

lancake edited Clientconfig (settings.cfg). (Show Details)Jun 24 2016, 3:58 PM

That's a good point on the CPU usage, I didn't think about it when I wrote that, thanks.

It never actually crashes, though. The application just becomes unresponsive. It appears to keep running. If I move windows to the side, I can see it still doing stuff, I just can't switch back to it. It never moves back to focus, so I always have to force quit.

AndyP added a comment.Jun 24 2016, 5:56 PM

Please try a fixed framerate.

the unlimited framerate may result in the game going out of sync to some extend. (Or build up a queue it cannot process fast enough)

Try 30FPS, and see if the result changes.

I just tried setting the frame cap to 30FPS, it didn't improve anything.

AndyP added a comment.Jun 24 2016, 7:51 PM

hm, thats odd.

Is there any other indicator you have what may cause this?

The log shows the game is running like normal, no high load, or alike that would point to a source.

Does it normalize again after like 30 seconds? or does it stay that way for an infinite time?

Garland220 added a comment.EditedJun 24 2016, 8:01 PM

I don't know about 'infinite', but I waited a couple minutes with it selected, and the program never came back into focus.

EDIT:
As for other indicators, that is all I have at the moment. I'm going to try playing with various settings and digging around some more, see if I can find some more clues - but this one has me completely baffled. I usually fix my own issues, but this one is pretty hard to nail down.

EDIT 2:
I am running this through steam on the mac, with steam overlays disabled -- not that it seems to matter, I think the overlay dies after the launcher closes.

Just a few minutes in, completely unresponsive:


but if I hide all other windows, I can still see the game working in the background, I just can't interact with it:

One thought is that I am on a laptop with a high-DPI display. I don't see how that would matter, and it was never a problem before, but might be worth mentioning. As a developer I know something it's that random bit of information that causes the "Oh yeah!" moment. I'll try to keep thinking of anything else that comes to mind. Please let me know if there is anything else I can test.

EDIT 3:
AH! Hey! I just noticed. Even though I have FPS capped at 30, in the bottom left corner it says FPS is 60. Could it be ignoring the cap? If so maybe the FPS cap is still the issue?

AndyP added a comment.Jun 28 2016, 8:38 AM

Oh, do you have vsync enabled?

(This would prevent the game from lowering the FPS and would force it to monitor refresh rate.)

Please make sure it is disabled.

vsync was not enabled. Still ignoring frame cap

Restricted Application added a project: Starmade. · View Herald TranscriptJun 29 2016, 1:24 AM

please upload your current settings.cfg and a logfile created with these settings.

maybe someone else with a similar Mac setup can take a look at it then.

Garland220 added a comment.EditedJul 6 2016, 12:33 AM

I've just tried totally deleting my game folder and all related data, then reinstalling everything, the issue still persists. Files are attached, I hope someone else has some idea


I haven't seen this issue since the launcher update, and it seems like no one else has this issue, so this ticket can be closed.

AndyP changed the task status from Open to Feedback.Feb 21 2017, 8:53 PM
Restricted Application added a project: Waiting on Author. · View Herald TranscriptFeb 21 2017, 8:53 PM
Restricted Application added a project: Waiting on Author. · View Herald TranscriptMar 10 2017, 5:44 PM
lancake closed this task as Rejected.Jun 8 2017, 10:55 AM
Restricted Application removed a subscriber: AndyP. · View Herald Transcript
AndyP moved this task from Unclassed to Archived on the Starmade board.Jul 20 2017, 10:49 PM