Page 1 of 1

[1.7.4] Out of Memory issues (only linux so far)

Posted: Sat Feb 11, 2023 1:50 pm
by qoreQyaS
moin,

every now and then (it's not really reproducable here) the game throws an OOM error when loading a game or starting a new one (right after the bar reaches 100%)
on discord at least two other people said they also have OOM issues and this is new.
at my machine they occured with and without addons ("without" here means with item vault and possessors cause they came with the default install on steam).
i have 10gig (plus 16gig swap) available for the game on linux.
here are all the errors i was able to log:

Code: Select all

ERROR:
Game version: tome-1.7.4
Addons: items-vault-1.7.0[O], possessors-1.7.4[O]

Lua Error: /engine/utils.lua:2475: not enough memory
  At [C]:-1 
  At [C]:-1 error
  At /engine/utils.lua:2475 loadfilemods
  At /engine/Birther.lua:54 loadDefinition
  At /mod/class/PossessorsDLC.lua:34 
  At [string "return function(l, self, data) local ok=false..."]:1 triggerHook
  At /mod/load.lua:267 
  At [C]:-1 require
  At /engine/Module.lua:161 load
  At /engine/Module.lua:1084 instanciate
  At /engine/utils.lua:2999 showMainMenu
  At /engine/init.lua:207 
  At [C]:-1 dofile
  At /loader/init.lua:217 

Code: Select all

ERROR:
Game version: tome-1.7.4
Addons: items-vault-1.7.0[O], possessors-1.7.4[O]

Lua Error: /engine/Tiles.lua:39: not enough memory
  At [C]:-1 
  At [C]:-1 error
  At /engine/Tiles.lua:39 loadTileset
  At /mod/load.lua:226 
  At [C]:-1 require
  At /engine/Module.lua:161 load
  At /engine/Module.lua:1084 instanciate
  At /engine/utils.lua:2999 showMainMenu
  At /engine/init.lua:207 
  At [C]:-1 dofile
  At /loader/init.lua:217 

Code: Select all

ERROR:
Game version: tome-1.7.4
Addons: items-vault-1.7.0[O], possessors-1.7.4[O]

Lua Error: /engine/Tiles.lua:44: not enough memory
  At [C]:-1 
  At [C]:-1 error
  At /engine/Tiles.lua:44 loadTileset
  At /mod/load.lua:226 
  At [C]:-1 require
  At /engine/Module.lua:161 load
  At /engine/Module.lua:1084 instanciate
  At /engine/utils.lua:2999 showMainMenu
  At /engine/init.lua:207 
  At [C]:-1 dofile
  At /loader/init.lua:217 

Code: Select all

ERROR:
Game version: tome-1.7.4
Addons: items-vault-1.7.0[O], PlenumTooltip-1.5.0[X!], faster_rre-1.0.6[X!], possessors-1.7.4[O], zomnibus-1.7.4[X], better_item_desc-1.7.4[X]

Lua Error: /engine/utils.lua:2475: not enough memory
  At [C]:-1 
  At [C]:-1 error
  At /engine/utils.lua:2475 loadfilemods
  At /engine/interface/ActorTalents.lua:42 loadDefinition
  At /engine/interface/ActorTalents.lua:40 load
  At /data/talents/gifts/gifts.lua:212 f
  At /engine/interface/ActorTalents.lua:44 loadDefinition
  At /engine/interface/ActorTalents.lua:40 load
  At /data/talents.lua:304 f
  At /engine/interface/ActorTalents.lua:44 loadDefinition
  At /mod/load.lua:174 
  At [C]:-1 require
  At /engine/Module.lua:161 load
  At /engine/Module.lua:1084 instanciate
  At /engine/utils.lua:2999 showMainMenu
  At /engine/init.lua:207 
  At [C]:-1 dofile
  At /loader/init.lua:217 

Re: [1.7.4] Out of Memory issues

Posted: Sat Feb 11, 2023 5:21 pm
by Moasseman
So far this seems to be affecting solely Linux users.

If anyone using Windows runs into the Out of Memory issue, please holler

Re: [1.7.4] Out of Memory issues (only linux so far)

Posted: Tue Feb 21, 2023 9:51 am
by Bananadine
I'm getting loads of these, also on Linux. I have 16 GB RAM and just now I was getting the error with (seemingly) about 10 GB available for ToME. I ordered another 16 GB solely for this game, but who knows whether it'll actually help! Maybe I'll report back once it arrives. Anyway, can't hurt to have more RAM I guess, even if it doesn't help.

Re: [1.7.4] Out of Memory issues (only linux so far)

Posted: Tue Feb 21, 2023 11:53 am
by Moasseman
LuaJIT used by t-engine4 can't use more than 4GB anyway, so as long as you got at least 8GB physical memory, it should be fine. What distro are you using?

Re: [1.7.4] Out of Memory issues (only linux so far)

Posted: Tue Feb 28, 2023 10:55 am
by Bananadine
UPDATE: I just got another not-enough-memory error with my new 32 GB RAM setup. Guess it's time to jump to 64 GB! (I am joking.)

I am using Arch Linux.

Re: [1.7.4] Out of Memory issues (only linux so far)

Posted: Tue Feb 28, 2023 12:29 pm
by Moasseman
For the record, your physical memory amount won't really matter as the LuaJIT t-engine4 uses is limited to 4GB anyway

Re: [1.7.4] Out of Memory issues (only linux so far)

Posted: Tue Feb 28, 2023 1:14 pm
by Bananadine
Well maybe I was using most of my 16 GB on other software somehow and so ToME couldn't even get that 4 GB. Or who knows what. But now I guess it's relatively clear that a physical memory limit isn't the issue, yeah. Anyway, I hope it's fixed soon.