PlasmaC memory leak

More
09 May 2020 19:23 #167165 by danilom
PlasmaC memory leak was created by danilom
Got one machine with Plasmac set up in October it was I think 0.097 version .as stated in ini as LAST_UPGRADE
Using it with 7i96 , updated the Linuxcnc to newest master and when starting the sim config axis plasmac version is 0.123.

Using configurator.py updated the working config, what I have now is that linuxcnc starts at around 60mb in ram and slowly grows around 0.1mb / sec , until it fills up the entire ram and locks the system.

I then started fresh with new config created with pncconf , used configurator to add plasmaC to it, and it starts and behaves the same , fills up all available RAM in half an hour.

Starting SIM config of PlasmaC Axis works flawless and does not fill up the RAM. Starting in terminal does not print any errors on screen, It looks to me that some error is happening and filling up some log file in memory, disabling Run Config Stats etc screens from loading does not help either.

Please Log in or Create an account to join the conversation.

More
09 May 2020 19:46 #167168 by thefabricator03
Replied by thefabricator03 on topic PlasmaC memory leak
What OS are you using?

Please Log in or Create an account to join the conversation.

More
09 May 2020 20:03 #167169 by danilom
Replied by danilom on topic PlasmaC memory leak
Debian Stretch 64bit

Please Log in or Create an account to join the conversation.

More
10 May 2020 00:23 #167201 by phillc54
Replied by phillc54 on topic PlasmaC memory leak
It does seem odd that a working config behaves differently than a sim config. The only difference would be the hardware drivers.

I am not at a working machine at the moment so these won't mean much but this is what I see on a sim in Mib:
axis        81.5
gladevcp    56.9
gladevcp    56.0
gladevcp    55.9
gladevcp    54.4
halui        4.2
io           4.0
linuxcnc     2.8
linuxcnc     1.9
linuxcncsvr  2.1
milltask    15.4
rtap_app     6.7

If I get time this arvo I will have a look on a real machine. What hardware do you have?

Please Log in or Create an account to join the conversation.

More
10 May 2020 00:32 #167203 by danilom
Replied by danilom on topic PlasmaC memory leak
Mesa 7i96 and the computer is Fujitsu desktop with C2D E8400 cpu and 3GB ram
, tested on another computer, copied the config directory it behaves the same. Also making the same config from scratch does the same.

Could it log some message or something from 7i96?

Please Log in or Create an account to join the conversation.

More
10 May 2020 00:35 #167204 by phillc54

Please Log in or Create an account to join the conversation.

More
10 May 2020 00:48 - 10 May 2020 00:59 #167207 by danilom
Replied by danilom on topic PlasmaC memory leak
Ok I enabled all options and only funny stuff is this

task: machine: 'plasmac' version 'unknown'
and
emcTrajSetAcceleration(999999999999999967336168804116691273849533185806555472917961779471295845921727862608739868455469056.0000) returned 0
emcTrajSetMaxAcceleration(999999999999999967336168804116691273849533185806555472917961779471295845921727862608739868455469056.0000)


there is no continual print warning or error, this almost same text is also printed with sim axis plasmac.
Last edit: 10 May 2020 00:59 by danilom.

Please Log in or Create an account to join the conversation.

More
10 May 2020 00:57 #167209 by phillc54
Replied by phillc54 on topic PlasmaC memory leak
I get similar here...

Please Log in or Create an account to join the conversation.

More
10 May 2020 01:06 - 10 May 2020 01:11 #167213 by danilom
Replied by danilom on topic PlasmaC memory leak
New clean config is filling up much slower and cpu usage is around 3% , old config goes around 15%




maybe this ....

Traceback (most recent call last):
File "/usr/bin/gladevcp", line 349, in <module>
main()
File "/usr/bin/gladevcp", line 218, in main
handlers, mod, obj = load_handlers(opts.usermod,halcomp,builder,opts.useropts)
File "/usr/bin/gladevcp", line 120, in load_handlers
mod = __import__(basename)
File "./plasmac_stats.py", line 1
/usr/share/doc/linuxcnc/examples/sample-configs/by_machine/plasmac/plasmac_stats.py
^
SyntaxError: invalid syntax
Last edit: 10 May 2020 01:11 by danilom.

Please Log in or Create an account to join the conversation.

More
10 May 2020 01:29 #167215 by phillc54
Replied by phillc54 on topic PlasmaC memory leak
I just noticed that you are using master branch. I use 2.8. There has been a lot of recent work on master that may be the problem. When I get some time I will try master as well.

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.093 seconds
Powered by Kunena Forum