Skip to content

[BUG] Server crashes due to not finding processing core maps #13

Open
@Efratror

Description

@Efratror

Bug:

With a fresh install of the ls and Ubuntu 20.04.4 LTS. The server comes with a error message and shuts down

internal/fs/utils.js:307
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/efratror/Downloads/LS4P-master/server/out/processing/extractor/processing/CORE/PApplet.class'
    at Object.openSync (fs.js:476:3)
    at Object.func [as openSync] (electron/js2c/asar_bundle.js:5:1846)
    at Object.readFileSync (fs.js:377:35)
    at Object.readFileSync (electron/js2c/asar_bundle.js:5:8872)
    at JavaClassFileReader.readFromFile (/home/efratror/Downloads/LS4P-master/server/node_modules/java-class-tools/lib/java-class-reader.js:97:29)
    at JavaClassFileReader.read (/home/efratror/Downloads/LS4P-master/server/node_modules/java-class-tools/lib/java-class-reader.js:50:21)
    at /home/efratror/Downloads/LS4P-master/server/out/completion.js:54:77
    at Array.forEach (<anonymous>)
    at /home/efratror/Downloads/LS4P-master/server/out/completion.js:53:29
    at Array.forEach (<anonymous>) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/efratror/Downloads/LS4P-master/server/out/processing/extractor/processing/CORE/PApplet.class'
}

These is because ubuntu has a case-sensitive filesystem and A.txt an a.txt are two different files.

Solution:

Rename the moduletypes to all lower-case so that the filesystem can find them

let extractionModuleType = [
'CORE',
'AWT',
'DATA',
'EVENT',
'JAVAFX',
'OPENGL'
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions