TexturesUnlimited icon indicating copy to clipboard operation
TexturesUnlimited copied to clipboard

Does this mod work under Linux?

Open a23s4a opened this issue 5 years ago • 18 comments

Hello. This mod was installed as a dependency of KerbalFoundries2 and now all the parts of this mod (landing gears) are just black. Besides it seems to brake another mod (B9 Aerospace Procedural Wings - Fork). The procedural wings are now black as well. I run KSP 1.8.1 on Linux Mint 19 64 bit When I run the same under Windows 10 64 bit, all the textures are OK. Is this mod and all of its dependants supposed to work on Windows only? KSP.log

a23s4a avatar Mar 31 '20 10:03 a23s4a

In theory, it should run under Linux. I have included the shader compilation targets for OpenGL-Core for both OSX and Linux. However, I have no means to test either of those OS's.

shadowmage45 avatar Apr 01 '20 18:04 shadowmage45

Hello and thanks for your reply. Can I in any way help with testing? I appended KSP.log if it can be useful. I can also attach some images how it looks in the game

a23s4a avatar Apr 02 '20 05:04 a23s4a

Thanks, will take a look at the log; it should tell me if the shaders didn't load for some reason, or if an incorrect API was requested.

Currently nothing can be done for testing, but I might have something after reviewing the logs.

shadowmage45 avatar Apr 02 '20 15:04 shadowmage45

Hello, Some update. I finally decided to upgrade KSP to the latest version and now textures are visible. There were only some problems with KerbalFoundries2, landing gears were remaining black when using TU included with the archive https://github.com/shadowmage45/KerbalFoundries2/releases/download/2.4.8.18/KerbalFoundries-2.4.8.18.zip. I replaced TU with the version shipped by CKAN and now ALG textures are also visible. Thank you for the great work. The only thing I do not understand: why is the Recoloring Gui available on some Procedural Parts only? Can stock parts be recolored?

a23s4a avatar Apr 03 '20 06:04 a23s4a

Recoloring is only available by the mods that provide patches/textures for them. I provide some for SSTU, but beyond that, pretty much nobody in the mod scene was interested.

SQUAD/Stock doesn't provide any, so there is no information for how to recolor things.

For stock recoloring, you can however use TURD -- https://forum.kerbalspaceprogram.com/index.php?/topic/174188-18x-textures-unlimited-recolour-depot/ This is a patch/texture set by another forum member that I work with regularly, who has so far done an excellent job on allowing for recoloring of stock parts. It is what I use when I want stock recoloring...

shadowmage45 avatar Apr 03 '20 14:04 shadowmage45

I have a feeling that is somehow related to GPU.

I've also got this issue on RX 570 and on laptop gpu (T480s), but I've also got an installation on an older-generation intel GPU which worked (x230, but everything is way too slow).

derlaft avatar Jul 11 '20 17:07 derlaft

Ugh, I've found a solution!

Just run the game with -force-glcore42 -force-clamped flags. Then it works. Not sure how that is related (it's amd, not nvidia), but that helped instantly.

Some recap (maybe will help people to find this in the google): if you see black textures under Linux (amdgpu or intel driver) in KSP RO 1.8.1 (specifically, RO engines or RO capsules, for example), just add these flags and it works.

derlaft avatar Jul 11 '20 22:07 derlaft

@derlaft I have similar issues playing on linux but worse is that the debug log spam results in the game crashing some times.

Have you tried any other combinations -force-glcoreXY ? My frame rates go way down when using -force-glcore42

klimburg avatar Jul 19 '20 17:07 klimburg

Have you tried any other combinations -force-glcoreXY ? My frame rates go way down when using -force-glcore42

Yes, I've tried all the values higher, they don't work. Have not tried any values lower.

Can you upload your log? I could not find anything useful in mine.

derlaft avatar Jul 19 '20 17:07 derlaft

Player_partial.log I've attached a partial from the Player.log which is in ~/.config/unity3d/Squad/Kerbal Space Program

You can see the OpenGL error repeatedly. I did some testing with using only parts that didnt have textures unlimited and the messages go away.

OpenGL Error: Invalid texture unit!
 
(Filename: ./Runtime/GfxDevice/opengles/DeviceStateGLES.cpp Line: 72)

We did a bunch of debugging over in the KSP-RO discord server, which points to an underlying bug in Unity's logging for causing the crash but its induced by multithreaded logging it would seem. So having TU cause OpenGL to spam the log exacerbates the problem.

klimburg avatar Jul 19 '20 17:07 klimburg

@klimburg which GPU are you using btw? I was hoping to also see that in the log

derlaft avatar Jul 19 '20 18:07 derlaft

Ah sorry NVIDIA GeForce GTX 960

kevin@kevin-desktop:~/.config/unity3d/Squad/Kerbal Space Program$ glxinfo | grep "OpenGL"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 960/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 440.100
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 440.100
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 440.100
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

klimburg avatar Jul 19 '20 18:07 klimburg

@klimburg try this workaround instead of launch options, should work on nvidia:

Update: As of NVIDIA 418.30 you can try the "__GL_IgnoreInvalidateFramebuffer=1" environment variable.

derlaft avatar Jul 19 '20 18:07 derlaft

Nah that doesn't seem to work textures still look dark and getting the Invalid texture unit! message in the logs still.

klimburg avatar Jul 19 '20 18:07 klimburg

Hi Diederik Any plan on solving this? No push, just curious. Thanks!

BertWi avatar Oct 04 '20 14:10 BertWi

Same problem here, KSP 1.9.1 on a Radeon RX 470. The -force-glcore42 -force-clamped flags work, but they cause some other glitches, e.g. the crawler way when viewed from the VAB looks weird, and I have the feeling it impacts performance.

chrbkr avatar Oct 10 '20 15:10 chrbkr

Just wanted to chime in that I had the same problem (1.8.1, using an RP-1/RO install as described here https://github.com/KSP-RO/RP-0/wiki/RO-&-RP-1-Installation-for-1.8.1) and that using -force-glcore42 -force-clamped worked. This was ONLY a problem on my laptop (with an Mesa Intel® UHD Graphics 620 (KBL GT2)); on a desktop with a similar OS (arch linux with GNOME) and a discrete Nvidia card everything worked fine out of the box.

kleinschmidt avatar Nov 21 '20 22:11 kleinschmidt

I recently got my Trannergy system installed as well, got the same error when I try to connect with the homey app

[ERR_UNHANDLED_ERROR]: Unhandled error. ("You've been logged out or you have no authorization to use the service".)

Please let me know where I can help you

Cootjec avatar Dec 18 '20 17:12 Cootjec

@MaxvandeLaar could you take a look?

DiedB avatar Jan 09 '21 19:01 DiedB

@DiedB Do you have an update on this issue ? Or is there any way I could help/assist you ?

enbach avatar Feb 11 '21 12:02 enbach

I have not yet have a change to look at it, however, I can tell you that I am not experiencing any issues. At the same time, I am running my own custom version of this app before Trannergy got merged back in.

MaxvandeLaar avatar Feb 11 '21 12:02 MaxvandeLaar

@MaxvandeLaar Are you using the http://log1.trannery.com page ? Seems like that is the main issue for me and BertWi

enbach avatar Feb 12 '21 13:02 enbach

I had the same problem but I have a solution for people who log in to the new monitoring portal and can not use the app. You have to register on the 'old' monitoring portal. https://log.trannergy.com/. When registering, use the logger s/n that can be found in your 'new' portal under devices. After a while the data will arrive and you can use this app in Homey.

Harinozo avatar Feb 18 '21 12:02 Harinozo

Can confirm, installing MagPie and TU results in logspam (OpenGL errors) and black parts as in @mitko17's screenshot. On top of this -force-glcore42 -force-clamped doesn't work anymore because current scatterer relies on modern opengl features.

dtrauma avatar Oct 30 '22 06:10 dtrauma

Well, no. Not ready yet to just drop the native client, but I imagine it would work (and also enable TUFX which seems nice to have), and probably open a whole can of other bugs in the process that even fewer people know how to fix. :-/

dtrauma avatar Nov 01 '22 02:11 dtrauma