Tons of console output with BURNINGSVIDEO renderer

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Poomp
Posts: 3
Joined: Fri Aug 11, 2023 7:41 pm

Tons of console output with BURNINGSVIDEO renderer

Post by Poomp »

I am using Irrlicht on a headless server to produce images, and I have everything working with the EDT_BURNINGSVIDEO renderer. However, when I run my program, there are millions of characters printed to the console, almost as if it is attempting to do a text rendering. Does anyone know how to disable that output?

(hopefully that is a clear enough description; I am fairly new to Irrlicht)
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Tons of console output with BURNINGSVIDEO renderer

Post by CuteAlien »

Can you give an example of what is printed? Just random characters? Do you have maybe some example code so I can try to reproduce it?
Also what kind of system - linux, windows?
You say it's working - so images are rendered?
Just in case that it's some kind of log messages, you could try reducing log level with device->getLogger()->setLogLevel(irr::ELL_ERROR) or maybe even irr::ELL_NONE.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Poomp
Posts: 3
Joined: Fri Aug 11, 2023 7:41 pm

Re: Tons of console output with BURNINGSVIDEO renderer

Post by Poomp »

I appreciate the reply -- yes, it is random seeming characters. Unfortunately it is hard to produce example code since it is part of a large project and the pieces are spread over several modules. I actually have tried setting the log level even to none, but that did not prevent the output.

I went so far as to try disabling stdout entirely before calling any Irrlicht functions, but even that did not prevent the issue, so my guess is it is writing directly to a frame buffer or something similar that is using the console in this headless case. Anyway, I now have a workaround through redirecting the stream and post-processing it to pull out what I need, but if someone knew of a better solution, that would be great!
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Tons of console output with BURNINGSVIDEO renderer

Post by CuteAlien »

You could try running one of the Irrlicht examples on your headless server. Modify it slightly to use EDT_BURNINGSVIDEO (so no user feedback is needed) and run it.

Also headless doesn't necessarily mean that it has no OpenGL, so maybe you can try with that?

And which OS are we talking about? Maybe you can even give SDL device a shot in case it's a device thing (sorry only SDL1 right now, 2 is hopefully coming soon).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Poomp
Posts: 3
Joined: Fri Aug 11, 2023 7:41 pm

Re: Tons of console output with BURNINGSVIDEO renderer

Post by Poomp »

That sounds good, I will give those a try! This is a Linux environment, although one with limited customizability on my end.
Post Reply