Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
58.21k stars 3.35k forks source link

Unable to open a new Tab #5789

Open christophermarsh opened 2 years ago

christophermarsh commented 2 years ago

Version: 1.0.172 Platform: Windows x64 10.0.22543 Plugins: none Frontend: xterm

GET file:///C:/Users/chris/AppData/Local/Programs/Tabby/resources/app.asar/dist/undefined net::ERR_FILE_NOT_FOUND C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-core\dist\index.js:19158 [local] Destroying C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5754 Could not read working directory: Error: Failed to read PROCESS_BASIC_INFORMATION.PebBaseAddress at getWorkingDirectoryFromPID (C:\Users\chris\AppData\Local\Programs\Tabby\resources\app.asar\node_modules\native-process-working-directory\index.js:25:36) at Session. (C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5751:96) at Generator.next () at C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5254:71 at new ZoneAwarePromise (zone.js:1387:1) at __awaiter (C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5250:12) at Session.getWorkingDirectory (C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5742:16) at Session. (C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5627:42) at Generator.next () at fulfilled (C:\Users\chris\AppData\Local\Programs\Tabby\resources\builtin-plugins\tabby-local\dist\index.js:5251:58) at ZoneDelegate.invoke (zone.js:372:1) at Object.onInvoke (core.js:28666:1) at ZoneDelegate.invoke (zone.js:371:1) at Zone.run (zone.js:134:1) at zone.js:1276:1 at ZoneDelegate.invokeTask (zone.js:406:1) at Object.onInvokeTask (core.js:28653:1) at ZoneDelegate.invokeTask (zone.js:405:1) at Zone.runTask (zone.js:178:1) at drainMicroTaskQueue (zone.js:582:1)

hozn commented 2 years ago

I have same issue -- I thought it was that I was limited to only 5 open tabs or similar, but this only affects trying to open a WSL tab (either by choosing the default profile or explicitly my Ubuntu profile).

staticdreams commented 2 years ago

I'm having a similar issue. My initial thought that somehow I was only limited to 3 open tabs. But then I quit Tabby, reopened and I could open as many tabs as I wanted. Problem is this only happens after Tabby was left open for some time. I reproduced it and this is the exact output:

/Applications/Tabby.app/Contents/Resources/builtin-plugins/tabby-core/dist/index.js:30498 Unhandled exception: Error: openpty failed.
    at new UnixTerminal (/Applications/Tabby.app/Contents/Resources/app.asar/node_modules/@tabby-gang/node-pty/lib/unixTerminal.js:102:24)
    at Object.spawn (/Applications/Tabby.app/Contents/Resources/app.asar/node_modules/@tabby-gang/node-pty/lib/index.js:28:12)
    at new f (/Applications/Tabby.app/Contents/Resources/app.asar/dist/webpack:/tabby/lib/pty.ts:98:37)
    at IpcMainImpl.<anonymous> (/Applications/Tabby.app/Contents/Resources/app.asar/dist/webpack:/tabby/lib/pty.ts:149:29)
    at IpcMainImpl.emit (node:events:390:28)
    at IpcMainImpl.emit (node:domain:475:12)
    at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:10780)
    at EventEmitter.emit (node:events:390:28)
    at EventEmitter.apply [as emit] (node:domain:475:12)
    at EventEmitter.n.emit (/Applications/Tabby.app/Contents/Resources/app.asar/dist/webpack:/tabby/node_modules/@sentry/electron/dist/main/integrations/electron.js:63:25)

I'm using the latest : Version 1.0.181 (1.0.181) on Mac M1

wangbin3961 commented 1 year ago

I have the same problem. Try turn off [Shell -> Use conPTY]. It works for me , although the error msg still exist in dev tools.

UAnton commented 1 year ago

Why is the Issue closed if the problem is present and there is no solution?