[BUG - Develop] Can't start server on fresh game install - builtins.MemoryError
See original GitHub issueDescribe the bug
When trying the initial evennia start
from within a fresh game install based on the develop branch, the server won’t start and the logs report a builtins.MemoryError
over and over
To Reproduce
Steps to reproduce the behavior:
- Create a new game with
evennia --init
- cd into the directory of the game and run
evennia migrate
- Try to start the game with
evennia start
- Script reports
... Server started.
, but it is not connectable - Open logs for server in game directory, see:
22-09-10 11:10:04 [..] Server disconnected from the portal.
22-09-10 11:10:05 Unhandled Error
Traceback (most recent call last):
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/python/log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/python/log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/internet/tcp.py", line 627, in doConnect
self._connectDone()
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/internet/tcp.py", line 656, in _connectDone
self.protocol.makeConnection(self)
File "<redacted path>/evennia/evennia/server/portal/amp.py", line 348, in makeConnection
amp.BinaryBoxProtocol.makeConnection(self, transport)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/twisted/protocols/amp.py", line 2391, in makeConnection
self.connectionMade()
File "<redacted path>/evennia/evennia/server/amp_client.py", line 118, in connectionMade
self.factory.server.run_initial_setup()
File "<redacted path>/evennia/evennia/server/server.py", line 345, in run_initial_setup
last_initial_setup_step = ServerConfig.objects.conf("last_initial_setup_step")
File "<redacted path>/evennia/evennia/server/manager.py", line 50, in conf
if not conf:
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/models/query.py", line 278, in __bool__
self._fetch_all()
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/models/query.py", line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/models/query.py", line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql
cursor.execute(sql, params)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "<redacted path>/scriptslash-ev/venv/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute
return Database.Cursor.execute(self, query, params)
builtins.MemoryError:
Expected behavior
Server starts without errors
Develop-branch commit
Evennia 0.9.0 (rev a61918c6) (rev a61918c6)
Additional context
Running on macOS 10.15.7 with Python 3.9.13 installed using asdf. Directory structure is:
code/evennia code/scriptslash-ev code/scriptslash-ev/venv
Evennia installed in the venv with pip install -e ../evennia
from the scriptslash-ev
directory.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
React-Scripts start command throws JavaScript heap out of ...
When I start react application with npm start command, it failed to start the application and throws the error Ineffective mark-compacts ...
Read more >Bug listing with status RESOLVED with resolution TEST ...
1.4.1) segmentation fault'ed while starting up" status:RESOLVED resolution:TEST-REQUEST ... error: C compiler cannot create executables" status:RESOLVED ...
Read more >16GB of ram and still cant run game! - StarMade Dock
I'm a returning user of 2 years and cant seem to get the game running without a "running low on memory" error every...
Read more >Fix Error Code: Out of Memory [Browser Edge, Chrome, Brave]
No worries, we have an easy and step-by-step guide on how to fix the Edge error code Out of memory and solve the...
Read more >Full Fixes for Your Computer Is Low on Memory in Windows ...
Why is the computer running low on memory? How to fix the low memory error? This post will show you much information about...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting. This sounds useful to add to the troubleshooting section of the documentation. Thanks for investigating.
Okay so I figured it had to do with the sqlite version and I managed to install the latest version using homebrew (
brew install sqlite
) then linked to that when building my python version 3.9.13. That resolved the issue.