VM LiveView Lite for rFactor & rFactor2

Discussion in 'Plugins' started by Frank Geyer, Feb 20, 2012.

  1. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    There is more news.
    Multiserver operation is possible.
    A separate LiveTiming folder must be created for each rF2 Dedicated Server.
    The port to be listened to must then be a different one.

    Plugin Server 1
    Plugin Server 2
    And in node Config File index.js

    Server 1
    Server 2
    You must open only the Ports 8080-8081 in your firewall.
     
  2. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    Yes, it works, but only if each server has his own full install and its own .ini file.
     
    ennimann likes this.
  3. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Hi,
    which runtime library is needed here please?

    With a new Windows 2019 Server install und rf2 Dedi only there are no connection between rf2livetiming dll and node server.
    rf2 brings only 2012 and 2013 in 32 and64 bit.

    Thanks a lot.
     
  4. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    Download the last one at Microsoft ...
    Search for "Microsoft Visual C++ Runtime Download" and install 2015 version (last one).
     
    ennimann likes this.
  5. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Ah, thank you very much!

    EDIT
    Now it's running.
     
    Last edited: Apr 20, 2024
  6. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    @DanRZ
    there is one problem, if i use the rF2LogAnalyzer for championchip.
    If you use "clone to modify" funktion, there's a new file named *********E.xml in the Resultfolder.
    If it so, rFactor2 Dedicated.exe is crashing if you switch to the next session or restart weekend.
    This has now cost me several gray hairs in troubleshooting. :mad:

    Maybe, do you have any idea?
    Thank you for more information

    Best Regards
    ennimann


    EDIT
    example
    2023_04_30_21_14_00-77R1.xml -> original filename
    2023_04_30_21_14_00-77R1E.xml -> modified by rF2LogAnalyzer
     
    Last edited: May 11, 2024
  7. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    Hello.
    Maybe disable the plugin, and see if same crash happen. To make sure the plugin causes the crash and not anything else.
    If the Livetiming plugin causes the crash, there is something unexpected happening in the plugin while results files are cloned and modified.
    Some data is probably corrupted by that and causes a crash.
    Check if you have something in log/txt files.
     
  8. Nibo

    Nibo Registered

    Joined:
    Oct 12, 2010
    Messages:
    2,324
    Likes Received:
    1,059
    I don't think this plugin accesses rFactor xml log files at all? Or does it? That's strange for xml log file to cause crash... As far as I know rFactor also does not access them.
     
  9. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    I'm pretty sure too.

    But in some cases if some plugin reads two times the same data on two different files, it can reallocate some memory for the second and screw the first one memory allocation.
    When it accesses first data, it can crash or have unexpected behaviour.

    Maybe a plugin also checks last result xml on session switch and see two files with same data, instead of only one, like with a wrong pattern on file name and then crashes for a case not expected.

    In some case, there can be some warning logs, if the coder was aware of those cases.
     
  10. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Hi,
    thank you.
    If i disable the Plugin, rF2 Dedi is not crashing.
    The Result files with "E" are older. If i delete all files with "E", the Plugin is running fine by switch the session. But we need the cloned files for our championchip. ;-)
    I think, its a problem with the letter lenght of Resultfiles.
    I don't know why the plugin check this.
    I found some references to the results folder in the plugin's code. Unfortunately, I'm not that experienced with this type of programming.
     
    Last edited: May 12, 2024
  11. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Here is the screenshot from the eventviewer
     

    Attached Files:

  12. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    I think i also found where the problem is but don't understand the issue.
    Do you have some logs in UserData\Log\rf2livetiming.log ?

    And maybe try : SEND RESULTS="0", in rf2livetiming.ini see if it stops crashing.

    Edit : There is also error.log to check in rf2livetiming node server.
     
    Last edited: May 12, 2024
  13. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Hi,
    thanks a lot!
    The 1. rF2livetiming.log is after dedi crash and with: SEND RESULTS="1"
    The 2. rF2livetiming_2.log is after run dedi with: SEND RESULTS="0" -> dedi crased also :-(
    The error.log is zero.
     

    Attached Files:

  14. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    No send but still crash.
    I will probably give you another dll later with added logs to try analyze where it crashes.
     
    ennimann likes this.
  15. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    Can you try this dll ? I added some logs to see where it crashes hoping the logs will work in real time.

    Keep the old one, and use this one instead, then post here the rf2livetiming.log.
     

    Attached Files:

    ennimann likes this.
  16. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Hi,
    thank you very much, but there is'nt any LOG file, Dedi is'nt crashing. Hm
     
  17. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    I think the dll didn't load. It was a Release version.
    Try this one ...
    Sorry.
     

    Attached Files:

    ennimann likes this.
  18. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    I reinstalled livetiming on my PC and reproduced the crash.
    It was a wrong size array, 29 instead of 30.
    There is a real bug on file names. The pattern need to be modified.
    It will probably still crash if you add 2 letters after R1 ... Be cautious.
    Maybe i can make it more robust.

    Try this very last one, which doesn't crash anymore with a R1E.xml file.

    And maybe leave SEND RESULTS="0" in the ini file.
    I really don't understand what this feature does.
     

    Attached Files:

    Last edited: May 13, 2024
  19. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    111
    Likes Received:
    8
    Hm, sorry, unfortunately still no log file but no crash either.
    I have checked the settings several times.
     
  20. PlanRZ

    PlanRZ Guest

    Joined:
    Aug 22, 2021
    Messages:
    824
    Likes Received:
    281
    Activate logs with +trace=2 on your dedicated and see if you have an issue while loading the dll (trace... .txt).

    I tried on my local dedicated and had the crash on "next session", right after the first practice with the original version.

    With the last dll, the crash disappeared.
    And i made another version that don't try at all to read files and don't send results with the ini at 0.

    It doesn't read any files now if SEND RESULTS="0" in the ini.

    I will make the test in my real hosted dedicated server with the very last dll (Windows 2019 server) and see if it still works.
    I already had issues with the Runtimes version used when generating the dll.

    If you want to try this one, here it is.

    Make sure the server is totally stopped before copying the dll.
     

    Attached Files:

Share This Page