Jump to content

use log::message cause my app stop running


photo

Recommended Posts

I use log::message record my app's data

when i run it about 6 hours it stops.

i found in

WidgetConsole::puts

line 393

            line = &lines.append();

it causes heap rise.

and when it allocs a large number of heap may cause my app stop.

 

Link to comment

shichao,

log::message() can cause big memory consumption, since it's not releasing resources and keep all the messages in engine console. If you need to do logging we recommend to use your own methods that will clear memory after printing (or print directly to file).

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...