Memory problems and mod related GREED

Started by Madman666, January 03, 2018, 06:14:36 PM

Previous topic - Next topic

notfood

My bad, it's called rimworld_log and it's located in the /tmp directory

Jibbles

#46
I used to have problems loading sounds on some mods when I was using a mac. Sometimes it would show errors.  I want to say I came across the issue in one of my own mods as well and fixed it by using a different def as I noticed users would use an alternative one in older mods.. I may be wrong on that since it's been some time.  Sorry can't recall specifically which def it was if that indeed was the case.

I reported the sound error to a modder when I came across his mod and he fixed the issue a while back.  http://steamcommunity.com/sharedfiles/filedetails/?id=1206968611  (Note: This was in A17 so not sure if everything works properly in b18)

So that might be worth looking into to see what he did and compare other mods that have issues loading sounds.

Madman666

@notfood
No luck with that either. Its like no logs were created at all. I am convinced something is utterly broken in my modlist.

@Jibbles
Dunno if its even worth reporting, since on Win 10 it works fine and once I converted mp3 to ogg, it also worked on Linux. Its strange how only 1 of sound files in that mod was in mp3 and all others were in ogg. Can't really say if changing def type where this sound is defined would matter or even possible without revising mod's structure as my RW modding experience is minimal and limited to some xml meddling.

notfood

Strange, the logs are generated even is there is no errors. Maybe they are somewhere else.

Check your start_RimWorld.sh file, there is a line where it says:
LOG="-logfile /tmp/rimworld_log -savedatafolder=./SaveData"

Madman666

#49
It says logs should be where you said - /tmp/rimworld_log but I don't have such a folder anywhere. Either I am dumb or blind... UPD: it was the second. Found it. But since I played RW a bit after that crash and there wasn't any new ones, I am not sure it has the info you need to identify the problem.  The log is attached to this message.

[attachment deleted by admin: too old]

Madman666

Hey, @notfood, about that overlay thingy you introduced. I discovered, that any mod that introduces any kind of overlay gets broken into that purple crap (good example is popular Hygiene mod by Dubswise, which adds underground water overlay). Can you introduce a fix, that repairs all kinds of overlays (including new ones introduces by mods) for RW on Linux, or do I need to report it to Dubswise? Thanks!

notfood

It depends on the mods mostly. They use ExtraColor feature when they could easily use the normal color to tint and Linux/Mac don't like it for some reason. My fix should apply to Hygiene mod, I worked with it to come out as green.

Madman666

#52
Quote from: notfood on January 13, 2018, 04:02:21 AM
It depends on the mods mostly. They use ExtraColor feature when they could easily use the normal color to tint and Linux/Mac don't like it for some reason. My fix should apply to Hygiene mod, I worked with it to come out as green.

Strange, because I use your fix and it indeed does work for vanilla roof overlays, but Hygiene water overlays still gets effed.

UPD: I am an idiot. Somehow i lost my local mod folders and didn't add them all back, so that of course goes also for your overlay fix. Man, my brain is rusty as hell. So with your fix there is no purple crap anymore, but everything in Hygiene has same dark green transparent color and while it isn' as repulsive as that purple crap, it still doen't show how much water will you get from placing a water tower in any particular spot and thats a bit of a problem.

Madman666

#53
Here we go, another silent crash. I skimmed through the log, but I didn't really get what killed it and why. I am attaching the log to this message, so if anyone can say what the hell went wrong and which mod is the culprit - I'll be very grateful.

UPD: Searched the internet for part of the log and hit a jackpot on Reddit. Apparently what causes this crash on Linux are raiders trying to flee and indeed each time it happens I get a crash. Last time I reported a crash here was also caused by pirates, now that I remember. Without mods it doesn't happen, so I guess I know how to isolate the culprit now. Found a solution in that same Reddit thread:
Here's what I did:

sudo apt-get install libcap2-bin
This didn't do anything, I already had libcap2-bin installed

Then I did this:

sudo setcap cap_sys_ptrace=eip /home/jay/.local/share/Steam/steamapps/common/RimWorld/RimWorldLinux.x86_64 (replace the way to file with your own of course)
And that fixed it


And that really fixed crashes on raiders trying to flee. So if anyone having same problem with crashes using mods - this solution WORKS (it seemed to have worked but then problem returned, retracing my steps, to find, why it has stopped working). Also found the culprit - its a mod that adds an ability to fire weapons while moving "Run and Gun", which works fine on Windows, but causes a crash when raiders decide to flee on Linux.

Today apparently is an RW-Linux fixing day. Found a permanent solution to Pink overlay crap, that solves it completely even for modded overlays. It seems it is being caused by Nvidia drivers and using Nvidia Server Settings application to create Apllication profile for Rimworld with a setting:
GLIgnoreGLSLExtReqs=true
solves the issue permanently and without any problems like all kind of roofs being displayed with same color.

[attachment deleted by admin: too old]

notfood

#54
That's so weird, I've never seen this error, only happens on fleeing raiders?

Receiving unhandled NULL exception
#0  0x007ffe47e21400 in funlockfile



Quote from: Madman666 on January 13, 2018, 02:18:48 PM
Today apparently is an RW-Linux fixing day. Found a permanent solution to Pink overlay crap, that solves it completely even for modded overlays. It seems it is being caused by Nvidia drivers and using Nvidia Server Settings application to create Apllication profile for Rimworld with a setting:
GLIgnoreGLSLExtReqs=true
solves the issue permanently and without any problems like all kind of roofs being displayed with same color.

This is so good to know, should advertice everywhere.

Instead of creating an nvidia profile, edit start_RimWorld.sh, go to the last line and prepend
__GL_IGNORE_GLSL_EXT_REQS=1

so it looks like this:
#Locale resetting (important for Ubuntu players who are not native speakers of English) and launching the game.
__GL_IGNORE_GLSL_EXT_REQS=1 LC_ALL=C ./$GAMEFILE $LOG

Madman666

Well since I already set up a Nvidia profile specifically for running RW its all fine, but thanks for the info!

As for the error and crashes - yes. With Run and Gun mod installed whenever I make raiders flee I always get either a crash with SIGABRT in the log or a bunch of red errors (if its the errors, then some raiders flee, some still attack somehow). Its like Linux doesn't agree with some function or something used in that mod... Don't know.

notfood

Could be related to the Harmony PreOpen issue Kiame discovered.

Madman666

Quote from: notfood on January 15, 2018, 12:35:25 PM
Could be related to the Harmony PreOpen issue Kiame discovered.

Whats that? Is that treatable\repairable\fixable by noob means?

Harry_Dicks

Quote from: Madman666 on January 15, 2018, 12:45:42 PM
Quote from: notfood on January 15, 2018, 12:35:25 PM
Could be related to the Harmony PreOpen issue Kiame discovered.

Whats that? Is that treatable\repairable\fixable by noob means?

I think it might mean we need to wait for pardeike to fix his mod :P If that's even what your issue is.

kurosushi

I am playing with 116 mods on Windows 10 atm...

I was playing on a non-Steam version of Rimworld, manually installing mods gradually by a lot of great modders like NotFood(Charlotte). I went from 30-60 mods. Then I decided to buy the Steam version because fuck it why not.

Ended up spending the entire day adding up to 116 mods. I cannot play on a 400x400 map without the game exploded. Launching the game to get it to initialize takes about 10 minutes. Uhh, I still use 100% world generation.

But this thread is making me think I should try out a Linux Distro as well or something lol.