Description
I've just updated Armory today to git version and now a default scene won't run, not with Krom in Linux nor exporting the project to Linux (C).
In both cases the application crashes on startup with the message:
X Error of failed request: BadRRCrtc (invalid Crtc parameter)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 20 (RRGetCrtcInfo)
Crtc id in failed request: 0x0
Serial number of failed request: 14
Current serial number in output stream: 14
This looks like an issue in Kha/Kore, but maybe only with Armory/Kha, because with Kha from Kode/Kha git version I'm able to compile and run applications with Krom in the same system — but I can't compile to C/C++ directly with Kode/Kha from some commits ago because of compilation errors, so I can't test native with that.
To Reproduce
Just playing a (saved) default scene.
Expected behavior
Scene working just fine.
System
Blender: 2.83.4
Armory: Git version.
OS: Linux Mint 19.2 (linux 4.15.0-118-generic x86_64)
Graphics card: NVIDIA Quadro M2000M 4 GB
I'm unable to reproduce with
Blender: 2.83.4
Armory: Git version
OS: Ubuntu 20.04.1LTS (Linux 5.4.0-48-generic)
Graphics card: AMD RX 480 (amd-gpu-pro driver)
Maybe the issue is Xorg / nvidia specific?
Maybe the issue is Xorg / nvidia specific?
Maybe... I'm not sure what to look for :confused:
But, more info: Using Armory SDK 2020.10 I have the same error, but with Armory SDK 2020.09 the default scene works fine in the same machine, both with Krom and Linux (C).
A similar issue: https://github.com/lahwaacz/sxlock/issues/4
Indeed @knowledgenude ! :smiley: — looks like _exactly_ the same. It turns out I had no display selected as primary in my mutimonitor xrandr setup... selecting one of them fixes this.
Thanks a lot!
I am reopening the issue because another reference to this was posted in the forum: https://forums.armory3d.org/t/linux-krom-doesnt-compile-in-sdk-2010/4252
This also is happening in Fedora 32/33b with AMD.
Looks like it could be fixed by this PR from Lubos (just a guess): https://github.com/Kode/Kinc/pull/562
Any luck with the latest git version? https://github.com/Kode/Kinc/pull/562 is now applied.
Updated to git version now and for me the problem still. It returns a different message from the first one above (instead of invalid Crtc parameter i got invalid Output parameter).
__________ [Armory] Compiling __________
Exporting Scene
Scene exported in 0.004800319671630859
Finished in 3.462407350540161
X Error of failed request: BadRROutput (invalid Output parameter)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 9 (RRGetOutputInfo)
Serial number of failed request: 13
Current serial number in output stream: 13
Another fix incoming by dave at https://github.com/Kode/Kinc/pull/563.
Any luck with the latest git version? https://github.com/Kode/Kinc/pull/563 is now applied. 🔥
It is working fine now, many thanks!
Most helpful comment
It is working fine now, many thanks!