STEAM GROUP
Harmony for Games HarmonyLib
STEAM GROUP
Harmony for Games HarmonyLib
3
IN-GAME
20
ONLINE
Founded
22 March, 2021
All Discussions > Cities Skylines > Topic Details
z00d 12 Dec, 2021 @ 10:00am
Incompatibility with Ubuntu, Move It! mod
So for background, Harmony (redesigned) will only work on my Linux drive, and the original harmony will only work on my Windows drive. OG Harmony on Linux will crash to desktop after loading all assets, likewise, on Windows, redesigned Harmony will crash to desktop after loading all assets, neither make it to the map, or even the cryptic text before it loads into the map. I have to swap between the two mods when I swap operating systems.

Currently, it appears the redesigned Harmony has an incompatibility with Move It! on my Linux drive. Seems to have broken yesterday (11/12/21). No amount of reordering their load order, or general mod managing, will make them work together. I can interact with the Move It! UI elements, but I cannot actually... well move anything. No green selection cursor, and I can't even draw a selection box, therefore essentially making the mod entirely useless.

Here's my Harmony report: https://pastebin.com/yQsK7J0y

I would really like to see this issue worked on, as Cities: Skylines performs SO MUCH BETTER on Linux than it does on Windows. For me, Windows makes the game a slideshow, whereas on Linux, I consistently get 60+ fps. genuine 40+ frame difference. Thanks everyone!
Originally posted by z00d:
Update: I guess it was Adaptive Roads, once I uninstalled that, Move It! worked once again on Linux. Truly amazing. Thank you for your help, really helped me out. I'll still post a crash log if I get one soon, however.
< >
Showing 1-6 of 6 comments
Chaos 12 Dec, 2021 @ 11:20am 
Hi trez00d,

Thanks for the detailed report. You seem to have two issues (a) crashing (b) Move It incompatibility

Move It! Incompatibility

  • Move It! was updated 9 Dec @ 10:25pm with message "Hotfix for loading issue"
  • The Move It! description shows that as of 2.9.5 it adds support for "Extended Managers Library"
  • The "Extended Managers Library" gets multiple updates per day at this point, and itself depends on Harmony

Based on these clues, I have to conclude that Move It now has an indirect dependency on Harmony via the Extended Managers Library, and the unexplained "loading issue" means that the author is struggling to get a handle on loading under various configurations. It could be that he fixed loading when "Extended Managers Library" is present, but broke it when it's not present.

The Extended Managers Library, being so frequently updated, and based on its own description that "This mod, under its current state, is not ready for mainstream usage", tells me that it is in pre-alpha stage, which means bugs abound.

Looking at the Move It github, I see multiple commits which either add, improve, make compatible, modify support for "Tree Snapping", "Prop Snapping" and "Tree Anarchy", which indicates to me a trial-and-error process to make a handful of mods detect each other and play along. The code itself is hacky, detecting mods by the subscription status, then attempting to load assemblies. This approach is very prone to break depending on load order, versions and updates of the mods it tries to juggle.

I would suggest the problem is in the "Hotfix for loading issue" in Move It. Try using an older version of Move It, approaching its author with a bug report, and/or removing this mod until the dust settles.


Crashing

You have mod 2414618415 (Adaptive Roads), which fails to load, and reports:
83 * 2414618415 2414618415 2414618415 CH: 2.0.4.0 2.0.0.0 [ERR] Exceptions thrown: 4 [ERR] TypeLoadException: Could not load type 'KianCommons.Patches.HarmonyPatch2' from assembly 'AdaptiveRoads, Version=2.4.7.17971, Culture=neutral, PublicKeyToken=null'. (see https://github.com/drok/Harmony-CitiesSkylines/issues/9): 4 times [ERR] missing: NetworkSkins[1.1.7984.15069] [ERR] missing: TMPE.API[11.5.1.21302] [ERR] missing: TrafficManager[11.5.1.24370] [ERR] missing: CSUtil.Commons[1.0.7485.17154] [ERR] missing: NetworkSkins[1.0.7968.20703]

Other than the multiple missing dependencies, this mod suffers from a well known and documented issue, as the report indicates: https://github.com/drok/Harmony-CitiesSkylines/issues/9; try pointing its author to this documentation. This loading bug is positively in the adaptive roads mod.

In your Harmony Report there are multiple mods with problems, and some that are deeply troubled, listed below. Try unsubcribing these to see if they solve the crashing, then re-subscribe them one at a time, to find if any one specifically triggers the crash.

10 2560782729 NetworkMultitool Network Multitool 1.2.0.3 CH: 2.0.4.0 [ERR] Other problems: 2 [ERR] CitiesHarmony.API misuse by NetworkMultitool[1.2.0.3] is prohibited (see https://github.com/drok/Harmony-CitiesSkylines/issues/8): 2 times 13 1664509314 CustomAnimationLoader Custom Animation Loader (CAL) 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from CustomAnimationLoader.Mod.OnDisabled: 2 times 16 2472062376 NodeController Node Controller Renewal 3.1.3.1 CH: 2.0.4.0 [ERR] Other problems: 2 [ERR] CitiesHarmony.API misuse by NodeController[3.1.3.1] is prohibited (see https://github.com/drok/Harmony-CitiesSkylines/issues/8): 2 times [ERR] missing: TMPE.API[11.6.0.24267] [ERR] missing: HideCrosswalks[3.0.1.21320] [ERR] missing: TrafficManager[11.6.0.33536] 23 2511258910 BuildingSpawnPoints Building Spawn Points 1.2.3.1 CH: 2.0.4.0 [ERR] Other problems: 2 [ERR] CitiesHarmony.API misuse by BuildingSpawnPoints[1.2.3.1] is prohibited (see https://github.com/drok/Harmony-CitiesSkylines/issues/8): 2 times 24 1886877404 CustomEffectLoader Custom Effect Loader 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from CustomEffectLoader.Mod.OnDisabled: 2 times 39 1764637396 ToggleIt Toggle It! 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from ToggleIt.ModInfo.OnDisabled: 2 times 60 1567569285 AchieveIt Achieve It! 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from AchieveIt.ModInfo.OnDisabled: 2 times 79 2140418403 NodeMarkup Intersection Marking Tool 1.8.Û CH: 2.0.4.0 [ERR] Other problems: 2 [ERR] CitiesHarmony.API misuse by NodeMarkup[1.8.2.2] is prohibited (see https://github.com/drok/Harmony-CitiesSkylines/issues/8): 2 times 83 * 2414618415 2414618415 2414618415 CH: 2.0.4.0 2.0.0.0 [ERR] Exceptions thrown: 4 [ERR] TypeLoadException: Could not load type 'KianCommons.Patches.HarmonyPatch2' from assembly 'AdaptiveRoads, Version=2.4.7.17971, Culture=neutral, PublicKeyToken=null'. (see https://github.com/drok/Harmony-CitiesSkylines/issues/9): 4 times [ERR] missing: NetworkSkins[1.1.7984.15069] [ERR] missing: TMPE.API[11.5.1.21302] [ERR] missing: TrafficManager[11.5.1.24370] [ERR] missing: CSUtil.Commons[1.0.7485.17154] [ERR] missing: NetworkSkins[1.0.7968.20703]

However, once you start re-enabling these badly behaved mods, you're basically gambling with stability. They have known, serious bugs, and if they work, when they work, it's by luck of circumstances, rather than by design. Their bugs can only be solved by their respective authors.

Normally, mods that don't try to be too magical should not be able to crash the game to desktop, except by triggering an out-of-memory condition, which is not handled by the game at all. Can you rule out one of these mods, or even the game, hogging more memory than expected?

Magical mods are those that drop DLL's in the game's directory to hijack/hook the executable in some way. They rely on undocumented, unsupported tricks to accomplish their magic, so their faults are not caught and handled by the application. Hence, when they encounter some error, unhandled conditions mean crash. Examples: FPS booster, patch loader, etc.

I would also include the following mods in the "magical" category, as they appear to change elements of the graphics engine at a low level. Try unsubbing them and cautiously re-adding them one at a time. This is not to put blame on them, but they are where I would begin investigating:

1 2632235148 EffectsPOModule Effects Module 9 762520291 ShadowStrengthAdjuster ShadowStrengthAdjuster 13 1664509314 CustomAnimationLoader Custom Animation Loader (CAL) 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from CustomAnimationLoader.Mod.OnDisabled: 2 times 24 1886877404 CustomEffectLoader Custom Effect Loader 0H: 1.2.0.1 [ERR] Exceptions triggered: 2 incidents from 1 locations [ERR] HarmonyUserException: Prohibited global UnpatchAll() from CustomEffectLoader.Mod.OnDisabled: 2 times 25 2414025775 TrafficLightReplacer Traffic Light Replacer 0H: 1.2.0.1 26 940299505 AnimUV AnimUV Params [ERR] missing: mscorlib[4.0.0.0] 30 922939393 LodFixer Transparency LOD Fix + Cloud AÛ 34 1680642819 TrueLodToggler Ultimate Level Of Detail 0H: 1.2.0.1 36 1938493221 Mini_FPS_Booster Mini FPS Booster 1.0 0H: 1.2.0.1 37 1183931915 SkyboxReplacer Cubemap Replacer 38 465318661 ToggleableWhiteness ToggleableWhiteness 40 412146081 PostProcessFX PostProcessFX 50 512314255 MoreNetworkStuff More Network Stuff 51 2126881996 ShadowDistanceFix Shadow Distance Fix 75 2119477759 AdditiveShader Additive Shader 84 * 2101551127 Repaint Repaint 1.4.2 CH: 2.0.4.0 2.0.0.0

Finally, I highly doubt that either harmony mod is directly the cause of your crashes. Rather, I suspect the crash is due to some secondary effect, like load order, or running out of memory. In fact, load order can trigger bugs in either the game or some mods that would cause them to use excessive memory.

Through a divide and conquer approach, try removing mods, and re-introduce them carefully. As your Harmony Report shows, there are currently multiple causes for instability in your game. Instability doesn't necessarily mean crash, but an increased chance of undefined behaviour.

I hope this helps, and after you try ruling out some of the highlighted culprits, I'd appreciate it if you'd update this thread with your findings; it may help someone in the future.
z00d 12 Dec, 2021 @ 11:48am 
I'll definitely read through what you posted and keep ya updated! I figured there'd be some wild ass issues (considering I've just done rolling mod updates and stuff), I'm surprised it managed to all load
z00d 12 Dec, 2021 @ 11:51am 
I should also add, I've got 24GB RAM, and over 64GB swap/pagefile on Windows and Linux, but I can definitely increase those. It does get pretty close to the limit, but typically there's plenty left.
Chaos 12 Dec, 2021 @ 12:10pm 
Originally posted by trez00d:
I should also add, I've got 24GB RAM, and over 64GB swap/pagefile on Windows and Linux, but I can definitely increase those. It does get pretty close to the limit, but typically there's plenty left.

It's hard to say what would be required for _your_ gamesave. I've seen reports of gamesaves using over 120GB of address space (RAM + swap), which would absolutely crash on your system as currently configured.

Keep in mind that with unstable mods, it may be unexpected memory use, eg, a bug triggered by the instability which causes 50GB to be attempted to be allocated. Even if the mod does not require 50GB, it's enough to miscalculate how much memory it needs. The attempt alone tells the game there is not enough memory, and it doesn't have a gracious handler for this error. Instead, it simply crashes. You'd be able to tell from the log file if your crash is due to memory.

Also, if you are somehow near the limit of the memory requirement, it's entirely possible that one configuration to use slightly less than you have, and not crash, while other, with only a minor difference (eg, this brand of harmony instead of the other brand) to be the straw that breaks the camel's back.

I've also seen crashes due to graphics drivers before. Infamously, citrix workspaces does some magic with capturing the screen for remote work, which would interfere with CSL, causing CSL to crash when citrix is installed. There is likely a whole class of software that can cause this kind of crash.

Post your full output log file after a crash, it may shed some light on what kind of crash you are having.
z00d 12 Dec, 2021 @ 3:31pm 
I'll update as soon as possible, Steam isn't wanting to verify files or download workshop content on my Linux drive, so I'm currently on Windows. I unsubbed Adaptive Roads and now Harmony (redesigned) works on this drive, so that's a plus.
Last edited by z00d; 12 Dec, 2021 @ 3:32pm
A moderator of this forum has indicated that this post answers the original topic.
z00d 12 Dec, 2021 @ 9:42pm 
Update: I guess it was Adaptive Roads, once I uninstalled that, Move It! worked once again on Linux. Truly amazing. Thank you for your help, really helped me out. I'll still post a crash log if I get one soon, however.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

All Discussions > Cities Skylines > Topic Details