matpow2 / cuwo

Open server and utilities for Cube World
GNU General Public License v3.0
170 stars 49 forks source link

Windows fatal exception: access violation #223

Closed OmegaRogue closed 5 years ago

OmegaRogue commented 6 years ago
Loaded script 'log'
Loaded script 'ddos'
Loaded script 'commands'
Loaded script 'welcome'
Loaded script 'ban'
Loaded script 'console'
Loaded script 'master'
cuwo running on port 12345
Windows fatal exception: access violation

Current thread 0x000041f8 (most recent call first):
  File "..\cuwo\world.py", line 513 in run_gen
  File "C:\Python36-x64\lib\concurrent\futures\thread.py", line 56 in run
  File "C:\Python36-x64\lib\concurrent\futures\thread.py", line 69 in _worker
  File "C:\Python36-x64\lib\threading.py", line 864 in run
  File "C:\Python36-x64\lib\threading.py", line 916 in _bootstrap_inner
  File "C:\Python36-x64\lib\threading.py", line 884 in _bootstrap

Thread 0x00001124 (most recent call first):
  File "C:\Python36-x64\lib\selectors.py", line 314 in _select
  File "C:\Python36-x64\lib\selectors.py", line 323 in select
  File "C:\Python36-x64\lib\asyncio\base_events.py", line 1396 in _run_once
  File "C:\Python36-x64\lib\asyncio\base_events.py", line 422 in run_forever
  File "../cuwo/server.py", line 907 in main
  File "../cuwo/server.py", line 915 in <module>
  File "C:\Python36-x64\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26 in run
  File "C:\Python36-x64\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14 in run

C:\Users\OmegaRogue\Projects\Cubeworld\server\dist>pause
Press any key to continue . . .
OmegaRogue commented 5 years ago

now its weirder, it loads scripts after the error

C:\Users\OmegaRogue\Projects\Cubeworld\server\dist>bin\server.exe
cuwo server started on Mon Sep 10 11:32:59 2018
Loaded script 'log'
Loaded script 'ddos'
Loaded script 'commands'
Windows fatal exception: access violation

Current thread 0x0000269c (most recent call first):
  File "..\cuwo\world.py", line 513 in runLoaded script 'welcome'
_gen
  File "C:\Python36-x64\lib\concurrent\futures\thread.py", line 56 in run
  File "C:\Python36-x64\lib\concurrenLoaded script 'ban'
t\futures\thread.py", line 69 in _worker
  File "CLoaded script 'console'
:\Python36-x64\lib\threading.py", line 864 in run
  File "C:\Python36-x64\lib\threading.py", line 916 in _bootstrap_inner
  File "C:\Python36-x64\lib\threading.py", line 884 in _bootstrap

Thread 0x00002b2c (most recent call first):
  File "C:\Python36-x64\lib\enumLoaded script 'master'
.py", line 804 in __andcuwo running on port 12345
__
  File "C:\Python36-x64\lib\re.py", line 312 in _compile
  File "C:\Python36-x64\lib\re.py", line 233 in compile
  File "C:\Users\OmegaRogue\Projects\Cubeworld\server\dist\scripts\master.py", line 148 in start
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 678 in exec_module
  File "<frozen importlib._bootstrap>", line 670 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 960 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 971 in _find_and_load
  File "C:\Python36-x64\lib\asyncio\selector_events.py", line 533 in _process_events
  File "C:\Python36-x64\lib\asyncio\base_events.py", line 1396 in _run_once
  File "C:\Python36-x64\lib\asyncio\base_events.py", line 422 in run_forever
  File "../cuwo/server.py", line 907 in main
  File "../cuwo/server.py", line 915 in <module>
  File "C:\Python36-x64\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26 in run
  File "C:\Python36-x64\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14 in run
Wargog commented 5 years ago

You'll need to run the project from source, the compiled version does not work as far as I can tell.

I just updated the guide for Windows on the wiki https://github.com/matpow2/cuwo/wiki/WindowsSource

OmegaRogue commented 5 years ago

it still doesnt work

Wargog commented 5 years ago

Can you provide an error log?

matpow2 commented 5 years ago

I assume this was due to 9e5aefd.