nickguletskii / GLXOSD

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
https://glxosd.nickguletskii.com
MIT License
123 stars 20 forks source link

GLXOSD not working with Unreal Engine 4 native demos. #8

Closed sabun123 closed 10 years ago

sabun123 commented 10 years ago

I've been trying to run GLXOSD with the native Unreal Engine 4 demos available from this wiki page: LINK

These demos run on OpenGL (3.2 and greater to my understanding). When running the Elemental demo with GLXOSD, the terminal seems to say it's working, but nothing is outputted on screen.

ismail@Intel-Ubuntu:~/Desktop/Elemental Demo/Engine/Binaries/Linux$ glxosd ./Elemental
Using binned.
4.3.0-0+UE4 7038 3077 379 0
[GLXOSD] Loading libglxosd-plugins-libsensors-support.so
[GLXOSD] Loaded libglxosd-plugins-libsensors-support.so
[GLXOSD] Loading libglxosd-plugins-nvidia-support.so
[GLXOSD] Loaded libglxosd-plugins-nvidia-support.so
[GLXOSD] Reading global configuration file at "/etc/glxosd.conf"...
[GLXOSD] Found key-value pair: (key: "font_name", value: "CPMono_v07 Bold")
[GLXOSD] Found key-value pair: (key: "font_size_int", value: "38")
[GLXOSD] Found key-value pair: (key: "font_colour_r_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_colour_g_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_colour_b_int", value: "255")
[GLXOSD] Found key-value pair: (key: "text_pos_x_int", value: "4")
[GLXOSD] Found key-value pair: (key: "text_pos_y_int", value: "2")
[GLXOSD] Found key-value pair: (key: "text_spacing_x_int", value: "2")
[GLXOSD] Found key-value pair: (key: "text_spacing_y_int", value: "2")
[GLXOSD] Found key-value pair: (key: "show_text_outline_bool", value: "true")
[GLXOSD] Found key-value pair: (key: "fps_format", value: "FPS: %1$.1f\n")
[GLXOSD] Found key-value pair: (key: "temperature_format", value: "%1$i C")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_format", value: "%1%:\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_format", value: " %1%: %2%\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_filter", value: "NULL")
[GLXOSD] Found key-value pair: (key: "nvidia_gpu_format", value: "%1% (%2%): %3%\n")
[GLXOSD] The configuration was read successfully.
[GLXOSD] Reading user's configuration file at "/home/ismail/.glxosd/glxosd.conf"...
[GLXOSD] There is no file at "/home/ismail/.glxosd/glxosd.conf". Skipping.
[GLXOSD] Loading font "/usr/share/fonts/opentype/CPMono_v07/CPMono_v07_Bold.otf" with size 38...

Screenshot of running Elemental demo and GLXOSD, without OSD appearing. http://i.imgur.com/Djz7jE5.png

P.S: The demos are all 64bit, and I am running on Ubuntu 14.04 64bit so there shouldn't be an issue injecting it correct?

nickguletskii commented 10 years ago

Hi, I can't replicate this issue. What version of GLXOSD are you running? I added OpenGL 3 core profile support just a few days ago.

GLXOSD in UE4 Elemental demo

Also, what graphics card do you have and whdriver are you using?

sabun123 commented 10 years ago

I'm currently at work, so I tried to replicate it on my Ubuntu 14.04 laptop. It seems that GLX OSD works on this laptop (GTX 770M), but the output is not the same as yours. It simply shows the FPS, what must I do to enable the rest?

My desktop at home is the one that does not work, and I will try it once again when I get back. It should be the latest GLXOSD as I am using your PPA, and updated + restarted my system before attempting it. The desktop runs on an NVIDIA GTX 680 (driver 340.24 proprietary).

It could be a case of my GLXOSD version not updating. I'll let you know later.

nickguletskii commented 10 years ago

Thank you. Did you install GLXOSD through the commands on the website? The main glxosd package doesn't depend on the libsensors and NVIDIA plugins.

It is not unlikely that GLXOSD didn't update, considering that I changed the version number scheme (which was necessary, yet damaging).

sabun123 commented 10 years ago

Initially I installed it via the package on Github. However, I'm uncertain if I uninstalled it before this or if I was even able to uninstall it (there's no make uninstall target correct?).

After starting up my desktop, I was completely unable to get GLXOSD to run. Something happened after updating Ubuntu yesterday. So, I installed GLXOSD via the PPA on my desktop. Now attempting to run the Elemental demo with glxosd looks like it causes a seg fault:

ismail@Intel-Ubuntu:~/Desktop/Elemental Demo/Engine/Binaries/Linux$ glxosd ./Elemental
Using binned.
4.3.0-0+UE4 7038 3077 379 0
[GLXOSD] Loading libglxosd-plugins-libsensors-support.so
[GLXOSD] Loaded libglxosd-plugins-libsensors-support.so
[GLXOSD] Loading libglxosd-plugins-nvidia-support.so
[GLXOSD] Loaded libglxosd-plugins-nvidia-support.so
[GLXOSD] Reading global configuration file at "/etc/glxosd.conf"...
[GLXOSD] Found key-value pair: (key: "font_name", value: "CPMono_v07 Bold")
[GLXOSD] Found key-value pair: (key: "font_size_int", value: "16")
[GLXOSD] Found key-value pair: (key: "font_colour_r_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_colour_g_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_colour_b_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_colour_a_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_r_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_g_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_b_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_a_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_outline_width_float", value: "1")
[GLXOSD] Found key-value pair: (key: "show_text_outline_bool", value: "true")
[GLXOSD] Found key-value pair: (key: "text_pos_x_int", value: "4")
[GLXOSD] Found key-value pair: (key: "text_pos_y_int", value: "4")
[GLXOSD] Found key-value pair: (key: "text_spacing_x_float", value: "0")
[GLXOSD] Found key-value pair: (key: "text_spacing_y_float", value: "0")
[GLXOSD] Found key-value pair: (key: "fps_format", value: "FPS: %1$.1f\n")
[GLXOSD] Found key-value pair: (key: "temperature_format", value: "%1$i C")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_format", value: "%1%:\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_format", value: " %1%: %2%\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_filter", value: "NULL")
[GLXOSD] Found key-value pair: (key: "nvidia_gpu_format", value: "%1% (%2%): %3%\n")
[GLXOSD] The configuration was read successfully.
[GLXOSD] Reading user's configuration file at "/home/ismail/.glxosd/glxosd.conf"...
[GLXOSD] There is no file at "/home/ismail/.glxosd/glxosd.conf". Skipping.
[GLXOSD] Loading font "/usr/share/fonts/opentype/CPMono_v07/CPMono_v07_Bold.otf" with size 16...
Signal 11 caught.
EngineCrashHandler: Signal=11
Exiting due to error
Starting ../../../Engine/Binaries/Linux/CrashReportClient
/usr/local/bin/glxosd: line 19:  6892 Aborted                 (core dumped) $@
ismail@Intel-Ubuntu:~/Desktop/Elemental Demo/Engine/Binaries/Linux$

What steps can I take to remove all previous presence of GLXOSD? I would like to reinstall it, but I must first make sure no remaining conflicting files are left. What is the proper procedure to remove GLXOSD if I installed it via make install?

nickguletskii commented 10 years ago

There is no official procedure to remove GLXOSD from the system when built from source. However, removing files that are listed in install_manifest.txt should suffice. install_manifest.txt is generated by CMake, so you should find it in the directory from which you initially installed GLXOSD.

sabun123 commented 10 years ago

Hmm, that is strange. I have already deleted the directory in which I initially installed GLXOSD.

On further inspection, I noticed after purging GLXOSD, there still remained a file in /usr/local/bin named glxosd. After manually deleting it, then reinstalling GLXOSD, GLXOSD now works!

Unreal Engine 4 Elemental Demo working with GLXOSD on Ubuntu 14.04

Thank you for the awesome software, I hope to use it for benchmarking purposes :+1: You may close this issue if you want, it is solved for me :)

nickguletskii commented 10 years ago

When installing from source, GLXOSD installs itself into /usr/local/ instead of /usr/. Thank you!