Thread Tools Display Modes
04/19/17, 03:46 PM   #1
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Lua Memory Limit Error

Would anyone be opposed to just removing this from the game?
  Reply With Quote
04/19/17, 04:00 PM   #2
ArctixFox
AddOn Author - Click to view addons
Join Date: Apr 2017
Posts: 2
Well, that depends - what happens if you blow past it? If it auto expands, then sure remove it. If it crashes the game or breaks addons then it should stay I suppose

The low (default) limit is aggravating to be sure. I upped mine to 1024 to get rid of the warnings. What's the max, hard limit (on the x64 binaries)?
  Reply With Quote
04/19/17, 04:10 PM   #3
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by ZOS_ChipHilseberg View Post
Would anyone be opposed to just removing this from the game?
actually i use http://www.esoui.com/downloads/info8...LUAMemory.html.

If by removing it, we still can play smooth and not be spamed crashed by the limit, then no problem.

Mine is set to 2048.
  Reply With Quote
04/19/17, 04:22 PM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
The error is purely informative. Lua will keep growing its memory until the system runs out.
  Reply With Quote
04/19/17, 04:45 PM   #5
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Well the limit is hardly a limit if it doesn't limit anything; may as well remove it.
  Reply With Quote
04/19/17, 05:03 PM   #6
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
I won't be opposed, I'm not really here anymore, and this thing was originally a good thing, but with certain addon, it clearly denotes something being overwhelmed.

But, I would enjoy a message still being present.
Per exemple, use the notification Manager to warn user.

" Lua Memory of the game is high. This error is generally triggerred by an intense usage of the computer memory by the extensions, if you experience slowdowns, please review your addons ".

With maybe an event when memory hit 512MB (or 1GB if you really want to remove it from base game)..
  Reply With Quote
04/19/17, 06:02 PM   #7
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Ayantir View Post
I won't be opposed, I'm not really here anymore, and this thing was originally a good thing, but with certain addon, it clearly denotes something being overwhelmed.

But, I would enjoy a message still being present.
Per exemple, use the notification Manager to warn user.

" Lua Memory of the game is high. This error is generally triggerred by an intense usage of the computer memory by the extensions, if you experience slowdowns, please review your addons ".

With maybe an event when memory hit 512MB (or 1GB if you really want to remove it from base game)..
Honnestly if i have to be spammed each 5min for lua limit i will just give up. It was like this before the addon i mentionned existed, and the result was that each time i log off and was not tempted to go in again.
So can the addon still function even if Zos remove the limit ?
The comfort to play actually without to bother about it is way above all my expectations from Zos. Or can i still put my own number limit on the settings ?
  Reply With Quote
04/19/17, 06:39 PM   #8
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Originally Posted by Anceane View Post
So can the addon still function even if Zos remove the limit ?
It appears that the "limit" is merely a warning. Think of it like speeding and your passenger tells you that you are speeding. They aren't actually stopping you from speeding, but you can still wreck if you keep going faster.
  Reply With Quote
04/19/17, 11:25 PM   #9
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by ZOS_ChipHilseberg View Post
Would anyone be opposed to just removing this from the game?
I think you can remove it. People will ignore it until the client crashes and complain to everyone but themselves.

Maybe the client should auto logout on a real Lua "out of memory" exception with a messagebox in the login screen.

Or the warning itself should keep being there, but adjusted to the real free system memory.
~2GB for the x86 client. And for x64 client: Most people have 16GB+ memory. The warning would come at ~13GB.
And in this case it is really a warning and should be formulated like that.
  Reply With Quote
04/20/17, 02:49 AM   #10
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
I don't mind it being removed, or maybe you could change it so it only shows up at a configurable percentage of the actual memory limit. Right now it is more annyoing than helpful.

As for what happens when you blaze past the limit, it looks like you will get an "Out of memory" lua error and the client will just crash a few seconds later, but don't ask me how that happened.
  Reply With Quote
04/20/17, 06:49 AM   #11
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
So if i understand well the situation could be soon:

You are in raid, and suddenly message LUA memory and crash ?

Wow that is a so good idea
  Reply With Quote
04/20/17, 07:18 AM   #12
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Originally Posted by Anceane View Post
So if i understand well the situation could be soon:

You are in raid, and suddenly message LUA memory and crash ?

Wow that is a so good idea
You are wrong.

During normal operation you won't ever get to the physical memory limit and crash because of it. That only happens when an addon does something it shouldn't do.

Imagine you have a car and it flashes a warning when you reach a configured speed (e.g. 10km/h), but it could actually drive 300km/h without a problem. You would never get close to this limit when you just drive normally. Chip is asking if we mind if the configurable warning is removed as it doesn't have any real benefit.
  Reply With Quote
04/20/17, 03:37 PM   #13
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
If memory management already auto-expands, the message as it is doesn't help. If it says "LUA memory default is lower than what's being used. We'll expand as needed, this is just a warning.
To get rid of this message, bump it up in 64k increments until the message goes away.", then maybe people won't freak out as bad.


Just had a great idea - unlikely to be implemented though

Memory usage normal/raid/dungeon

Possible solution for mem crash/topout when you least expect it.

MyAddon.txt
## TrialFriendly: Yes/No ; when absent, defaults to yes

For addons like Master Merchant, AwesomeGuildStore, and others that take a huge amount of memory or processing, when you load into a trail, if any of your addons are TrialFriendly: No, a reloadui gets called to load a reduced set of addons (only use those that ARE TrialFriendly). When you exit the trial, it loads 'em all like normal.

Since loading into a Trial, a lot of people turn off addons, it might be nice to give 'em a way to do it automagically. Or even a setting in usersettings.ini that has a list of addons to disable for trials.

Sort of like stripping down a car for racing - get rid of all the weight you can to go faster
  Reply With Quote
04/21/17, 01:55 AM   #14
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
OK i understand the reasonning but i still dont catch how it will affect me.

Before i used the LUA addon to put my limit lua to 2048, I often happened to have an automatic reloadui for that, and sometimes during very bad moment : quest boss, escaping a bad combat, delves, and the result was each time bad for my character.

Actually with the addon, i never have to bother with it.

So if ZoS remove the limit, i will have to deal again with the message and limit and then to found out which addon is doing the problem ? i guess for that i will need to load another addon ? or can i simply go into my inisettings and add a line like SET LuaMemoryLimitMB "2048" ?

Thank you

Originally Posted by sirinsidiator View Post
You are wrong.

During normal operation you won't ever get to the physical memory limit and crash because of it. That only happens when an addon does something it shouldn't do.

Imagine you have a car and it flashes a warning when you reach a configured speed (e.g. 10km/h), but it could actually drive 300km/h without a problem. You would never get close to this limit when you just drive normally. Chip is asking if we mind if the configurable warning is removed as it doesn't have any real benefit.
  Reply With Quote
04/21/17, 03:00 AM   #15
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
I am telling you, it won't affect you as a normal user (this is a developer discussion btw. check which subforum you are in). The only thing you will notice, or not notice, is that you don't get meaningless low memory warnings anymore.
You won't have to reload your UI, you won't crash. Nothing will happen as long as you are not an addon dev doing stuff out of the ordinary.
  Reply With Quote
04/21/17, 07:41 AM   #16
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
The error and the memory limit setting will be removed from the game when Morrowind launches.
  Reply With Quote
04/21/17, 11:30 AM   #17
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Thanks and sorry. Perfect explanation
Originally Posted by sirinsidiator View Post
I am telling you, it won't affect you as a normal user (this is a developer discussion btw. check which subforum you are in). The only thing you will notice, or not notice, is that you don't get meaningless low memory warnings anymore.
You won't have to reload your UI, you won't crash. Nothing will happen as long as you are not an addon dev doing stuff out of the ordinary.
  Reply With Quote
04/25/17, 01:23 AM   #18
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
MyAddon.txt
## TrialFriendly: Yes/No ; when absent, defaults to yes
I love this idea, Assembler. Maybe even expand on this. I'd love to have the memory leeches load with a delay, for example, so that they don't expand every single loading screen I ever hit...

@Chip: Any way you can see how you could help with this?

As for the original request: I'm good with disabling the popup and sending a system/error message instead. If you want it prominent, prioritise it like the server going down messages. Something like "LUA memory will be expanded from... to..., to disable this message, edit your UserSettings.txt and set..."
  Reply With Quote
04/25/17, 07:51 AM   #19
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Originally Posted by manavortex View Post
I love this idea, Assembler. Maybe even expand on this. I'd love to have the memory leeches load with a delay, for example, so that they don't expand every single loading screen I ever hit...

@Chip: Any way you can see how you could help with this?
It's possible, but not something we could do quickly. The UI only loads once when you first get in game. After that, traveling to different areas doesn't reload the UI. There is no support right now for dynamic loading of an addon and dynamic unloading would be much harder than that.
  Reply With Quote
04/25/17, 07:55 AM   #20
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
I see - hmm. I would love to be able to define contexts for AddOns. Let's use MasterMerchant as an example - I literally don't need it, unless I'm browsing the auction house or bag or displaying an item via tooltip, but it's doing Ihavenocluewhat in the background and causing my loading screens to explode. Or Srendarr, which I don't need when I'm not fighting.
Do I make sense? Not asking for an immediate solution of course, but maybe that's something that could use some thought - context trading, auctionhouse, ava, combat..?
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Lua Memory Limit Error

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off