News for hackers. Stuff that matters.
Re:Valve Releases Proton 8.0-1c by happymellon on Monday April 17, 2023 @04:02PM (#35605799)
My wife is struggling with constant crashes in the new Harry Potter adventure game on the Deck.

That's the only thing I have encountered though.

Re:Valve Releases Proton 8.0-1c by 3836293648 on Monday April 17, 2023 @05:47PM (#35607079)
There's a fix for that. Unfortunately it needs to be reapplied on every reboot:

sudo sh -c "echo 1000000 > /proc/sys/vm/max_map_count"

Re:Valve Releases Proton 8.0-1c by pritambaral on Tuesday April 18, 2023 @12:06AM (#35609848)
That's a sysctl config (any path under /proc/sys/ is). See `man sysctl` for how to make it permanent (i.e., auto-apply it on boot). Here's an example:

    echo vm.max_map_count=1000000 | sudo tee /etc/sysctl.d/max_map_count.conf
    sysctl -f /etc/sysctl.d/max_map_count.conf
Besides, there's plenty of ways to automatically execute any command on boot.
Re:Valve Releases Proton 8.0-1c by happymellon on Tuesday April 18, 2023 @03:38PM (#35618966)
Excuse my ignorance, but would this be caused by a memory leak or an application that allocated an amount of memory allowed by Windows but not Linux, or something else?
Re:Valve Releases Proton 8.0-1c by 3836293648 on Saturday April 22, 2023 @08:29PM (#35672193)
While we can basically allocate almost infinite memory due to swapfiles storing unused pages when they cannot fit into RAM any more, we still have a limit on how many allocations you can do. The game crashes because it tries to do too many allocations. It still uses a reasonable (ish) amount of memory, it's just way too many tiny chunks of memory that aren't allocated next to eachother
Re:Valve Releases Proton 8.0-1c by happymellon on Friday April 28, 2023 @04:30AM (#35738895)
Thank you, but wouldn't this be a problem on Windows then, or is Windows just more forgiving for this type of behaviour?