I've got another observation to add to this. I normally use the Legacy version because I've found it to be most stable, but I've never really looked into why that is.
Yesterday I started off using the Stable version (1.26.6.12) to see how it would go. It worked well at first, then at one point I left my avatar idle in an enclosed room in a quiet region. After about 30 minutes the viewer popped up the low memory warning, saying I was about to crash. The message says it's resetting my camera but I had not been camming arround, I was literally staring at a wall for 30 minutes as I'd been afk.
Memory usage in the viewer showed as 100% (4096MB). Textures around me were cycling very rapidly, including my avatar's baked textures. According to the debug texture console there were about a dozen textures loading over and over.
I waited a while more and it didn't crash. I tried to force it to crash by teleporting around a bit, but that didn't work, so I did finally log out. (I
have on prior occasions had the Stable version crash after receiving the low memory warning, which is why I stopped using it.)
Here are all the
display_stats: MEMORY messages from the log for this sesson:
(full log attached below)
This is two wierd things: First the warning of impending crash happened when memory was less than half used according to the log, while the viewer was reporting the used memory at 100%. Second, the log shows that memory just goes up and up and up seemingly for no reason at all.
Up until the warning, I had spent the entire time in a relatively quiet region. From 2013-02-27T20:49:27Z till about 2013-02-27T21:24:28Z I was motionless in an enclosed workshop under water, draw distance 64m, with very little in 'view' and no other avatars around. After that, I tried to force a crash by teleporting a few times and visiting a crowded area.
By contrast, using the legacy viewer, I can stay logged in for hours and hours (I've had 16 hour sessions without incident) and looking at the log of my most-recent legacy session, the
display_stats: MEMORY message shows what I'd call a normal fluctuating usage - it goes up and down through the session, and does not seem to exceed about 700MB. (in the viewer itself the memory indicator tends to hover around 50% to 60%, aka around 2000-2100MB).
So I have two questions from all this:
1, The
display_stats: MEMORY message in the log does not correspond with the memory bar / warnings (in both legacy and stable) in the viewer - so are the log messages correct, or is the display in the viewer correct?
2, There seems to be an issue in the Stable branch (but not the Legacy branch) where memory is continually gobbled up. Is this something we can try and track down and fix? I would love to be able to help with testing or providing logs etc., I'm not that experienced in c++ or mac programming, but I am a programmer and not shy about poking at source code or compiling & testing patches etc.
Thank you Henri and Katherine!