question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WriteProcessMemory with argument "[]" failed with error 5: Access denied.

See original GitHub issue

name: Bug report about: Create a report to help us improve title: ''truckersmp-cli stucking" labels: ‘’ assignees: ‘’

comment:

./truckersmp-cli start atsmp
greyson@parzival:~/truckersmp-cli$ 
greyson@parzival:~/truckersmp-cli$ ./truckersmp-cli start atsmp -v
** INFO **  Mod directory: /home/greyson/.local/share/truckersmp-cli/TruckersMP
** INFO **  Platform is Linux, using Proton
** INFO **  AppID/GameID: 270880 (ats)
** INFO **  Game directory: /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data
** INFO **  Prefix: /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix
** INFO **  Proton directory: /home/greyson/.local/share/truckersmp-cli/Proton
** INFO **  Steam Runtime directory: /home/greyson/.local/share/truckersmp-cli/SteamRuntime
** INFO **  Steam installation directory: /home/greyson/.local/share/Steam
** INFO **  Proton version is (major=6, minor=3)
** INFO **  Using Steam Runtime container
** INFO **  Running Steam Runtime helper:
  SteamAppId=270880
  SteamGameId=270880
  LD_PRELOAD=/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so
  PROTON_NO_D3D11=1
  PROTON_USE_WINED3D=0
  STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/greyson/.local/share/Steam
  STEAM_COMPAT_DATA_PATH=/home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix
  python3
    /home/greyson/.local/share/truckersmp-cli/Proton/proton
    run
    /home/greyson/truckersmp-cli/truckersmp_cli/truckersmp-cli.exe
    /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data
    /home/greyson/.local/share/truckersmp-cli/TruckersMP
    -nointro
    -64bit
esync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
Proton output:
ERROR: ld.so: object '/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Setting breakpad minidump AppID = 270880
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198079386949 [API loaded no]
Setting breakpad minidump AppID = 270880
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198079386949 [API loaded no]

Describe the bug

When I try to run atsmp or ets2mp with truckersmp-cli script, it shows the image below

Expected behavior

I expect the game runs fine

Command

./truckersmp-cli start atsmp

Terminal output

Pipe Server: Main Thread awaiting client connection on \.\pipe\discord-ipc-0 WriteProcessMemory with argument “[]” failed with error 5: Access denied.

./truckersmp-cli start atsmp -vv
** DEBUG **  No moddir set, setting to default
** INFO **  Mod directory: /home/greyson/.local/share/truckersmp-cli/TruckersMP
** INFO **  Platform is Linux, using Proton
** INFO **  AppID/GameID: 270880 (ats)
** INFO **  Game directory: /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data
** INFO **  Prefix: /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix
** INFO **  Proton directory: /home/greyson/.local/share/truckersmp-cli/Proton
** INFO **  Steam Runtime directory: /home/greyson/.local/share/truckersmp-cli/SteamRuntime
** DEBUG **  Updating mod files
** DEBUG **  Creating directory /home/greyson/.local/share/truckersmp-cli/TruckersMP if it doesn't exist
** DEBUG **  No files to download
** DEBUG **  Starting game with Proton
** DEBUG **  Steam is running
** INFO **  Steam installation directory: /home/greyson/.local/share/Steam
** DEBUG **  Creating directory /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix if it doesn't exist
** INFO **  Proton version is (major=6, minor=3)
** INFO **  Using Steam Runtime container
** DEBUG **  Shared paths: ['/home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data', '/home/greyson/.local/share/truckersmp-cli/Proton', '/home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix', '/home/greyson/.local/share/truckersmp-cli/TruckersMP', '/home/greyson/.local/share/truckersmp-cli', '/home/greyson/truckersmp-cli/truckersmp_cli', '/run/user/1000/discord-ipc-0']
** INFO **  Running Steam Runtime helper:
  SteamAppId=270880
  SteamGameId=270880
  LD_PRELOAD=/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so
  PROTON_NO_D3D11=1
  PROTON_USE_WINED3D=0
  STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/greyson/.local/share/Steam
  STEAM_COMPAT_DATA_PATH=/home/greyson/.local/share/truckersmp-cli/American Truck Simulator/prefix
  python3
    /home/greyson/.local/share/truckersmp-cli/Proton/proton
    run
    /home/greyson/truckersmp-cli/truckersmp_cli/truckersmp-cli.exe
    /home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data
    /home/greyson/.local/share/truckersmp-cli/TruckersMP
    -nointro
    -64bit
Setting breakpad minidump AppID = 270880
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198079386949 [API loaded no]
Executables: ['/home/greyson/.local/share/truckersmp-cli/wine-discord-ipc-bridge/winediscordipcbridge.exe']
Game Arguments: ['python3', '/home/greyson/.local/share/truckersmp-cli/Proton/proton', 'run', '/home/greyson/truckersmp-cli/truckersmp_cli/truckersmp-cli.exe', '/home/greyson/.local/share/truckersmp-cli/American Truck Simulator/data', '/home/greyson/.local/share/truckersmp-cli/TruckersMP', '-nointro', '-64bit']
Proton output:
ERROR: ld.so: object '/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/greyson/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Setting breakpad minidump AppID = 270880
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198079386949 [API loaded no]

Screenshots

tmp_stuck

Information

  • OS: Debian Testing 64 Bits
  • Proton or Wine version: truckersmp-cli Proton default
  • truckersmp-cli version: 0.6.2

Additional context

Does anyone have any tip to solve it? Any help is appreciated

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
Ben-D-Andersoncommented, Oct 15, 2022

I personally fixed this by killing all active processes associated with truckersmp or euro truck simulator and running the cli again.

0reactions
PadowYT2commented, Nov 2, 2022

Sorry didn’t see, this happend again, nope everything was fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access is denied for WriteProcessMemory function
I have tried PROCESS_VM_OPERATION and PROCESS_VM_WRITE both but it doesn't work anyway. Here is code: int intToWrite = 123; HANDLE hProcess = ...
Read more >
[Help] WriteProcessMemory Error 5 - UnKnoWnCheaTs
This parameter can be one or more of the process access rights. If the caller has enabled the SeDebugPrivilege privilege, the requested access...
Read more >
writeprocessmemory error 5 - MSDN - Microsoft
When I call WriteProcessMemory() I get the error 5 "Access is denied " with windows 7. This never happened to me on XP...
Read more >
WriteProcessMemory error 5 - C / C++ / MFC Discussion Boards
no errors are triggered, memBasicInfo returns the correct parameters, ie i have full access to the allocated memory. But if i follow it...
Read more >
How to fix Error 5 access denied in windows 11 ... - YouTube
Windows update service has system error 5 - access denied. Watch how to fix error 5 in windows 11, windows 10, etc. Also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found