Page MenuHomeSchine - Phabricator

Starmade | class cast exception when firing lock on missile while docked to a shop
Closed, FinishedPublic

Description

Firing a docked missile causes class cast exception and can crash the client.

Blueprint to cause it:

Original Reporter: Support Ticket 2831

Details

Commits
Restricted Diffusion Commit
Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.197.51
Category
Control Block System: Weapons
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce
  1. Set up a ship with missiles as a weapon with beam module effects to make it lock on (may work with other weapons but this way works to replicate it)
  2. Add a docking module and dock it to a shop (spawn shop works).
  3. Try to shoot the weapon and it crashes.
Tester information (Internal use only)
[2016-04-12 19:19:12] [INIT][CLIENT][SHADER] Loading Shader: data//shader/skin/skin-tex.vert.glsl; data//shader/skin/skin-tex.frag.glsl
[2016-04-12 19:19:12] DRAWING DEBUG: 5; ; 0; 0; 5; 
[2016-04-12 19:19:12] [SINGLE_BLOCK_DRAWER] CHECKING FOR ERROR
[2016-04-12 19:19:14] [CLIENT] SWITCHING TO USING SHIP CAMERA (last cam: obfuscated.hS@6b903fae); DOCKED: false; RAIL: true
[2016-04-12 19:19:14] NEW LOOKING ALGO 0 / 5; null / Shop(3)
[2016-04-12 19:19:15] java.lang.ClassCastException: obfuscated.SF cannot be cast to obfuscated.UC
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.ShipManagerContainer.onAction(SourceFile:625)
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.UsableElementManager.handleResponse(SourceFile:378)
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.missile.MissileElementManager.doShot(SourceFile:123)
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.missile.MissileElementManager.handle(SourceFile:443)
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.ManagerContainer.handle(SourceFile:703)
[2016-04-12 19:19:15] 	at org.schema.game.common.controller.elements.ShipManagerContainer.handle(SourceFile:526)
[2016-04-12 19:19:15] 	at obfuscated.SA.a(SourceFile:808)
[2016-04-12 19:19:15] 	at org.schema.game.common.data.player.ControllerState.handleClientControllerStateFor(SourceFile:158)
[2016-04-12 19:19:15] 	at org.schema.game.common.data.player.ControllerState.update(SourceFile:616)
[2016-04-12 19:19:15] 	at org.schema.game.common.data.player.PlayerState.updateLocal(SourceFile:1503)
[2016-04-12 19:19:15] 	at obfuscated.C.a(SourceFile:3180)
[2016-04-12 19:19:15] 	at obfuscated.C.update(SourceFile:1209)
[2016-04-12 19:19:15] 	at obfuscated.avo.a(SourceFile:1176)
[2016-04-12 19:19:15] 	at obfuscated.avo.a(SourceFile:1167)
[2016-04-12 19:19:15] 	at obfuscated.C.h(SourceFile:2846)
[2016-04-12 19:19:15] 	at obfuscated.QJ.run(SourceFile:92)
[2016-04-12 19:19:15] 	at java.lang.Thread.run(Thread.java:745)
[2016-04-12 19:19:15] [GLFRAME] THROWN: class java.lang.RuntimeException Now Printing StackTrace
[2016-04-12 19:19:15] java.lang.RuntimeException: java.lang.ClassCastException: obfuscated.SF cannot be cast to obfuscated.UC
[2016-04-12 19:19:15] 	at org.schema.game.common.data.player.PlayerState.updateLocal(SourceFile:1513)
[2016-04-12 19:19:15] 	at obfuscated.C.a(SourceFile:3180)
[2016-04-12 19:19:15] 	at obfuscated.C.update(SourceFile:1209)
[2016-04-12 19:19:15] 	at obfuscated.avo.a(SourceFile:1176)
[2016-04-12 19:19:15] 	at obfuscated.avo.a(SourceFile:1167)
[2016-04-12 19:19:15] 	at obfuscated.C.h(SourceFile:2846)
[2016-04-12 19:19:15] 	at obfuscated.QJ.run(SourceFile:92)
[2016-04-12 19:19:15] 	at java.lang.Thread.run(Thread.java:745)

Event Timeline

AndyP updated the task description. (Show Details)Apr 9 2016, 11:59 AM
AndyP shifted this object from the S1 Public space to the S3 Starmade space.
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP changed Category from none/unspecified to Control Block System: Weapons.
AndyP edited Serverconfig (server.cfg). (Show Details)
AndyP edited Clientconfig (settings.cfg). (Show Details)
AndyP changed Affected Gamemode(s) from none/unspecified to Single and Multi.
AndyP changed Reproducible from uncertain to Yes.
AndyP set Last tested (version) to 0.197.36.
AndyP edited Steps to reproduce. (Show Details)
AndyP added a subscriber: AndyP.
AndyP created this task.
AndyP claimed this task.
AndyP raised the priority of this task from to Urgent.
Restricted Application added a project: Issue Navigation. · View Herald TranscriptApr 9 2016, 11:59 AM
AndyP set Task Type to Bug.
AndyP set OS-Specific to No.
AndyP set Hardware-Specific to No.
AndyP set Video Card Vendor to uncertain.
AndyP changed the task status from Open to In Queue (Game).
Restricted Application edited projects, added Starmade, Game Development; removed Issue Navigation. · View Herald TranscriptApr 9 2016, 11:59 AM
AndyP edited Tester information (Internal use only). (Show Details)Apr 12 2016, 5:20 PM
schema added a commit: Restricted Diffusion Commit.Apr 24 2016, 5:19 PM
schema changed the task status from In Queue (Game) to Resolved by committing Restricted Diffusion Commit.
Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptApr 24 2016, 5:19 PM
lancake added a subscriber: lancake.
lancake renamed this task from class cast exception when firing lock on missile while docked to class cast exception when firing lock on missile while docked to a shop.
lancake closed this task as Closed.

-QA Testing-

Fix confirmed.

Restricted Application removed a project: Quality Assurance. · View Herald TranscriptApr 24 2016, 5:59 PM
lancake changed Last tested (version) from 0.197.36 to 0.197.51.Apr 24 2016, 5:59 PM
AndyP removed a subscriber: AndyP.Dec 13 2016, 8:35 PM
Restricted Application added a project: CBS: Weapons. · View Herald TranscriptMar 10 2017, 6:14 PM