Skip to content

Server crash 1-2 ticks after start #36

@Gadjung

Description

@Gadjung

win10, Node 16.6.1, running via VS 2019 terminal
with and without default mods, tick speed does not change anything either:

mods:
  - xxscreeps/mods/classic
  - xxscreeps/mods/backend/cookie
  - xxscreeps/mods/backend/password
  - xxscreeps/mods/backend/steam

on clean copy of xxscreeps,
after

  • npm install
  • npm run build
  • npx xxscreeps import

running npx xxscreeps start starts server, but after 1-3 long ticks (configured to 1s in config)
an error is thrown:

PS K:\xxscreeps_fork> npx xxscreeps start
🌎 Listening
Abandoning intents in rooms [W1N1, W1N9, W9N1, W9N9] for tick 1
Tick 1 ran in 5026ms; avg: 5025.55ms
Abandoning intents in rooms [W1N1, W1N9, W9N1, W9N9] for tick 2
Tick 2 ran in 5010ms; avg: 5010.11ms
node:internal/process/esm_loader:74
    internalBinding('errors').triggerUncaughtException(
                              ^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ("export 'install' (imported as 'SourceMap') was not found in 'source-map-support' (module has no exports)")
    at new NodeError (node:internal/errors:371:5)
    at Worker.emit (node:events:383:17)
    at Worker.[kOnErrorMessage] (node:internal/worker:298:10)
    at Worker.[kOnMessage] (node:internal/worker:309:37)
    at MessagePort.<anonymous> (node:internal/worker:210:57)
    at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:460:20)
    at MessagePort.exports.emitMessage (node:internal/per_context/messageport:23:28) {
  code: 'ERR_UNHANDLED_ERROR',
  context: "export 'install' (imported as 'SourceMap') was not found in 'source-map-support' (module has no exports)"
}

on subsequent tries of npx xxscreeps start the error pops immediately (no ticks processed)
problem seems to steam from source-map.ts

i tried installing it globally but nothing changed

issue started around 30 Aug so i tried some older commits bae0f5ea00d557c49161a8fb9cc416d4c1a566f8 and b104d94c85f7f8976a86568d1dfea4db1d0972d7 but nothing changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions