Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Efratror opened this issue Mar 21, 2022 · 0 comments · May be fixed by #19
Open

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

Efratror opened this issue Mar 21, 2022 · 0 comments · May be fixed by #19

Comments

@Efratror
Copy link

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'
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant