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

[IPC Library: File Watcher (nsfw)] Error: dlopen failed: cannot locate symbol #1879

Closed
yozman opened this issue Jul 14, 2020 · 7 comments
Closed
Labels
blocked This issue cannot proceed due to external factors bug Something isn't working os-android Android/Termux related upstream Needs to be fixed upstream
Milestone

Comments

@yozman
Copy link

yozman commented Jul 14, 2020

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version:

run on termux

$ uname -a
Linux localhost 4.14.83-perf+ #1 SMP PREEMPT Wed May 6 14:25:36 CST 2020 aarch64 Android

error message

[IPC Library: File Watcher (nsfw)] Error: dlopen failed: cannot locate symbol "_ZN14InotifyServiceC1ENSt6__ndk110shared_ptrI10EventQueueEENS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE" referenced by "/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-nsfw/build/Release/nsfw.node"...                                                            at Object.Module._extensions..node (internal/modules/cjs/loader.js:1250:18)                                           at Module.load (internal/modules/cjs/loader.js:1049:32)    at Function.Module._load (internal/modules/cjs/loader.js:937:14)                                                      at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)         at Object.<anonymous> (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-nsfw/lib/src/index.js:3:16)                  at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)                                             at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:119)
    at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:586)
    at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:259)
    at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:383)
    at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:955)
    at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:659
    at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:494)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:260:13)
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (internal/streams/destroy.js:100:8)
    at emitErrorCloseNT (internal/streams/destroy.js:68:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
error VS Code exited unexpectedly with code 1

code-server --version

3.4.1
@code-asher
Copy link
Member

Interesting, this is different from the errors we've been running into on Termux/Android. #1730 (comment)

@code-asher
Copy link
Member

code-asher commented Jul 16, 2020

@yozman if you get a chance please try installing code-server using the steps here and see if they work for you: #1730 (comment)

@yozman
Copy link
Author

yozman commented Jul 18, 2020

Interesting, this is different from the errors we've been running into on Termux/Android. #1730 (comment)

in my case, I run with 0.0.0.0:8080, it starts successfully and works well first time, but after maybe 10 minutes, it will come up with error on terminal, I killed the process use ctrl+c and restart with code-server, cannot start with same error

@yozman
Copy link
Author

yozman commented Jul 18, 2020

@yozman if you get a chance please try installing code-server using the steps here and see if they work for you: #1730 (comment)

follow the step, here is output

$ code-server
info  Using config file ~/.config/code-server/config.yaml
info  Using user-data-dir ~/.local/share/code-server
info  code-server 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
info  HTTP server listening on http://0.0.0.0:8090
info    - No authentication
info    - Not serving HTTPS
[IPC Library: File Watcher (nsfw)] Error: dlopen failed: cannot locate symbol "_ZN14InotifyServiceC1ENSt6__ndk110shared_ptrI10EventQueueEENS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE" referenced by "/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-nsfw/build/Release/nsfw.node"...
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1250:18)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/node_modules/vscode-nsfw/lib/src/index.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at t.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:119)
    at e.load (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:586)
    at i (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:259)
    at Object.errorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:29:383)
    at e.triggerErrorback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:955)
    at /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:659
    at ReadFileContext.callback (/data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:16:494)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:260:13)

@yozman
Copy link
Author

yozman commented Jul 18, 2020

here is my config file

$ pwd
/data/data/com.termux/files/home
$ cat ~/.config/code-server/config.yaml 
bind-addr: 0.0.0.0:8090
auth: none
password: 7a866d82512a13ca13afdf67
cert: false
disable-telemetry: true
$ 

@yozman
Copy link
Author

yozman commented Jul 18, 2020

I think it's a bug with nsfw native module,
so I opened an issue here
Axosoft/nsfw#117

@nhooyr nhooyr added blocked This issue cannot proceed due to external factors bug Something isn't working labels Dec 8, 2020
@nhooyr nhooyr added the os-android Android/Termux related label Jan 18, 2021
@code-asher code-asher added the upstream Needs to be fixed upstream label Mar 16, 2021
@jsjoeio jsjoeio added this to the Backlog milestone Apr 29, 2021
@stale
Copy link

stale bot commented Oct 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Oct 26, 2021
@stale stale bot closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue cannot proceed due to external factors bug Something isn't working os-android Android/Termux related upstream Needs to be fixed upstream
Projects
None yet
Development

No branches or pull requests

4 participants