EBADF: bad file descriptor error [Ubuntu 16.04]
Open
Nobody has claimed this yet.
🐧 Platform: Linux
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- Your Hyper.app version is 2.0.0. Please verify your using the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- Any relevant information from devtools? (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
- Is the issue reproducible in vanilla Hyper.app?
Issue
When I try to open Preferences it throws the below error.
Error: EBADF: bad file descriptor, write
at Object.fs.writeSync (fs.js:745:20)
at SyncWriteStream._write (internal/fs.js:75:6)
at doWrite (_stream_writable.js:329:12)
at writeOrBuffer (_stream_writable.js:315:5)
at SyncWriteStream.Writable.write (_stream_writable.js:241:11)
at Console.warn (console.js:51:16)
at r.error (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:184:690)
at t.error (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:187:730)
at X (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:443:874)
at e.invokeFunction (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:177:998)
at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:444:824
at n.Class.derive._creator.done (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:80:254)
at Object.g [as _notify] (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:75:343)
at Object.enter (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:78:418)
at n.Class.derive._creator._run (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:719)
at n.Class.derive._creator._chainedError (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:78)
at n (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:76:929)
at Object.g [as _notify] (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:75:170)
at Object.enter (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:78:418)
at n.Class.derive._oncancel._run (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:719)
at n.Class.derive._oncancel._error (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:236)
at Object.g [as _notify] (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:75:170)
at Object.enter (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:78:418)
at n.Class.derive._oncancel._run (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:719)
at n.Class.derive._oncancel._error (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:79:236)
at t.handlers.(anonymous function) (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:142:643)
at e.onMessage (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:143:460)
at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:141:865
at e.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:94:344)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:148:536)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)```
<!-- ~/.hyper.js config -->
- **Hyper version**: undefined "2.0.0"
- **OS ARCH VERSION:** linux x64 4.4.0-119-generic
- **Electron:** 1.8.4 **LANG:** en_IN
- **SHELL:** /bin/bash **TERM:** screen
<details>
<summary><strong> ~/.hyper.js contents</strong></summary>
<pre>
<code>
{
"updateChannel": "stable",
"fontSize": 12,
"fontFamily": "Menlo, \"DejaVu Sans Mono\", Consolas, \"Lucida Console\", monospace",
"fontWeight": "normal",
"fontWeightBold": "bold",
"cursorColor": "rgba(248,28,229,0.8)",
"cursorAccentColor": "#000",
"cursorShape": "BLOCK",
"cursorBlink": false,
"foregroundColor": "#fff",
"backgroundColor": "#000",
"selectionColor": "rgba(248,28,229,0.3)",
"borderColor": "#333",
"css": "",
"termCSS": "",
"showHamburgerMenu": "",
"showWindowControls": "",
"padding": "12px 14px",
"colors": {
"black": "#000000",
"red": "#C51E14",
"green": "#1DC121",
"yellow": "#C7C329",
"blue": "#0A2FC4",
"magenta": "#C839C5",
"cyan": "#20C5C6",
"white": "#C7C7C7",
"lightBlack": "#686868",
"lightRed": "#FD6F6B",
"lightGreen": "#67F86F",
"lightYellow": "#FFFA72",
"lightBlue": "#6A76FB",
"lightMagenta": "#FD7CFC",
"lightCyan": "#68FDFE",
"lightWhite": "#FFFFFF"
},
"shell": "",
"shellArgs": [
"--login"
],
"env": {},
"bell": "SOUND",
"copyOnSelect": false,
"defaultSSHApp": true
}
{
"plugins": [],
"localPlugins": []
}
</code>
</pre>
</details>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named in the report. First reproduce opening Preferences on Ubuntu 16.04 and trace the EBADF stack through the Electron application; done means Preferences opens without the uncaught exception and the behavior is verified against the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, linux, typescript, ubuntu
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100