Omicr0n Posted November 18, 2023 Posted November 18, 2023 (edited) I've been trying to figure out the source of an issue I've been having for weeks with no luck so far. This only seems to happen if I'm playing the game for several hours, at which point textures in the game will start going black/blank, and the Player.log gets spammed with millions of lines like: Quote Resource ID out of range in GetResource: 1173715 (max is 1048575) (Filename: Line: 109) Resource ID out of range in GetResource: 1173717 (max is 1048575) (Filename: Line: 109) Resource ID out of range in GetResource: 1173713 (max is 1048575) (Filename: Line: 109) Resource ID out of range in GetResource: 1173715 (max is 1048575) (Filename: Line: 109) Resource ID out of range in GetResource: 1173725 (max is 1048575) (Filename: Line: 109) Resource ID out of range in GetResource: 1173713 (max is 1048575) (Filename: Line: 109) Usually by the time I notice something is wrong, the log file is several hundred megabytes in size. Searching has lead me to threads like https://forum.unity.com/threads/resource-id-out-of-range-in-getresource-and-texture2d-taking-all-the-memory.1140580/ which seems to indicate it's a Unity specific error rather than something that's being logged directly by a mod. I'm guessing a mod is the cause though but I have yet to track it down. If it's related to mishandled Texture2Ds then that doesn't really narrow things down much since tons of mods add textures, and the fact that the issue doesn't usually present itself until I've been playing for several hours makes it difficult to individually test mods. I have noticed that the log continues to be spammed by the errors even if the game is paused. Restarting the game temporarily fixes the problem, but if I do another several hour play session the bug reoccurs. I've tried reinstalling the game/all mods and that didn't help. I've also tried removing certain mods and starting new games, but none of the mods I've tried removing so far have made a difference. My modlist isn't as big as some people's, although there are some heavy mods in there: Spoiler [Mod list length: 123] Prepatcher [https://steamcommunity.com/sharedfiles/filedetails/?id=2934420800] Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077] Fishery - Modding Library [https:// no link (local mod)] Visual Exceptions [https://steamcommunity.com/sharedfiles/filedetails/?id=2538411704] Core [https:// no link (local mod)] Better Log - Fix your errors with style [https://steamcommunity.com/sharedfiles/filedetails/?id=2772559481] Performance Fish [https:// no link (local mod)] Royalty [Official DLC] [https:// no link (local mod)] Ideology [Official DLC] [https:// no link (local mod)] Biotech [Official DLC] [https:// no link (local mod)] HugsLib [https:// no link (local mod)] Character Editor [https://steamcommunity.com/sharedfiles/filedetails/?id=1874644848] 1-2-3 Personalities M1 [https://steamcommunity.com/sharedfiles/filedetails/?id=2527258500] 1-2-3 Personalities M2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2781023972] Adjacent Light [https://steamcommunity.com/sharedfiles/filedetails/?id=2517853803] Allow Tool [https://steamcommunity.com/sharedfiles/filedetails/?id=761421485] Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013] Alpha Biomes [https://steamcommunity.com/sharedfiles/filedetails/?id=1841354677] Automatic Night Owl [https://steamcommunity.com/sharedfiles/filedetails/?id=2056012179] Bad People [https://steamcommunity.com/sharedfiles/filedetails/?id=1369675292] Seamless Embrasures [https://steamcommunity.com/sharedfiles/filedetails/?id=2290689449] Breachable Embrasures - An AI-Behaviour Change [https://steamcommunity.com/sharedfiles/filedetails/?id=2569778304] [NL] Facial Animation - WIP [https://steamcommunity.com/sharedfiles/filedetails/?id=1635901197] [NL] Facial Animation - Experimentals [https://steamcommunity.com/sharedfiles/filedetails/?id=2581693737] Humanoid Alien Races [https://steamcommunity.com/sharedfiles/filedetails/?id=839005762] Bun Race [https://steamcommunity.com/sharedfiles/filedetails/?id=2108324996] CM Color Coded Mood Bar [1.1+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2006605356] Camera+ [https://steamcommunity.com/sharedfiles/filedetails/?id=867467808] Common Sense [https://steamcommunity.com/sharedfiles/filedetails/?id=1561769193] Vanilla Psycasts Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2842502659] Crystalloid [https://steamcommunity.com/sharedfiles/filedetails/?id=1571323744] De-generalize Work [https://steamcommunity.com/sharedfiles/filedetails/?id=2011655761] Door Clearance [https://steamcommunity.com/sharedfiles/filedetails/?id=2965544918] Dress Patients (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2877763074] Dubs Performance Analyzer [https://steamcommunity.com/sharedfiles/filedetails/?id=2038874626] Vanilla Factions Expanded - Empire [https://steamcommunity.com/sharedfiles/filedetails/?id=2938820380] EGI Holograms and Projectors [https://steamcommunity.com/sharedfiles/filedetails/?id=2979598490] Faction Customizer [https://steamcommunity.com/sharedfiles/filedetails/?id=2637999346] Giddy-Up 2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2934245647] Gloomy Hair [https://steamcommunity.com/sharedfiles/filedetails/?id=2883462751] Go Away Eye Strain! [https://steamcommunity.com/sharedfiles/filedetails/?id=2895295315] Gradient Hair [https://steamcommunity.com/sharedfiles/filedetails/?id=1687053679] Graphics Settings+ [https://steamcommunity.com/sharedfiles/filedetails/?id=1678847247] Hospitality [https://steamcommunity.com/sharedfiles/filedetails/?id=753498552] Wall Light [https://steamcommunity.com/sharedfiles/filedetails/?id=1423699208] LightsOut [https://steamcommunity.com/sharedfiles/filedetails/?id=2584269293] Locks [https://steamcommunity.com/sharedfiles/filedetails/?id=1157085076] Map Reroll (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2915575236] Nyaron race [https://steamcommunity.com/sharedfiles/filedetails/?id=1854376306] One bed to sleep with all [https://steamcommunity.com/sharedfiles/filedetails/?id=2572109781] Alpha Animals [https://steamcommunity.com/sharedfiles/filedetails/?id=1541721856] Rim-Effect: Core [https://steamcommunity.com/sharedfiles/filedetails/?id=2479560240] Optimization: Meats - C# Edition [https://steamcommunity.com/sharedfiles/filedetails/?id=2542931556] Orassans [https://steamcommunity.com/sharedfiles/filedetails/?id=1541519487] P-Music [https://steamcommunity.com/sharedfiles/filedetails/?id=725130005] Peer Pressure [https:// no link (local mod)] Performance Optimizer [https://steamcommunity.com/sharedfiles/filedetails/?id=2664723367] Pharmacist Temporary 1.4 Update [https://steamcommunity.com/sharedfiles/filedetails/?id=2880823401] RimFridge Updated [https://steamcommunity.com/sharedfiles/filedetails/?id=2878183338] LWM's Deep Storage [https://steamcommunity.com/sharedfiles/filedetails/?id=1617282896] Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058] Prepare Landing [https://steamcommunity.com/sharedfiles/filedetails/?id=1095331978] Prepare Moderately [https://steamcommunity.com/sharedfiles/filedetails/?id=2057362949] RandomThings - SmeltDesignation (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2591787798] Revia Race [https://steamcommunity.com/sharedfiles/filedetails/?id=2020041005] Rim-Effect: Asari and Reapers [https://steamcommunity.com/sharedfiles/filedetails/?id=2651149728] Rimsenal - Hair pack [https://steamcommunity.com/sharedfiles/filedetails/?id=725949967] Romance Tweaks More Options [https:// no link (local mod)] Roppoi hair [https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661] Set Owner for Prisoner Beds [https://steamcommunity.com/sharedfiles/filedetails/?id=2053931388] Smaller radius for Anima Trees, Shrines and Animus Stones [https://steamcommunity.com/sharedfiles/filedetails/?id=2812513517] Smart Farming [https://steamcommunity.com/sharedfiles/filedetails/?id=2619652663] Interaction Bubbles [https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345] SpeakUp [https:// no link (local mod)] Ugh You Got Me [https://steamcommunity.com/sharedfiles/filedetails/?id=1542424705] Vanilla Backstories Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2861806869] Vanilla Base Generation Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2830358905] Vanilla Beards Retextured [https://steamcommunity.com/sharedfiles/filedetails/?id=2777098392] Vanilla Events Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1938420742] Vanilla Factions Expanded - Deserters [https:// no link (local mod)] Vanilla Furniture Expanded - Props and Decor [https://steamcommunity.com/sharedfiles/filedetails/?id=2102143149] Vanilla Hair Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1888705256] Vanilla Ideology Expanded - Memes and Structures [https://steamcommunity.com/sharedfiles/filedetails/?id=2636329500] Vanilla Nutrient Paste Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2920385763] Vanilla Persona Weapons Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2826922787] Vanilla Psycasts Expanded - Hemosage [https:// no link (local mod)] Vanilla Psycasts Expanded - Puppeteer [https:// no link (local mod)] Vanilla Races Expanded - Sanguophage [https://steamcommunity.com/sharedfiles/filedetails/?id=2963116383] Vanilla Social Interactions Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2439736083] Vanilla Weapons Expanded - Non-Lethal [https://steamcommunity.com/sharedfiles/filedetails/?id=2454918354] Way Better Romance [https://steamcommunity.com/sharedfiles/filedetails/?id=2877731755] Won hair_men [https://steamcommunity.com/sharedfiles/filedetails/?id=1879950403] Won hair_women [https://steamcommunity.com/sharedfiles/filedetails/?id=1886150617] Work Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=725219116] XML Extensions [https://steamcommunity.com/sharedfiles/filedetails/?id=2574315206] [1.4] Lovely Hair Style [https://steamcommunity.com/sharedfiles/filedetails/?id=2883283629] [CAT] Show Hair With Hats or Hide All Hats [https://steamcommunity.com/sharedfiles/filedetails/?id=2879080074] [GMT] Trading Spot [https://steamcommunity.com/sharedfiles/filedetails/?id=2874517333] [RH2] CPERS: Arrest Here! [https://steamcommunity.com/sharedfiles/filedetails/?id=2563157350] [XND] Visible Pants [https://steamcommunity.com/sharedfiles/filedetails/?id=2264108215] RimJobWorld [https:// no link (local mod)] RimNudeWorld [https:// no link (local mod)] OTY_NUDE Unofficial Update [https:// no link (local mod)] Rimworld-Animations [https:// no link (local mod)] Sized Apparel for RJW [https:// no link (local mod)] Chaeren's Apparel [https:// no link (local mod)] ChillRJW [https:// no link (local mod)] Dirty Talk [https:// no link (local mod)] I Want Incest [https:// no link (local mod)] RJW Sexperience [https:// no link (local mod)] RJWAnimAddons-VoicePatch [https:// no link (local mod)] RJWAnimAddons-XtraAnims [https:// no link (local mod)] Race Patches - Asari [https:// no link (local mod)] Race Patches - Bun [https:// no link (local mod)] Race Patches - Crystalloid [https:// no link (local mod)] Race Patches - Nyaron [https:// no link (local mod)] Race Patches - Orassan [https:// no link (local mod)] Race Patches - Human [https:// no link (local mod)] Race Patches - Revia [https:// no link (local mod)] RimJobWorld - FB [https:// no link (local mod)] RimJobWorld - FH [https:// no link (local mod)] RimJobWorld - Whoring [https:// no link (local mod)] RocketMan - Performance Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=2479389928] My last log file is 328 MB which is probably too big to upload. I'll try and catch the issue earlier the next time I play so I can get a smaller log. In the meantime, has anyone ever encountered this problem and have any ideas as to what's causing it, or know how I can better figure out which mod is causing the problem in a way that doesn't involve months of testing? I've attached some pics of the issue I'm seeing. What I didn't capture last time is I'm using Facial Animation and sometimes the eyes will go blank/white as well, but I didn't notice that the last time. Edited November 18, 2023 by Omicr0n
Skömer Posted November 18, 2023 Posted November 18, 2023 5 hours ago, Omicr0n said: I've been trying to figure out the source of an issue I've been having for weeks with no luck so far. This only seems to happen if I'm playing the game for several hours, at which point textures in the game will start going black/blank, and the Player.log gets spammed with millions of lines like: Usually by the time I notice something is wrong, the log file is several hundred megabytes in size. Searching has lead me to threads like https://forum.unity.com/threads/resource-id-out-of-range-in-getresource-and-texture2d-taking-all-the-memory.1140580/ which seems to indicate it's a Unity specific error rather than something that's being logged directly by a mod. I'm guessing a mod is the cause though but I have yet to track it down. If it's related to mishandled Texture2Ds then that doesn't really narrow things down much since tons of mods add textures, and the fact that the issue doesn't usually present itself until I've been playing for several hours makes it difficult to individually test mods. I have noticed that the log continues to be spammed by the errors even if the game is paused. Restarting the game temporarily fixes the problem, but if I do another several hour play session the bug reoccurs. I've tried reinstalling the game/all mods and that didn't help. I've also tried removing certain mods and starting new games, but none of the mods I've tried removing so far have made a difference. My modlist isn't as big as some people's, although there are some heavy mods in there: Reveal hidden contents [Mod list length: 123] Prepatcher [https://steamcommunity.com/sharedfiles/filedetails/?id=2934420800] Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077] Fishery - Modding Library [https:// no link (local mod)] Visual Exceptions [https://steamcommunity.com/sharedfiles/filedetails/?id=2538411704] Core [https:// no link (local mod)] Better Log - Fix your errors with style [https://steamcommunity.com/sharedfiles/filedetails/?id=2772559481] Performance Fish [https:// no link (local mod)] Royalty [Official DLC] [https:// no link (local mod)] Ideology [Official DLC] [https:// no link (local mod)] Biotech [Official DLC] [https:// no link (local mod)] HugsLib [https:// no link (local mod)] Character Editor [https://steamcommunity.com/sharedfiles/filedetails/?id=1874644848] 1-2-3 Personalities M1 [https://steamcommunity.com/sharedfiles/filedetails/?id=2527258500] 1-2-3 Personalities M2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2781023972] Adjacent Light [https://steamcommunity.com/sharedfiles/filedetails/?id=2517853803] Allow Tool [https://steamcommunity.com/sharedfiles/filedetails/?id=761421485] Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013] Alpha Biomes [https://steamcommunity.com/sharedfiles/filedetails/?id=1841354677] Automatic Night Owl [https://steamcommunity.com/sharedfiles/filedetails/?id=2056012179] Bad People [https://steamcommunity.com/sharedfiles/filedetails/?id=1369675292] Seamless Embrasures [https://steamcommunity.com/sharedfiles/filedetails/?id=2290689449] Breachable Embrasures - An AI-Behaviour Change [https://steamcommunity.com/sharedfiles/filedetails/?id=2569778304] [NL] Facial Animation - WIP [https://steamcommunity.com/sharedfiles/filedetails/?id=1635901197] [NL] Facial Animation - Experimentals [https://steamcommunity.com/sharedfiles/filedetails/?id=2581693737] Humanoid Alien Races [https://steamcommunity.com/sharedfiles/filedetails/?id=839005762] Bun Race [https://steamcommunity.com/sharedfiles/filedetails/?id=2108324996] CM Color Coded Mood Bar [1.1+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2006605356] Camera+ [https://steamcommunity.com/sharedfiles/filedetails/?id=867467808] Common Sense [https://steamcommunity.com/sharedfiles/filedetails/?id=1561769193] Vanilla Psycasts Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2842502659] Crystalloid [https://steamcommunity.com/sharedfiles/filedetails/?id=1571323744] De-generalize Work [https://steamcommunity.com/sharedfiles/filedetails/?id=2011655761] Door Clearance [https://steamcommunity.com/sharedfiles/filedetails/?id=2965544918] Dress Patients (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2877763074] Dubs Performance Analyzer [https://steamcommunity.com/sharedfiles/filedetails/?id=2038874626] Vanilla Factions Expanded - Empire [https://steamcommunity.com/sharedfiles/filedetails/?id=2938820380] EGI Holograms and Projectors [https://steamcommunity.com/sharedfiles/filedetails/?id=2979598490] Faction Customizer [https://steamcommunity.com/sharedfiles/filedetails/?id=2637999346] Giddy-Up 2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2934245647] Gloomy Hair [https://steamcommunity.com/sharedfiles/filedetails/?id=2883462751] Go Away Eye Strain! [https://steamcommunity.com/sharedfiles/filedetails/?id=2895295315] Gradient Hair [https://steamcommunity.com/sharedfiles/filedetails/?id=1687053679] Graphics Settings+ [https://steamcommunity.com/sharedfiles/filedetails/?id=1678847247] Hospitality [https://steamcommunity.com/sharedfiles/filedetails/?id=753498552] Wall Light [https://steamcommunity.com/sharedfiles/filedetails/?id=1423699208] LightsOut [https://steamcommunity.com/sharedfiles/filedetails/?id=2584269293] Locks [https://steamcommunity.com/sharedfiles/filedetails/?id=1157085076] Map Reroll (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2915575236] Nyaron race [https://steamcommunity.com/sharedfiles/filedetails/?id=1854376306] One bed to sleep with all [https://steamcommunity.com/sharedfiles/filedetails/?id=2572109781] Alpha Animals [https://steamcommunity.com/sharedfiles/filedetails/?id=1541721856] Rim-Effect: Core [https://steamcommunity.com/sharedfiles/filedetails/?id=2479560240] Optimization: Meats - C# Edition [https://steamcommunity.com/sharedfiles/filedetails/?id=2542931556] Orassans [https://steamcommunity.com/sharedfiles/filedetails/?id=1541519487] P-Music [https://steamcommunity.com/sharedfiles/filedetails/?id=725130005] Peer Pressure [https:// no link (local mod)] Performance Optimizer [https://steamcommunity.com/sharedfiles/filedetails/?id=2664723367] Pharmacist Temporary 1.4 Update [https://steamcommunity.com/sharedfiles/filedetails/?id=2880823401] RimFridge Updated [https://steamcommunity.com/sharedfiles/filedetails/?id=2878183338] LWM's Deep Storage [https://steamcommunity.com/sharedfiles/filedetails/?id=1617282896] Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058] Prepare Landing [https://steamcommunity.com/sharedfiles/filedetails/?id=1095331978] Prepare Moderately [https://steamcommunity.com/sharedfiles/filedetails/?id=2057362949] RandomThings - SmeltDesignation (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2591787798] Revia Race [https://steamcommunity.com/sharedfiles/filedetails/?id=2020041005] Rim-Effect: Asari and Reapers [https://steamcommunity.com/sharedfiles/filedetails/?id=2651149728] Rimsenal - Hair pack [https://steamcommunity.com/sharedfiles/filedetails/?id=725949967] Romance Tweaks More Options [https:// no link (local mod)] Roppoi hair [https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661] Set Owner for Prisoner Beds [https://steamcommunity.com/sharedfiles/filedetails/?id=2053931388] Smaller radius for Anima Trees, Shrines and Animus Stones [https://steamcommunity.com/sharedfiles/filedetails/?id=2812513517] Smart Farming [https://steamcommunity.com/sharedfiles/filedetails/?id=2619652663] Interaction Bubbles [https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345] SpeakUp [https:// no link (local mod)] Ugh You Got Me [https://steamcommunity.com/sharedfiles/filedetails/?id=1542424705] Vanilla Backstories Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2861806869] Vanilla Base Generation Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2830358905] Vanilla Beards Retextured [https://steamcommunity.com/sharedfiles/filedetails/?id=2777098392] Vanilla Events Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1938420742] Vanilla Factions Expanded - Deserters [https:// no link (local mod)] Vanilla Furniture Expanded - Props and Decor [https://steamcommunity.com/sharedfiles/filedetails/?id=2102143149] Vanilla Hair Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1888705256] Vanilla Ideology Expanded - Memes and Structures [https://steamcommunity.com/sharedfiles/filedetails/?id=2636329500] Vanilla Nutrient Paste Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2920385763] Vanilla Persona Weapons Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2826922787] Vanilla Psycasts Expanded - Hemosage [https:// no link (local mod)] Vanilla Psycasts Expanded - Puppeteer [https:// no link (local mod)] Vanilla Races Expanded - Sanguophage [https://steamcommunity.com/sharedfiles/filedetails/?id=2963116383] Vanilla Social Interactions Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2439736083] Vanilla Weapons Expanded - Non-Lethal [https://steamcommunity.com/sharedfiles/filedetails/?id=2454918354] Way Better Romance [https://steamcommunity.com/sharedfiles/filedetails/?id=2877731755] Won hair_men [https://steamcommunity.com/sharedfiles/filedetails/?id=1879950403] Won hair_women [https://steamcommunity.com/sharedfiles/filedetails/?id=1886150617] Work Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=725219116] XML Extensions [https://steamcommunity.com/sharedfiles/filedetails/?id=2574315206] [1.4] Lovely Hair Style [https://steamcommunity.com/sharedfiles/filedetails/?id=2883283629] [CAT] Show Hair With Hats or Hide All Hats [https://steamcommunity.com/sharedfiles/filedetails/?id=2879080074] [GMT] Trading Spot [https://steamcommunity.com/sharedfiles/filedetails/?id=2874517333] [RH2] CPERS: Arrest Here! [https://steamcommunity.com/sharedfiles/filedetails/?id=2563157350] [XND] Visible Pants [https://steamcommunity.com/sharedfiles/filedetails/?id=2264108215] RimJobWorld [https:// no link (local mod)] RimNudeWorld [https:// no link (local mod)] OTY_NUDE Unofficial Update [https:// no link (local mod)] Rimworld-Animations [https:// no link (local mod)] Sized Apparel for RJW [https:// no link (local mod)] Chaeren's Apparel [https:// no link (local mod)] ChillRJW [https:// no link (local mod)] Dirty Talk [https:// no link (local mod)] I Want Incest [https:// no link (local mod)] RJW Sexperience [https:// no link (local mod)] RJWAnimAddons-VoicePatch [https:// no link (local mod)] RJWAnimAddons-XtraAnims [https:// no link (local mod)] Race Patches - Asari [https:// no link (local mod)] Race Patches - Bun [https:// no link (local mod)] Race Patches - Crystalloid [https:// no link (local mod)] Race Patches - Nyaron [https:// no link (local mod)] Race Patches - Orassan [https:// no link (local mod)] Race Patches - Human [https:// no link (local mod)] Race Patches - Revia [https:// no link (local mod)] RimJobWorld - FB [https:// no link (local mod)] RimJobWorld - FH [https:// no link (local mod)] RimJobWorld - Whoring [https:// no link (local mod)] RocketMan - Performance Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=2479389928] My last log file is 328 MB which is probably too big to upload. I'll try and catch the issue earlier the next time I play so I can get a smaller log. In the meantime, has anyone ever encountered this problem and have any ideas as to what's causing it, or know how I can better figure out which mod is causing the problem in a way that doesn't involve months of testing? I've attached some pics of the issue I'm seeing. What I didn't capture last time is I'm using Facial Animation and sometimes the eyes will go blank/white as well, but I didn't notice that the last time. As you have figured out this is a common Unity issue, for a fix make the player log file read only, so it cant be written into by the program, or delete it every now and then so it doesnt blow up as much, also make sure your game instance is actually closed when you shut the game down 2
Omicr0n Posted November 18, 2023 Author Posted November 18, 2023 (edited) 2 hours ago, Skömer said: As you have figured out this is a common Unity issue, for a fix make the player log file read only, so it cant be written into by the program, or delete it every now and then so it doesnt blow up as much, also make sure your game instance is actually closed when you shut the game down Won't that just stop the log file from growing? I assume that won't actually stop the underlying texture issues which is what I'm more concerned about rather than the size of the log file. Edited November 18, 2023 by Omicr0n 2
Madison09 Posted November 18, 2023 Posted November 18, 2023 Have you recently changed or updated any mods? I think this usually happens when something is removed and still exists in the savegame. Once you can identify it, you can removed it from your savegame and it should fix the issue. The problem is finding it. I had this happen with an embrasure mod and once I removed all of those it fixed the issue. There also might be a mod to address corrupted save games like this, check on STEAM. 1
Omicr0n Posted November 18, 2023 Author Posted November 18, 2023 7 minutes ago, Madison09 said: Have you recently changed or updated any mods? I think this usually happens when something is removed and still exists in the savegame. Once you can identify it, you can removed it from your savegame and it should fix the issue. The problem is finding it. I had this happen with an embrasure mod and once I removed all of those it fixed the issue. There also might be a mod to address corrupted save games like this, check on STEAM. This issue has persisted even after starting new games, so it's unrelated to changing/updating mods in an ongoing playthrough. That was my initial guess early on but I've since started over multiple times during the course of testing.
Madison09 Posted November 18, 2023 Posted November 18, 2023 Looks like maybe one of the mods is corrupted or loaded wrong then. Also, try loading any optimizer or performance mods last; it could be a mod load issue too. ??♂️ Try using half of the mods and see if the game works without any issues and then keep adding in mods until it either works or you break it (ie. the 50% method). 1
Omicr0n Posted November 18, 2023 Author Posted November 18, 2023 (edited) 47 minutes ago, Madison09 said: Also, try loading any optimizer or performance mods last; it could be a mod load issue too. ??♂️ Rocketman is already at the very bottom of the list, and I've tested with the other performance mods removed entirely and the issue still occurred. 47 minutes ago, Madison09 said: Try using half of the mods and see if the game works without any issues and then keep adding in mods until it either works or you break it (ie. the 50% method). I've been hoping to avoid doing this because every test requires several hours of gameplay (Never actually timed it but it's usually 2-3 hours before the issue arises). For me to remove large chunks of mods means committing to many hours of gameplay for saves I'd have no intention of continuing with. I'm definitely keeping it in mind as a last resort though. Mainly I was hoping somebody had seen this issue before and could help pinpoint the problematic mod or suggest some other fix. Edited November 18, 2023 by Omicr0n
Omicr0n Posted November 20, 2023 Author Posted November 20, 2023 (edited) Uploaded a log file: https://gist.github.com/HugsLibRecordKeeper/e3a88418830bfe90b1fd15bbefcf7ad2 Apparently HugsLib will trim the log to 10k lines, so it didn't matter that my actual log was hundreds of megabytes. Also this last time the issue occurred while I wasn't even actively playing. The game was paused in the background for a while. When I paused it everything seemed fine, but when I looked at it later the Hemogen meter was blacked out like one of my pics shows. So whatever is happening seems to be happening regardless of whether the game is unpaused or not. The game is set to run in the background, but I've tested disabling that option before and it didn't prevent the issue. Edit: If the issue occurs even when I'm not actually playing then that might actually make it easier to test mod configurations. I could leave the game running in the background while I'm doing other stuff and just check it periodically. Edited November 20, 2023 by Omicr0n
Omicr0n Posted January 2, 2024 Author Posted January 2, 2024 (edited) Posting an update to this in case it ends up helping someone. I did end up tracking down the problematic mod. Turns out it was Vanilla Races Expanded - Sanguophage. The fact that the bug occurred without any input from me made it much easier to test, so after doing a binary search I narrowed it down to that mod alone. With only it and it's requirements the bug occurred and I was able to consistently replicate it, but if I played with no mods or that single mod removed from my full list it didn't occur. The bug seems to have something to do with having a sanguophage selected for long periods of time which is how I was typically playing. I would have the starting sanguophage as my main character, so I'd have him selected the most to keep tabs on him. If you have the game set to run in the background though, while the sanguophage is selected you'll see more and more memory being consumed by Rimworld in the Windows task manager. After about 30-60 minutes of having the sanguophage selected is when the textures start blacking out and the errors start being spammed in the log. My guess is some code being run while the sanguophage is selected is allocating a bunch of resources that aren't being cleaned up properly. Possibly something to do with the hemogen bar. I reported all of this to the mod devs with a HugLib log showing the error with only the mod and it's requirements loaded, and told them how to consistently replicate the bug. But because I was the only one that had ever reported such an issue, and they'd never seen that kind of error before, they didn't seem all that interested in investigating it any further. And now they've deleted the bug report thread and switched over to some Google form for reporting bugs, so now that bug report is gone entirely. I still play with the mod because I like some of the features of it, but now that I'm aware the bug is the result of cumulative time spent with a sanguophage selected, I try to avoid having one selected for long periods of time like I was doing before, and this seems to allow for longer play times. I still get the bug occasionally but not as often now that I know better. Edited January 2, 2024 by Omicr0n 3
kipperskool Posted January 21, 2024 Posted January 21, 2024 Hi, I stumbled upon this post since I was having the exact same problem and created this account to share my findings. After playing for about 6 hours, my GPU's VRAM usage spikes from 6gb to 7gb and then the same black texture problem happens. This never happened in my previous colony. I also happened to have Vanilla Races Expanded - Sanguophage installed, which I just added for this new colony of all Sanguophages. After tinkering around in the mod's DLL file, I found the exact Harmony patch that is causing the leak: internal static class VanillaRacesExpandedSanguophage_GeneGizmo_Resource_GizmoOnGUI_Patch The above patch is responsible for drawing the hemogen bar in different colors depending on the hemogen pack a pawn last ingested (normal, animal, corpse, or sanguophage). The problem is, it is creating a new texture via SolidColorMaterials.NewSolidColorTexture every time the patch runs, which is any time a Sanguophage is selected. Vanilla RimWorld doesn't have this problem since it caches the texture once and reuses that. So I resolved the issue by editing the DLL and blanking out the patch. After testing it out for a week, the problem didn't occur ever again (my VRAM usage stayed at 6gb) and there were no other complications from the mod (though this makes the hemogen bar always use the default color, but I don't mind). I would like to report this to the devs, but I don't have my old logs anymore and I'm not really bothered to reproduce the issue again. 4
DHS Posted January 21, 2024 Posted January 21, 2024 2 hours ago, kipperskool said: Hi, I stumbled upon this post since I was having the exact same problem and created this account to share my findings. After playing for about 6 hours, my GPU's VRAM usage spikes from 6gb to 7gb and then the same black texture problem happens. This never happened in my previous colony. I also happened to have Vanilla Races Expanded - Sanguophage installed, which I just added for this new colony of all Sanguophages. After tinkering around in the mod's DLL file, I found the exact Harmony patch that is causing the leak: internal static class VanillaRacesExpandedSanguophage_GeneGizmo_Resource_GizmoOnGUI_Patch The above patch is responsible for drawing the hemogen bar in different colors depending on the hemogen pack a pawn last ingested (normal, animal, corpse, or sanguophage). The problem is, it is creating a new texture via SolidColorMaterials.NewSolidColorTexture every time the patch runs, which is any time a Sanguophage is selected. Vanilla RimWorld doesn't have this problem since it caches the texture once and reuses that. So I resolved the issue by editing the DLL and blanking out the patch. After testing it out for a week, the problem didn't occur ever again (my VRAM usage stayed at 6gb) and there were no other complications from the mod (though this makes the hemogen bar always use the default color, but I don't mind). I would like to report this to the devs, but I don't have my old logs anymore and I'm not really bothered to reproduce the issue again. Super Thank you!! I was having the same issue that plagued every playthrough,, Can you please explain how you edit the DLL and what line you removed,, I'm poor at this.
Omicr0n Posted January 21, 2024 Author Posted January 21, 2024 9 hours ago, kipperskool said: Hi, I stumbled upon this post since I was having the exact same problem and created this account to share my findings. After playing for about 6 hours, my GPU's VRAM usage spikes from 6gb to 7gb and then the same black texture problem happens. This never happened in my previous colony. I also happened to have Vanilla Races Expanded - Sanguophage installed, which I just added for this new colony of all Sanguophages. After tinkering around in the mod's DLL file, I found the exact Harmony patch that is causing the leak: internal static class VanillaRacesExpandedSanguophage_GeneGizmo_Resource_GizmoOnGUI_Patch The above patch is responsible for drawing the hemogen bar in different colors depending on the hemogen pack a pawn last ingested (normal, animal, corpse, or sanguophage). The problem is, it is creating a new texture via SolidColorMaterials.NewSolidColorTexture every time the patch runs, which is any time a Sanguophage is selected. Vanilla RimWorld doesn't have this problem since it caches the texture once and reuses that. So I resolved the issue by editing the DLL and blanking out the patch. After testing it out for a week, the problem didn't occur ever again (my VRAM usage stayed at 6gb) and there were no other complications from the mod (though this makes the hemogen bar always use the default color, but I don't mind). I would like to report this to the devs, but I don't have my old logs anymore and I'm not really bothered to reproduce the issue again. Good job figuring out a solution. When I was originally investigating the problem I did look through the mod's source code which they thankfully included with the mod, and I suspected that patch might be the problem, but I didn't know enough about Harmony/Rimworld modding to be confident enough to make any changes. I'll have to play around with it and see if I can do what you did.
kipperskool Posted January 22, 2024 Posted January 22, 2024 (edited) For anyone who wants to get rid of the patch, here's the steps I did on Windows: Download dnSpy from here The win64 version is the choice for anyone on a modern system Extract the ZIP file anywhere, and run dnSpy.exe Open the folder where Vanilla Races Expanded - Sanguophage mod is installed (easy with RimPy) Once inside, navigate to 1.4/Assemblies, then drag and drop the sole DLL into dnSpy You can also make a copy of the DLL as a backup if you want (but rename the file extension to something else, or move it out of the mod folder) Then follow the steps here Note: If Steam updates the mod, the DLL will likely get overwritten with the original patch. Personally, I turned this into a local mod and just keeping an eye out when the mod updates if there's anything interesting. Edited January 22, 2024 by kipperskool 2
Omicr0n Posted January 23, 2024 Author Posted January 23, 2024 I see somebody made a comment about these new findings on Steam, so maybe we'll get an official fix at some point
kipperskool Posted January 29, 2024 Posted January 29, 2024 Looks like the mod got updated today, I checked out the Harmony patch and it seems they have changed it! They've cached the textures for the hemogen bar just like in vanilla, so the issue should be fixed. 1
Omicr0n Posted January 29, 2024 Author Posted January 29, 2024 (edited) 1 hour ago, kipperskool said: Looks like the mod got updated today, I checked out the Harmony patch and it seems they have changed it! They've cached the textures for the hemogen bar just like in vanilla, so the issue should be fixed. Nice, good to know. I hadn't gotten around to trying to fix it myself yet, so it'll be nice not having to worry about keeping a sanguophage selected. Edited January 29, 2024 by Omicr0n 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now