SOLVED onFatalError 22

Discussion in 'Hosting Help' started by DanRZ, Dec 11, 2022.

  1. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,385
    Likes Received:
    2,615
    I am not being able to help in another way :(
    just comment that it is a remote server
     
  2. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    759
    Likes Received:
    247
    Thank you, it worked perfectly, so i presume it's a "server side" problem.
    Can you tell me what elements you have outside tracks and cars ?
    Here is my content when unselecting Loc, Veh and mods ...

    Capture.JPG

    Just to check if i miss something.
     
  3. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,385
    Likes Received:
    2,615
  4. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,212
    Likes Received:
    3,047
    @DanRZ The Trace File from the first Post, is it from you as the Client or from the Dedicated Server?
    If it was from you, could you upload a Trace File from the Server, from when it crashes?
    Maybe we can see something in it.
     
  5. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    759
    Likes Received:
    247
    The trace was from the server.
    For my client side i only got a "connection lost" when server crashed.
     
  6. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,212
    Likes Received:
    3,047
    @DanRZ In the Mod Manager from the Server, when you mark the Server Mod, do you get any Errors shown in the right Bottom Field (where the green Arrow is)?
    Unbenannt-1.jpg
     
  7. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    759
    Likes Received:
    247
    I checked at some point and got no error.
    Everything looks fine when i created the mod, and add the track and car.
    And i can connect to it, drive and then after 10~20 seconds, server stops and i get "connection lost".
    For the few seconds, everything is fine, track is loaded and car too, and i can drive normally without anything looking wrong or missing.

    I just realized maybe there is some interaction with my plugins, i load a few of them : liveracers, stockcarrules, shared memory, ...

    I will try removing all of them and see if it works better. Last chance ...
     
    redapg likes this.
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,212
    Likes Received:
    3,047
    Good Luck!
     
    DanRZ likes this.
  9. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    759
    Likes Received:
    247
    Corti likes this.
  10. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    759
    Likes Received:
    247
    I'm happy, i think i found the cause but it was my own fault :oops:

    I use a "modified" WelcomePlugin that checks the description of cars
    to use /setmass based on it ( BOP management ).

    Every car has a description like :
    • Description="Vanwall Racing 2022 #6"
    But BTCC 90s are like :
    • Description="#002 NISSAN PRIMERA BTCC"
    My plugin was looking for a # in the right of the string to removes #xxx.
    That's what surely caused a crash of the plugin.
    I'm still investigating but it looks like it's the problem.
    I need to secure my code when searching for the "#xxx" to remove.

    And by the way, onFatalError 22 is probably a signal that some plugin exited "abruptly" and causing the application to stop normally without any minidump or else.

    Thanks for all the help, by searching what was different in my server, i finally got it.
    It was definitely on server side and on my own side.

    ;)


    Edit : Problem solved, i adapted my code to check # and blanks positions better and problem is gone ...
     
    Last edited: Dec 16, 2022
    davehenrie, redapg, Corti and 2 others like this.

Share This Page