Error: Failed To Create Vertex Buffer

Discussion in 'Technical Reports' started by danielart#8107, Apr 7, 2024.

  1. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    Hi, becoming pretty frustrated with this one so really hoping someone can help.

    I have been getting this message for 2 days now.
    ERROR: Failed to create vertex buffer (D3DERR_INVALIDCALL)
    FILE
    D:\RGbuild\CoreRelease\Code\Libs\heracles\Engine\Draw\DxCommon\cHcVertexManagerDx.cpp
    LINE:1235

    I’ve tried to upload a video but it won’t let me. The screen flashes black a few times on start up of train simulator before it then jumps to my other monitor, back to my main monitor and then crashes with the error message.

    I’ll give you a run through of what I’ve done since then to try and rectify the issue.
    First off, I updated all my drivers and everything is up to date.
    cleared the cache no luck
    Cycled through windowless, full screen and borderless and different resolutions with no luck
    I phoned up my Pc provider Chillblast who looked through the pc and found nothing wrong, was very helpful and tried rolling back video drivers and the issue still persisted. - note that with the error message they said they were suprised that it referred to a D drive as I don’t have a D drive, only a C drive.
    I then verified game files

    i put a train sim EXE on desktop and tried launching through there

    Then the big and most frustrating one, did a full reinstall and made sure to delete everything in the rail works folder. Once again - no luck.

    Then I tried running train simulator on only one monitor - again with no luck.

    Can anyone please help. I’ve spent days trying to get this sorted. I’ve never had issues with train simulator like this before.
     

    Attached Files:

  2. Tigert1966

    Tigert1966 Well-Known Member

    Joined:
    Aug 18, 2020
    Messages:
    2,175
    Likes Received:
    3,667
    Switch screen to Borderless. Then it should work fine. I know you said you tried this, but this is the solution I keep seeing.
     
  3. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    thanks for your message, yeah unfortunately I’ve tried this to no avail. As you say it’s the only solution that ever comes up.
     
  4. OldAlaskaGuy

    OldAlaskaGuy Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    896
    Likes Received:
    716
    SilverLining has been an issue for some. Try this:
    You can add this command line to see if it helps. -DisableSilverLining Note by TrainSim-Steve - To fully disable Silver Lining to aid debugging the graphics device lost crashes on alt-tab and screen sleep.It's worth a try. Can be done and undone quickly. Clear cache in between tests.
     
    Last edited: Apr 7, 2024
  5. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    I presume this is done on the launch options? Thanks in advance.
     
    Last edited: Apr 7, 2024
  6. OldAlaskaGuy

    OldAlaskaGuy Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    896
    Likes Received:
    716
    Open the Library tab in Steam, navigate to Train Simulator, open properties, under advanced users add the command. Leave a space before the hyphen and add -DisableSilverLining You can add other commands here. There are copies of those commands listed in this forum.
     
  7. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    Thanks. I gave this ago but again it’s not worked. Thanks anyway.
     
  8. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    814
    Likes Received:
    328
    If it Is a nVidia card - nVidia do not recommend ROLLING BACK the video drivers. (Diregard if it is an AMD gpu)
    You probably need to totally remove the drivers and then reinstall afresh.
    It might be worth running dxdiag and post the file here -use "save all information" - a txt file is created - there can be video error messages at the end of the txt file.
    Have you tried as a "hack":
    · Close TS20XX
    · In Windows 10 Run a Command prompt (cmd.exe) as administrator (Google to see if it works in Win 11.0)
    · Type : · disable vertex buffer objects=1
    enter
    · close cmd.exe
    · run TS20XX
     
  9. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    Hi, what exactly am I typing into command prompt, exactly as you have typed? As it says it’s not a valid prompt. Thanks.
     
  10. Spikee1975

    Spikee1975 Guest

    You should have zero issues in Borderless. I'm doing a lot of Alt-Tabbing and switching between windows when running TS and have never run into this issue - it is only confirmed to happen in Fullscreen mode.

    Not saying I don't believe you, but I'm puzzled.
     
    Last edited by a moderator: Apr 8, 2024
  11. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    Yeah unfortunately this issue is being encountered in borderless, full screen and windowed. I've always ran it borderless, I've went to the lengths of trying new monitors and display screen cables as well as HDMI in case there's display issues, and there is not. I've uploaded the DxDiag file. Also, I am not ALT tabbing, I do not touch anything whilst it loads up and as soon as it gets to the main men (sometimes before that) it crashes.
     

    Attached Files:

    Last edited: Apr 8, 2024
  12. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    814
    Likes Received:
    328
    The dxdaig.txt file shows some "system" associated errors and I would run the following commands to see if a "repair" fixes things.
    Open cmd.exe as administrator:
    Type SFC /scannow and press the Enter key. Repeat until no errors seen - you coud post the log .txt here.
    Re-enter Command Prompt as Administrator and run these:
    dism.exe /online /cleanup-image /startcomponentcleanup
    dism.exe /online /cleanup-image /scanhealth
    dism.exe /online /cleanup-image /restorehealth

    It may be worth temporarily disabling "ROGLiveService.exe" to see if that is casusing any issue,
    Look at temporarily disabling antivrus, antimalware and vpn software if present. (for elimination purposes).

    There is a video card/driver issue between the system (exporer.exe) and Railworks and that may be fixed by using the Borderless mode that has been suggested. Plus the above diagnostics should help.

    Did you performa a CLEAN install of the video drivers?

    Why is the monitor resolution set to 60Hz - is that to support the 4K display mode?? That monitor should run at a higher refresh rate than 60Hz?? Just curious.

    Google any command that does not work to obtain the correct syntax, and copy any of the above into cmd.exe.
     
  13. danielart#8107

    danielart#8107 New Member

    Joined:
    Apr 7, 2024
    Messages:
    7
    Likes Received:
    0
    re clean install of drivers this was done, I mistakenly said rolled back

    Main reason for running at 60hz is the stutters on train simulator are pretty bad unless I do this and this is with a 60fps cap on the launch options. I have tried running the monitors at different hz to see if it makes a difference, but no.
     
  14. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    814
    Likes Received:
    328
    Isn't the monitor GSync/Freesync so it would be best run at the MS recommended/default resolution etc settings and I would take away any fps restriction as these types of monitors dispaly the image that is sent by the cpu to the gpu immediately, unlike conventional monitors, ie avoiding latency.
     

Share This Page