Page MenuHomeSchine - Phabricator

Starmade | ClassCastException when docking to a stick shop with reactor on board
Closed, FinishedPublic

Description

Game crashes when a ship with a reactor power block is docked with a shop.

Details

Commits
Restricted Diffusion Commit
Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.200.122
Category
Control Block System: Rails/Docking
First occurrence (version)
0.200.122
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce

method one:

place a reactor power block on a ship core and docker, dock the ship to a rail on a shop. Game will crash.

method two:

take ship core and docker, dock the ship to a rail on a shop. add a  reactor power block tot he docked ship. Game will crash.
Tester information (Internal use only)
[2017-10-16 00:41:57] ################# SERVER NO MORE WAITING FOR PLAYER WARP (ACC RECEIVED)
[2017-10-16 00:41:57] DEBUG INIT: RECORD ALL BLOCKS: false
[2017-10-16 00:41:58] [SERVER][RAIL] handleRailRequestConnectServer() removed physics for Ship[Construct-Pod-AndyP-001](11395); (ConnectRequest): [UNLOADED: ENTITY_SHIP_Construct-Pod-AndyP-001_3_2_2_3_2_2 (16, 14, 16) Rail Docker(663)] -> [UNLOADED: ENTITY_SHOP_1493765227270_2_2_2 (16, 24, 23) Rail Basic(662)]
[2017-10-16 00:41:58] [RAIL][UPDATE] Server(0) EXECUTING RAIL REQUEST ON: Ship[Construct-Pod-AndyP-001](11395): (ConnectRequest): [UNLOADED: ENTITY_SHIP_Construct-Pod-AndyP-001_3_2_2_3_2_2 (16, 14, 16) Rail Docker(663)] -> [null (16, 24, 23) Rail Basic(662)]
[2017-10-16 00:41:58] [RAIL][CONNECT] Server(0) Ship[Construct-Pod-AndyP-001](11395) DOCKING PROCEDURE SUCCESSFUL
[2017-10-16 00:41:58] [RAIL] On Docking, Speed: 0.0
[2017-10-16 00:41:58] [RAIL][UPDATE] Server(0) SUCCESSFULLY EXECUTED RAIL REQUEST ON: Ship[Construct-Pod-AndyP-001](11395): (ConnectRequest): [Ship[Construct-Pod-AndyP-001](11395) (16, 14, 16) Rail Docker(663)] -> [Ship[Construct-Pod-AndyP-001](11395) (16, 24, 23) Rail Basic(662)]; (was from load: false; Still to load on mothership: 0)
[2017-10-16 00:41:58] RECALC EFFECTS: ZERO EFFECTS
[2017-10-16 00:41:58] [RAIL] Server(0) RECREATING RAIL FROM ROOT: Shop(12254)
[2017-10-16 00:41:58] [RAIL] Server(0) recreateRootObjectPhysics() added physics for Shop(12254)
[2017-10-16 00:41:58] [RAIL] Server(0) RECREATING RAIL FROM ROOT DONE: Shop(12254); DOCKED AND EXECUTED: false; DOCKED OR DIRTY: false
[2017-10-16 00:41:58] java.lang.ClassCastException: obfuscated.ahW cannot be cast to obfuscated.akQ
[2017-10-16 00:41:58] 	at org.schema.game.common.controller.elements.power.reactor.PowerImplementation.getCurrentMaxHp(SourceFile:892)
[2017-10-16 00:41:58] 	at obfuscated.ahy.j(SourceFile:129)
[2017-10-16 00:41:58] 	at obfuscated.ahy.a(SourceFile:757)
[2017-10-16 00:41:58] 	at obfuscated.ahy.g(SourceFile:199)
[2017-10-16 00:41:58] 	at obfuscated.ahy.a(SourceFile:496)
[2017-10-16 00:41:58] 	at obfuscated.ahn.updateLocal(SourceFile:3014)
[2017-10-16 00:41:58] 	at obfuscated.ahF.updateLocal(SourceFile:407)
[2017-10-16 00:41:58] 	at org.schema.game.common.controller.EditableSendableSegmentController.updateLocal(SourceFile:1107)
[2017-10-16 00:41:58] 	at obfuscated.ahO.updateLocal(SourceFile:482)
[2017-10-16 00:41:58] 	at org.schema.game.server.controller.GameServerController.update(SourceFile:1364)
[2017-10-16 00:41:58] 	at org.schema.schine.network.server.ServerController.run(SourceFile:275)
[2017-10-16 00:41:58] 	at java.lang.Thread.run(Thread.java:745)
[2017-10-16 00:41:58] [SERVER] Exception catched 
[2017-10-16 00:41:58] [SEND][SERVERMESSAGE] [SERVERMSG (type 3): [439, ClassCastException]] to RegisteredClient: Sharkskin43 (28) [Sharkskin43]connected: true
[2017-10-16 00:41:58] [SEND][SERVERMESSAGE] [SERVERMSG (type 3): [439, ClassCastException]] to RegisteredClient: ua2hk (33) [ua2hk]connected: true
[2017-10-16 00:41:58] [SEND][SERVERMESSAGE] [SERVERMSG (type 3): [439, ClassCastException]] to RegisteredClient: AndyP (34) [AndyP]connected: true
[2017-10-16 00:41:58] java.lang.ClassCastException: obfuscated.ahW cannot be cast to obfuscated.akQ
[2017-10-16 00:41:58] 	at org.schema.game.common.controller.elements.power.reactor.PowerImplementation.getCurrentMaxHp(SourceFile:892)
[2017-10-16 00:41:58] 	at obfuscated.ahy.j(SourceFile:129)
[2017-10-16 00:41:58] 	at obfuscated.ahy.a(SourceFile:757)
[2017-10-16 00:41:58] 	at obfuscated.ahy.g(SourceFile:199)
[2017-10-16 00:41:58] 	at obfuscated.ahy.a(SourceFile:496)
[2017-10-16 00:41:58] 	at obfuscated.ahn.updateLocal(SourceFile:3014)
[2017-10-16 00:41:58] 	at obfuscated.ahF.updateLocal(SourceFile:407)
[2017-10-16 00:41:58] 	at org.schema.game.common.controller.EditableSendableSegmentController.updateLocal(SourceFile:1107)
[2017-10-16 00:41:58] 	at obfuscated.ahO.updateLocal(SourceFile:482)
[2017-10-16 00:41:58] 	at org.schema.game.server.controller.GameServerController.update(SourceFile:1364)
[2017-10-16 00:41:58] 	at org.schema.schine.network.server.ServerController.run(SourceFile:275)
[2017-10-16 00:41:58] 	at java.lang.Thread.run(Thread.java:745)
[2017-10-16 00:41:58] [SERVER] Exception catched

Event Timeline

Akron created this task.Oct 15 2017, 6:13 PM
AndyP shifted this object from the S1 Public space to the S3 Starmade space.Oct 15 2017, 10:43 PM
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP edited Tester information (Internal use only). (Show Details)
AndyP changed Affected Gamemode(s) from Singleplayer to Single and Multi.
AndyP edited Serverconfig (server.cfg). (Show Details)
AndyP edited Clientconfig (settings.cfg). (Show Details)
AndyP moved this task from New / Unconfirmed to Confirmed on the Issue Navigation board.
AndyP renamed this task from Game Crash to ClassCastException when docking to a stick shop with reactor on board.
AndyP changed the task status from Open to In Queue.
AndyP claimed this task.
AndyP raised the priority of this task from Normal to Pre-Release Quality Assurance.

-Confirmed-

Forwarding.

Restricted Application edited projects, added Game Development, CBS: Rails; removed Issue Navigation. · View Herald TranscriptOct 15 2017, 10:45 PM
Valck added a subscriber: Valck.Oct 17 2017, 7:57 AM

My apologies, I just accidentally confirmed independently the error does in fact exist.
Went on play.star-made.org, found a shop, docked as I always do before logging out... there may now be a cluster of sectors that are inaccessible.

schema added a commit: Restricted Diffusion Commit.Oct 31 2017, 12:16 PM
schema changed the task status from In Queue to Resolved by committing Restricted Diffusion Commit.
Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptOct 31 2017, 12:16 PM
lancake added a subscriber: AndyP.
lancake closed this task as Closed.
lancake claimed this task.

-QA Testing-

Works fine now, T2663 is fixed too (although the build is not uploaded yet).

Restricted Application removed a project: Quality Assurance. · View Herald TranscriptOct 31 2017, 12:52 PM
Restricted Application removed a subscriber: AndyP. · View Herald Transcript