New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing vehicle crashes multiplayer game #399

Closed
ghost opened this Issue Aug 13, 2015 · 6 comments

Comments

Projects
None yet
5 participants
@ghost

ghost commented Aug 13, 2015

When I remove a vehicle from my user in multiplayer, even in LAN, it crashes the client software but not the server software. I know that this bug has been fixed in singleplayer but it hasn't been in multiplayer.

@Max98 Max98 added the bug label Aug 14, 2015

@Max98 Max98 added this to the Post-Nextstable milestone Aug 14, 2015

@vorot93

This comment has been minimized.

Show comment
Hide comment
@vorot93

vorot93 Aug 14, 2015

Contributor

Removing vehicles in multiplayer works for me. Could you please attach more info like a crash report?

Contributor

vorot93 commented Aug 14, 2015

Removing vehicles in multiplayer works for me. Could you please attach more info like a crash report?

@Michael10055

This comment has been minimized.

Show comment
Hide comment
@Michael10055

Michael10055 Aug 15, 2015

Contributor

** Edit by Hiradur: Not relevant for this issue, basically reiteration of #27 **

Removing vehicles has never worked in MP. Sometimes it'll look like you removed your vehicle, yet the server still thinks you have the vehicle loaded, eventually getting kicked for going over the vehicle limit set for that server.
RoR.log:

20:27:23:  ===== LOADING VEHICLE: 95bbUID-agoral.truck
20:27:23:  == Parsing vehicle file: 95bbUID-agoral.truck
20:27:23:  == Parsing done, report:

#FFFF00 WARNING #FFFFFF (Section wheels)
    Line (943): -102
    Message: Encountered node with illegal negative number: '-102', parsing as positive '102' for backwards compatibility. Please fix as soon as possible.
#FFFF00 WARNING #FFFFFF (Section wheels)
    Line (945): -98
    Message: Encountered node with illegal negative number: '-98', parsing as positive '98' for backwards compatibility. Please fix as soon as possible.



20:27:23:  == Validating vehicle: Bus RVI Agora L
20:27:23:  == Validating done OK
20:27:23:  == Spawning vehicle: Bus RVI Agora L
20:27:23:  == RigSpawner: WARNING (Keyword ~Unknown~) vehicle uses no GUID, skinning will be impossible
20:27:23: TOTAL VEHICLE MASS: 20835 kg
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-12
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-13
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-14
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-15
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-16
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-17
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-18
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-19
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-20
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-21
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-22
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-23
20:27:23: BEAM: memory stats following
20:27:23: BEAM: beam memory: 265600 B (1328 x 200 B) / 1000000
20:27:23: BEAM: node memory: 77220 B (297 x 260 B) / 260000
20:27:23: BEAM: shock memory: 684 B (9 x 76 B) / 380000
20:27:23: BEAM: prop memory: 2640 B (4 x 660 B) / 132000
20:27:23: BEAM: wheel memory: 1920 B (6 x 320 B) / 20480
20:27:23: BEAM: rigidifier memory: 0 B (0 x 36 B) / 3600
20:27:23: BEAM: flare memory: 952 B (14 x 68 B)
20:27:23: BEAM: truck memory used: 349016 B (340 kB)
20:27:23: BEAM: truck memory allocated: 2275600 B (2222 kB)
20:27:23: adding local stream: 6:13, type: 0
20:27:23:  ===== DONE LOADING VEHICLE
20:27:23: Rig loading profiler report:
    Beam::Beam()                 | init threads:    0.000329 sec
    Beam::Beam()                 | prepare loading: 0.000076 sec
    Beam::LoadTruck()            | open file:       0.001412 sec
    Beam::LoadTruck()            | create parser:   0.000062 sec
    Beam::LoadTruck()            | prepare parser:  0.000077 sec
    Beam::LoadTruck()            | run parser:      0.056990 sec
    Beam::LoadTruck()            | finalize parser: 0.057536 sec
    Beam::LoadTruck()            | post-parse:      0.000071 sec
    Beam::LoadTruck()            | setup validator: 0.000022 sec
    Beam::LoadTruck()            | run validator:   0.000005 sec
    Beam::LoadTruck()            | post-validation: 0.000013 sec
    Beam::LoadTruck()            | setup spawner:   0.000016 sec
    Beam::LoadTruck()            | add modules:     0.000000 sec
    Beam::LoadTruck()            | run spawner:     0.070762 sec
    Beam::LoadTruck()            | log spawner:     0.000276 sec
    Beam::LoadTruck()            | process fixes:   0.000081 sec
    Beam::LoadTruck()            | calc masses:     0.000125 sec
    Beam::LoadTruck()            | soundsources:    0.000254 sec
    Beam::LoadTruck()            | calc node graph: 0.000687 sec
    Beam::LoadTruck()            | bounding boxes:  0.000015 sec
    Beam::LoadTruck()            | groundmodel:     0.000292 sec
    Beam::LoadTruck()            | load dashboards: 0.003827 sec
    BeamFactory::createLocal()   | post-process:    0.001508 sec
    RigLoadingProfiler::Report() | compose report:  0.000066 sec
20:27:23: Client 2 could not load stream 13 with name '95bbUID-agoral.truck', result code: -1
20:27:23:  * received stream registration result: 2: 0
20:27:24: D3D9 : Loading 2D Texture, image name : 'rollmaskblink.dds' with 5 mip map levels
20:27:26: Texture: ign_v2-on.png: Loading 1 faces(PF_A8R8G8B8,40x40x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,40x40x1.

Since I host two RoR servers (xRoR Private / xRoR Any) Here is the server log:

|VERBO| Listener got a new connection
| INFO| Listener creating a new client...
| INFO| New client: Hotrod55 (en_US), using RoR 0.4.5.0-git, with token <removed>
|VERBO| Sending welcome message to uid 6, slotpos: 1
|VERBO| Sequencer: New client added
|VERBO| Listener awaiting connections
|VERBO| UID 6 is switching to FLOW
|VERBO| got message: type: 1012, source: 6:10, len: 8144
|VERBO|  * new stream registered: 6:10, type: 3, name: 'chat', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO| got message: type: 1009, source: 6:0, len: 22
|VERBO| got message: type: 1009, source: 6:0, len: 22
|VERBO| got message: type: 1012, source: 6:11, len: 8144
|VERBO|  * new stream registered: 6:11, type: 1, name: 'default', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO| got message: type: 1012, source: 6:12, len: 748
|VERBO|  * new stream registered: 6:12, type: 0, name: '95bbUID-agoral.truck', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO|   * 6:12, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO| got message: type: 1013, source: 2:12, len: 8144
|VERBO| stream registration result for stream 006:012 from user 002: -1
|VERBO|  * 2 streams registered for user 2
|VERBO| sending stream registration 2:10 to user 6
|VERBO| sending stream registration 2:11 to user 6
|VERBO|  * 3 streams registered for user 6
|VERBO| sending stream registration 6:10 to user 6
|VERBO| sending stream registration 6:11 to user 6
|VERBO| sending stream registration 6:12 to user 6
|VERBO| got message: type: 1012, source: 6:13, len: 748
|VERBO|  * new stream registered: 6:13, type: 0, name: '95bbUID-agoral.truck', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO|   * 6:12, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO|   * 6:13, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO| got message: type: 1013, source: 2:13, len: 8144
|VERBO| stream registration result for stream 006:013 from user 002: -1
|VERBO| got message: type: 1009, source: 6:0, len: 26
|VERBO| got message: type: 1009, source: 6:0, len: 29
|VERBO| got message: type: 1009, source: 6:0, len: 28
|VERBO| got message: type: 1009, source: 6:0, len: 29
|ERROR| receive error -2: SWBaseSocket::recv() error: Connection reset by peer
|VERBO| Disconnecting Slot 1: Game connection closed
| INFO| crash statistic: 4 of 5 deletes crashed
|ERROR| send error -1: SWBaseSocket::waitIO() timeout
Contributor

Michael10055 commented Aug 15, 2015

** Edit by Hiradur: Not relevant for this issue, basically reiteration of #27 **

Removing vehicles has never worked in MP. Sometimes it'll look like you removed your vehicle, yet the server still thinks you have the vehicle loaded, eventually getting kicked for going over the vehicle limit set for that server.
RoR.log:

20:27:23:  ===== LOADING VEHICLE: 95bbUID-agoral.truck
20:27:23:  == Parsing vehicle file: 95bbUID-agoral.truck
20:27:23:  == Parsing done, report:

#FFFF00 WARNING #FFFFFF (Section wheels)
    Line (943): -102
    Message: Encountered node with illegal negative number: '-102', parsing as positive '102' for backwards compatibility. Please fix as soon as possible.
#FFFF00 WARNING #FFFFFF (Section wheels)
    Line (945): -98
    Message: Encountered node with illegal negative number: '-98', parsing as positive '98' for backwards compatibility. Please fix as soon as possible.



20:27:23:  == Validating vehicle: Bus RVI Agora L
20:27:23:  == Validating done OK
20:27:23:  == Spawning vehicle: Bus RVI Agora L
20:27:23:  == RigSpawner: WARNING (Keyword ~Unknown~) vehicle uses no GUID, skinning will be impossible
20:27:23: TOTAL VEHICLE MASS: 20835 kg
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-12
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-13
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-14
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-15
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-16
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-17
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-18
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-19
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-20
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-21
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-22
20:27:23: SoundScriptInstance: instance created: defaults.soundscript-1-23
20:27:23: BEAM: memory stats following
20:27:23: BEAM: beam memory: 265600 B (1328 x 200 B) / 1000000
20:27:23: BEAM: node memory: 77220 B (297 x 260 B) / 260000
20:27:23: BEAM: shock memory: 684 B (9 x 76 B) / 380000
20:27:23: BEAM: prop memory: 2640 B (4 x 660 B) / 132000
20:27:23: BEAM: wheel memory: 1920 B (6 x 320 B) / 20480
20:27:23: BEAM: rigidifier memory: 0 B (0 x 36 B) / 3600
20:27:23: BEAM: flare memory: 952 B (14 x 68 B)
20:27:23: BEAM: truck memory used: 349016 B (340 kB)
20:27:23: BEAM: truck memory allocated: 2275600 B (2222 kB)
20:27:23: adding local stream: 6:13, type: 0
20:27:23:  ===== DONE LOADING VEHICLE
20:27:23: Rig loading profiler report:
    Beam::Beam()                 | init threads:    0.000329 sec
    Beam::Beam()                 | prepare loading: 0.000076 sec
    Beam::LoadTruck()            | open file:       0.001412 sec
    Beam::LoadTruck()            | create parser:   0.000062 sec
    Beam::LoadTruck()            | prepare parser:  0.000077 sec
    Beam::LoadTruck()            | run parser:      0.056990 sec
    Beam::LoadTruck()            | finalize parser: 0.057536 sec
    Beam::LoadTruck()            | post-parse:      0.000071 sec
    Beam::LoadTruck()            | setup validator: 0.000022 sec
    Beam::LoadTruck()            | run validator:   0.000005 sec
    Beam::LoadTruck()            | post-validation: 0.000013 sec
    Beam::LoadTruck()            | setup spawner:   0.000016 sec
    Beam::LoadTruck()            | add modules:     0.000000 sec
    Beam::LoadTruck()            | run spawner:     0.070762 sec
    Beam::LoadTruck()            | log spawner:     0.000276 sec
    Beam::LoadTruck()            | process fixes:   0.000081 sec
    Beam::LoadTruck()            | calc masses:     0.000125 sec
    Beam::LoadTruck()            | soundsources:    0.000254 sec
    Beam::LoadTruck()            | calc node graph: 0.000687 sec
    Beam::LoadTruck()            | bounding boxes:  0.000015 sec
    Beam::LoadTruck()            | groundmodel:     0.000292 sec
    Beam::LoadTruck()            | load dashboards: 0.003827 sec
    BeamFactory::createLocal()   | post-process:    0.001508 sec
    RigLoadingProfiler::Report() | compose report:  0.000066 sec
20:27:23: Client 2 could not load stream 13 with name '95bbUID-agoral.truck', result code: -1
20:27:23:  * received stream registration result: 2: 0
20:27:24: D3D9 : Loading 2D Texture, image name : 'rollmaskblink.dds' with 5 mip map levels
20:27:26: Texture: ign_v2-on.png: Loading 1 faces(PF_A8R8G8B8,40x40x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,40x40x1.

Since I host two RoR servers (xRoR Private / xRoR Any) Here is the server log:

|VERBO| Listener got a new connection
| INFO| Listener creating a new client...
| INFO| New client: Hotrod55 (en_US), using RoR 0.4.5.0-git, with token <removed>
|VERBO| Sending welcome message to uid 6, slotpos: 1
|VERBO| Sequencer: New client added
|VERBO| Listener awaiting connections
|VERBO| UID 6 is switching to FLOW
|VERBO| got message: type: 1012, source: 6:10, len: 8144
|VERBO|  * new stream registered: 6:10, type: 3, name: 'chat', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO| got message: type: 1009, source: 6:0, len: 22
|VERBO| got message: type: 1009, source: 6:0, len: 22
|VERBO| got message: type: 1012, source: 6:11, len: 8144
|VERBO|  * new stream registered: 6:11, type: 1, name: 'default', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO| got message: type: 1012, source: 6:12, len: 748
|VERBO|  * new stream registered: 6:12, type: 0, name: '95bbUID-agoral.truck', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO|   * 6:12, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO| got message: type: 1013, source: 2:12, len: 8144
|VERBO| stream registration result for stream 006:012 from user 002: -1
|VERBO|  * 2 streams registered for user 2
|VERBO| sending stream registration 2:10 to user 6
|VERBO| sending stream registration 2:11 to user 6
|VERBO|  * 3 streams registered for user 6
|VERBO| sending stream registration 6:10 to user 6
|VERBO| sending stream registration 6:11 to user 6
|VERBO| sending stream registration 6:12 to user 6
|VERBO| got message: type: 1012, source: 6:13, len: 748
|VERBO|  * new stream registered: 6:13, type: 0, name: '95bbUID-agoral.truck', status: 0
|VERBO|  * 2 RailNet (slot 0):
|VERBO|   * 2:10, type:character status:0 name:'default'
|VERBO|   * 2:11, type:chat status:0 name:'chat'
|VERBO|  * 6 Hotrod55 (slot 1):
|VERBO|   * 6:10, type:chat status:0 name:'chat'
|VERBO|   * 6:11, type:character status:0 name:'default'
|VERBO|   * 6:12, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO|   * 6:13, type:truck status:0 name:'95bbUID-agoral.truck'
|VERBO| got message: type: 1013, source: 2:13, len: 8144
|VERBO| stream registration result for stream 006:013 from user 002: -1
|VERBO| got message: type: 1009, source: 6:0, len: 26
|VERBO| got message: type: 1009, source: 6:0, len: 29
|VERBO| got message: type: 1009, source: 6:0, len: 28
|VERBO| got message: type: 1009, source: 6:0, len: 29
|ERROR| receive error -2: SWBaseSocket::recv() error: Connection reset by peer
|VERBO| Disconnecting Slot 1: Game connection closed
| INFO| crash statistic: 4 of 5 deletes crashed
|ERROR| send error -1: SWBaseSocket::waitIO() timeout

@Hiradur Hiradur removed this from the Post-Nextstable milestone Oct 24, 2015

@Hiradur Hiradur added this to the 0.4.6.0 milestone Oct 24, 2015

@Hiradur

This comment has been minimized.

Show comment
Hide comment
@Hiradur

Hiradur Nov 18, 2015

Contributor

@TechGiga Can you give more information? Removing vehicles in multiplayer works for me.
EDIT: on Linux

Contributor

Hiradur commented Nov 18, 2015

@TechGiga Can you give more information? Removing vehicles in multiplayer works for me.
EDIT: on Linux

@Hiradur Hiradur added crash high-priority and removed bug labels Nov 23, 2015

@Hiradur

This comment has been minimized.

Show comment
Hide comment
@Hiradur

Hiradur Nov 23, 2015

Contributor

I've never had this happen on Linux but on Windows every time I tried.

Contributor

Hiradur commented Nov 23, 2015

I've never had this happen on Linux but on Windows every time I tried.

@Hiradur Hiradur added the Windows label Nov 23, 2015

@Michael10055

This comment has been minimized.

Show comment
Hide comment
@Michael10055

Michael10055 Nov 24, 2015

Contributor

Either way, the server still thinks you have a vehicle spawned so it will kick you once you go over that server's vehicle limit.

Contributor

Michael10055 commented Nov 24, 2015

Either way, the server still thinks you have a vehicle spawned so it will kick you once you go over that server's vehicle limit.

@ulteq ulteq added the multiplayer label May 11, 2016

@Michael10055

This comment has been minimized.

Show comment
Hide comment
@Michael10055

Michael10055 May 27, 2016

Contributor

Vehicle removing works great for me on the latest master and the new rorserver version, I think we can close this now. 👍

Contributor

Michael10055 commented May 27, 2016

Vehicle removing works great for me on the latest master and the new rorserver version, I think we can close this now. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment