Page MenuHomeSchine - Phabricator

Starmade | nullpointerException crash when selecting thruster radial menu
Closed, FinishedPublic

Description

When you're piloting a vessel and switch to build mode, if you use the Radial Menu to select the Ship option, you get a consistent game crash with a null pointer exception. I first encountered this when working on a ship that I had created in a single-player world prior to the 0.199.234 update. I was unable to reproduce this on a ship that was newly created.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.199.234
Category
Engine
First occurrence (version)
0.199.234
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Video Card Model
AMD Radeon HD 8570D
User/Reporter/Contact
URL to Starmadedock thread
n/a
Username on Registry
(Does not differ)
Username/Profile on Steam
Asvarduil
URL to Steam thread
http://steamcommunity.com/games/244770/announcements/detail/586981663618729877
Steps to reproduce
  1. Create a ship core and get inside it.
  2. Hold tab to open the radial menu, go to the ship sub menu
  3. hover mouse over thruster tile.
  4. Release the tab key.

-> crash

You don't crash when you left click that tile, so only happens with releasing tab (and only for this menu).

Tester information (Internal use only)

Logs:

Stacktrace:

[2016-10-04 18:58:00] java.lang.NullPointerException
[2016-10-04 18:58:00] 	at obfuscated.LY.update(SourceFile:66)
[2016-10-04 18:58:00] 	at obfuscated.cj.update(SourceFile:43)
[2016-10-04 18:58:00] 	at obfuscated.eV.a(SourceFile:88)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.dr.a(SourceFile:375)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.dh.a(SourceFile:327)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.cG.a(SourceFile:273)
[2016-10-04 18:58:00] 	at obfuscated.F.update(SourceFile:1389)
[2016-10-04 18:58:00] 	at obfuscated.aAC.a(SourceFile:709)
[2016-10-04 18:58:00] 	at obfuscated.aAI.b(SourceFile:648)
[2016-10-04 18:58:00] 	at obfuscated.R.e(SourceFile:950)
[2016-10-04 18:58:00] 	at org.schema.game.common.Starter.startMainMenu(SourceFile:1420)
[2016-10-04 18:58:00] 	at org.schema.game.common.Starter.main(SourceFile:967)
Detected video (Graphicsinfo.txt)

Running on thread: main
Adapter: aticfx64
Driver Version: 8.17.10.1404
Vendor: ATI Technologies Inc.
OpenGL Version: 4.5.13399 Compatibility Profile Context 15.201.1151.1008
Renderer: AMD Radeon HD 8570D
GLSL Ver: 4.40

Serverconfig (server.cfg)

N/A

Clientconfig (settings.cfg)
C_USE_NEW_PLAYER_MODEL_ = true
CONTROL_HELP = false //Display help for controls
C_MOUSE_BUTTON_SWITCH = false //Switch build/remove mouse buttons
G_RESOLUTION = 1366 x 768 //Resolution
G_FULLSCREEN = true //Fullscreen
G_WINDOWED_BORDERLESS = false //Borderless windowed mode
G_TEXTURE_PACK = Default //Texture Pack
G_TEXTURE_PACK_RESOLUTION = 128 //Texture Quality (Resolution)
G_VSYNCH = false //Vert-Synch
G_MULTI_SAMPLE_TARGET = 0 //Antialiasing (Samples)
G_MULTI_SAMPLE = 0
G_GAMMA = 1.2 //Gamma (Needs Frambuffer)
G_FOV = 80.0 //Field of View
G_MAX_SEGMENTSDRAWN = 1100 //Amount of Chunks possibly drawn (view distance)
G_NORMAL_MAPPING = true //Enable Normal mapping
G_SHADOWS = false
G_SHADOW_QUALITY = BAREBONE
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 = C:\Program Files (x86)\Steam\SteamApps\common\StarMade\StarMade\client-skins\Asvarduil\Ironman Skin.smskin //Path to player skin. Remove to Use default
D_LIFETIME_NORM = 30 //Lifetime (secs) of debris (0 to turn off)
S_SOUND_SYS_ENABLED = true
S_SOUND_ENABLED = true //Sound
S_SOUND_VOLUME_GLOBAL = 4 //Sound Volume
USE_OPEN_AL_SOUND = true //OpenAL (Off fixes stutter, but silent videos. restart needed. working on fix)
N_TRANSMIT_RAW_DEBUG_POSITIONS = false
C_SELECTED_JOYSTICK = 0
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 = 8
G_DRAW_FOG = false
G_DRAW_BEAMS = true //Draw beams
G_DRAW_EXHAUST_PLUMES = true //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 = true //Draw space dust particles
G_DRAW_MOUSE_COLLISION = false
G_ATMOSPHERE_SHADER = normal
F_FRAME_BUFFER = true //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_MAT_RADIUS_ADD_0 = 0.0
G_SHADOW_SPLIT_MAT_RADIUS_ADD_1 = 10.0
G_SHADOW_SPLIT_MAT_RADIUS_ADD_2 = 10.0
G_SHADOW_SPLIT_MAT_RADIUS_ADD_3 = 3.0
G_SHADOW_SPLIT_ORTHO_MAT_FAR_ADDED_0 = 0.0
G_SHADOW_SPLIT_ORTHO_MAT_FAR_ADDED_1 = 100.0
G_SHADOW_SPLIT_ORTHO_MAT_FAR_ADDED_2 = 50.0
G_SHADOW_SPLIT_ORTHO_MAT_FAR_ADDED_3 = 150.0
G_SHADOW_SPLIT_ORTHO_NEAR_ADDED = -100.0
G_SHADOW_ULTRA_FAR_BOUNDS_ADDED_0 = -0.013
G_SHADOW_ULTRA_FAR_BOUNDS_ADDED_1 = -0.002
G_SHADOW_ULTRA_FAR_BOUNDS_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_BACKGROUND = true //Background Image
G_WATER_USE_MIPMAPS = false
E_NAVIGATION_FILTER = 877
G_DRAW_ENTITIES = true
G_FRUSTUM_CULLING = true
G_DRAW_EFFECTS = true
G_SHADER_RELOAD = false
G_FRAMERATE_FIXED = 120 //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 = Multi 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_DEBUG_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 = true //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 = true //AutoSelect Controllers
S_INFO_DRAW = NO_INFO //Tech Info
G_VBO_FLAG = STATIC
N_LAG_COMPENSATION = true
N_IGNORE_SAVED_UPLINK_CREDENTIALS_IN_SINGLEPLAYER = true
N_SERVERTIME_UPDATE_FREQUENCY = 10000
M_TEXTURE_PACK_CONFIG_TOOL = ./data/textures/block/Default/64/
G_MIPMAP_LEVEL_MAX = 3
M_MOUSE_SENSITIVITY = 0.5 //MoUse Sensitivity
G_HIT_INDICATION_SIZE = 1.0 //Size of hit indications
F_BLOOM = true //Bloom Effect
F_BLOOM_INTENSITY = 0.4 //Bloom Intensity
S_MOUSE_LOCK = true
G_DRAW_ADV_BUILDMODE_BLOCK_PREVIEW = true
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_BACKGROUND = false
G_DRAW_POPUPS = true
G_USE_VBO_MAP = false
G_DRAW_JUMP_OVERLAY = true
G_MAG_FILTER_LINEAR_BLOCKS = false //Use linear mag filter on Blocks (restart required)
BLOCK_TEXTURE_ANISOTROPY = true //Anisotropic block textures (restart required)
G_MAG_FILTER_LINEAR_GUI = false //Use linear mag filter on GUI (restart required)
G_MAX_BEAMS = 64 //MaxBeamsDrawn (restart required)
SEGMENT_REQUEST_BATCH = 64 //Size of Chunk request-queue
CLIENT_BUFFER_SIZE = 65536
ICON_BAKERY_SINGLE_RESOLUTION = 150
LIGHT_RAY_COUNT = 48 //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_COMPONENT_SHADER = false
A_FORCE_AUTHENTICATION_METHOD = -1
MIN_FFA = 2
B_UNDO_REDO_MAX = 30
G_DRAW_ANY_CONNECTIONS = true //Draw connections between logic blocks
G_DRAW_ALL_CONNECTIONS = false //Draw all connections (not only logic)
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 = true //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
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 = Asvarduil
ONLINE_PLAYER_NAME = Retrom_Gall
SERVERLIST_COMPATIBLE = true
SERVERLIST_RESPONSIVE = true
SERVERLIST_FAVORITES = false
SERVERLIST_CUSTOMS = false
CUBE_LIGHT_NORMALIZER_NEW_M = true
SERVERLIST_LAST_SERVER_USED = 
LAST_GAME = SP;Ship World II;4242;Asvarduil
PLAY_INTRO = true //Play Intro
SUBTITLES = true //Subtitles
TUTORIAL_BUTTON_BLINKING = true
TUTORIAL_PLAY_INTRO = false
TUTORIAL_WATCHED = introduction;
SHOW_32BIT_WARNING = true
USE_INTEGER_VERTICES = true
LOD_DISTANCE_IN_THRESHOLD = 80.0 //Non Block Render Distance (LoD)
AUTOSET_RESOLUTION = false
FIRST_START = false
USE_TGA_NORMAL_MAPS = true
PLUME_BLOOM = true
Java Version (32bit)

C:\WINDOWS\system32>java -d32 -version
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.

(I'm on an x64 PC)

Java Version (64bit)

C:\WINDOWS\system32>java -d64 -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Event Timeline

Asvarduil updated the task description. (Show Details)Sep 25 2016, 12:59 AM

Asvarduil updated the task description. (Show Details)Sep 25 2016, 1:03 AM
lancake added a subscriber: lancake.
lancake claimed this task.

-validated-

lancake shifted this object from the S1 Public space to the S3 Starmade space.Sep 25 2016, 3:49 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 changed Affected Gamemode(s) from Singleplayer to Single and Multi.
lancake edited Clientconfig (settings.cfg). (Show Details)
lancake triaged this task as High priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptSep 25 2016, 3:49 PM

I've had this and it was also with the ship menu, didn't post at first as I couldn't reliably reproduce it, had a couple of null pointer exits to menu but I could go back and do all sorts without it happening again.

Still can't reproduce with that provided blueprint. I'll leave it open for now till we encounter it. If you ever have this issue again, please provide us a log -> logstarmade.0.log in your logs folder, make sure to not start up the game again before you've shared that log or it will be the wrong one. Else it's logstarmade.1.log but better give them both to be sure.

I'm finding the ship design to be irrelevant and can trigger it with just a ship core.

Try these steps to reproduce, worked everytime for me.

  1. Create a ship core and get inside it.
  2. Hold tab to open the radial menu, direct your mouse to the Ship menu and click mouse1 to enter the ship menu.
  3. Before you do anything else, make sure your mouse pointer is hovering over and highlighting the thruster menu.
  4. Release the tab key.

That should be it, if you're in singleplayer, you'll need to restart the game or you'll get a RunTimeException trying to connect to any world.

Ah, that explains why I never had it. I always click the tile, not release tab when I'm hovering over it.
This crash only happens if you do the latter so yeah, good find and thanks for the feedback!

Logs:

Stacktrace:

[2016-10-04 18:58:00] java.lang.NullPointerException
[2016-10-04 18:58:00] 	at obfuscated.LY.update(SourceFile:66)
[2016-10-04 18:58:00] 	at obfuscated.cj.update(SourceFile:43)
[2016-10-04 18:58:00] 	at obfuscated.eV.a(SourceFile:88)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.dr.a(SourceFile:375)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.dh.a(SourceFile:327)
[2016-10-04 18:58:00] 	at obfuscated.cA.a(SourceFile:445)
[2016-10-04 18:58:00] 	at obfuscated.cG.a(SourceFile:273)
[2016-10-04 18:58:00] 	at obfuscated.F.update(SourceFile:1389)
[2016-10-04 18:58:00] 	at obfuscated.aAC.a(SourceFile:709)
[2016-10-04 18:58:00] 	at obfuscated.aAI.b(SourceFile:648)
[2016-10-04 18:58:00] 	at obfuscated.R.e(SourceFile:950)
[2016-10-04 18:58:00] 	at org.schema.game.common.Starter.startMainMenu(SourceFile:1420)
[2016-10-04 18:58:00] 	at org.schema.game.common.Starter.main(SourceFile:967)
lancake edited Steps to reproduce. (Show Details)Oct 4 2016, 5:04 PM
lancake edited Tester information (Internal use only). (Show Details)
lancake moved this task from Open / Validated to Confirmed on the Issue Navigation board.
lancake renamed this task from NullPointerException crash when Ship menu selected from Radial Menu to nullpointerException crash when selecting thruster radial menu.
lancake changed the task status from Open to In Queue (Game).
Restricted Application edited projects, added Game Development; removed Issue Navigation. · View Herald TranscriptOct 4 2016, 5:04 PM
schema changed the task status from In Queue (Game) to Resolved.Oct 7 2016, 4:13 PM
Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptOct 7 2016, 4:13 PM
lancake closed this task as Closed.
Restricted Application removed a project: Quality Assurance. · View Herald TranscriptFeb 28 2017, 11:44 PM
Restricted Application removed a subscriber: AndyP. · View Herald Transcript
Restricted Application added a project: Engine. · View Herald TranscriptMar 10 2017, 6:08 PM
AndyP moved this task from Unclassed to Archived on the Starmade board.Apr 28 2017, 8:40 AM