Page MenuHomeSchine - Phabricator

Starmade | Launch shootout rail NaN
Closed, DuplicatePublic

Description

Watching Drone Wars, a particular blue print creates a lot of NaN errors when you launch it might demonstrate the issue really well.

After launch my game crashed.

Also found here: https://starmadedock.net/content/dwr_gregolegomonkey_prates-drone-rack.5369/

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Last tested (version)
0.199.226
Category
Control Block System: Rails/Docking
First occurrence (version)
0.199.152
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
User/Reporter/Contact
Username on Registry
nightrune
Steps to reproduce

see tester information

Tester information (Internal use only)

Docking something to this basic rail should results in a NaN error.
A single shoot out rail that changes the plane a rail is moving on will always cause this (can only be 1 long, it has to undock immediately).

[2016-09-23 00:11:22] java.lang.IllegalStateException: Exception: NaN position for Ship[RAIL_DOCK_1474582267712](150); PObject: {RigBExOrig@1110204336([CCS|SER Ship[RAIL_DOCK_1474582267712](150)])}
[2016-09-23 00:11:22] 	at org.schema.game.common.data.world.SimpleTransformableSendableObject.updateLocal(SourceFile:1183)
[2016-09-23 00:11:22] 	at obfuscated.Wm.updateLocal(SourceFile:2546)
[2016-09-23 00:11:22] 	at obfuscated.WB.updateLocal(SourceFile:389)
[2016-09-23 00:11:22] 	at org.schema.game.common.controller.EditableSendableSegmentController.updateLocal(SourceFile:1095)
[2016-09-23 00:11:22] 	at obfuscated.WJ.updateLocal(SourceFile:474)
[2016-09-23 00:11:22] 	at org.schema.game.server.controller.GameServerController.update(SourceFile:1355)
[2016-09-23 00:11:22] 	at org.schema.schine.network.server.ServerController.run(SourceFile:273)
[2016-09-23 00:11:22] 	at java.lang.Thread.run(Unknown Source)

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)

`lines=10

<replace this line with the file content>

Event Timeline

lancake added a subscriber: lancake.
lancake claimed this task.

-Validated-

Could be a duplicate of T1422 but we'll see.

lancake shifted this object from the S1 Public space to the S3 Starmade space.Aug 14 2016, 11:11 AM
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 Last tested (version) from v0.199.152 to 0.199.152.
lancake changed First occurrence (version) from v0.199.152 to 0.199.152.
lancake renamed this task from Launch Rail NaN to Launch shootout rail NaN.
lancake triaged this task as Urgent priority.
Restricted Application added a subscriber: AndyP. · View Herald TranscriptAug 14 2016, 11:11 AM

-feedback-

Forgot to comment but can't reproduce this, the blueprint appears fine to me. Launches without a problem and looking at the rails themselves, I have no idea how that would cause this.

It's not a duplicate of T1422 at least.

Can you still reproduce this? Anything in specific you have to do besides spawning in the blueprint and launching the ships?

This bug can be reproduced by the following. All rails will be pointing up(the y) for this example and in the same x-z facing unless stated otherwise.

Have a basic rail with your docked entity on it. Place a downward pointing(in the y) green rail so movement is stopped of the entity. Use the standard activation method(button or activation block) to replace the green rail with a red shootout rail in the same orientation as the basic rail.

Trigger the button and you'll get the nan every time.

Workarounds are adding an extra green rail inbetween the basic rail and the toggling green/red rail

I see, only happens if you want to undock immediately after a dimension change. Thanks for the feedback!

lancake edited Steps to reproduce. (Show Details)Sep 22 2016, 10:17 PM
lancake edited Tester information (Internal use only). (Show Details)
lancake changed Last tested (version) from 0.199.152 to 0.199.226.
lancake changed the task status from Open to In Queue (Game).
lancake lowered the priority of this task from Urgent to High.
Restricted Application edited projects, added Game Development; removed Issue Navigation. · View Herald TranscriptSep 22 2016, 10:17 PM
lancake edited Tester information (Internal use only). (Show Details)Sep 22 2016, 10:17 PM
lancake moved this task from Unclassed to Issue affecting current release on the Starmade board.

Not sure if this is related but I'd had an issue before where launching a ship off a rail with shootout turned caused the ship to glitch into a zone where there were no stars and all around is just solid grey background.

Would look at the distances from anything and it looked like it was NaN, pretty much fixed mostly reconnecting to the session though, although you might be a few km away.

Not sure if this is related but I'd had an issue before where launching a ship off a rail with shootout turned caused the ship to glitch into a zone where there were no stars and all around is just solid grey background.
Would look at the distances from anything and it looked like it was NaN, pretty much fixed mostly reconnecting to the session though, although you might be a few km away.

Yes, Shoot out rails will put you into NaN-space if you are on the entity If not crashing you outright. This can occur when your shootout rails "point" into eachother, or if there are multiple change in direction on the rail If I recall correctly

schema added a subscriber: schema.Dec 2 2016, 2:46 AM
schema changed the task status from In Queue (Game) to Resolved.

Should be fixed but needs validation

Restricted Application edited projects, added Quality Assurance; removed Game Development. · View Herald TranscriptDec 2 2016, 2:46 AM

Hm not fixed, example blueprint that has it (to check it out later), seems it can still happen if you replace the rails while they're moving on it.

Restricted Application added a project: CBS: Rails. · View Herald TranscriptMar 10 2017, 6:09 PM
AndyP moved this task from Backlog / Unclassed to Alpha on the CBS: Rails board.Mar 11 2017, 9:25 PM
AndyP closed this task as a duplicate of T1422: NaN illegal comparison with shootout rail.
Restricted Application removed a project: Quality Assurance. · View Herald TranscriptMar 11 2017, 9:26 PM
Restricted Application removed a subscriber: AndyP. · View Herald Transcript