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

Arm64 Build of Hyper doesn't run on Linux. #6937

Closed
2 tasks done
mokshsinghji opened this issue Dec 21, 2022 · 13 comments · Fixed by #7227
Closed
2 tasks done

Arm64 Build of Hyper doesn't run on Linux. #6937

mokshsinghji opened this issue Dec 21, 2022 · 13 comments · Fixed by #7227

Comments

@mokshsinghji
Copy link

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

Hi, ,when I download the arm64 version of Hyper from both hyper.is and GitHub releases for Linux, and install it using dpkg, it installs successfully, but when I try to run it from both the command line and the activities menu on Ubuntu, it doesn't open any windows.

When I did hyper -v, when I received the output of

innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /opt/Hyper/resources/app.asar/node_modules/node-pty/lib/index.js
- /opt/Hyper/resources/app.asar/session.js
- /opt/Hyper/resources/app.asar/ui/window.js
- /opt/Hyper/resources/app.asar/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function._load (/opt/Hyper/resources/app.asar/plugins.js:103:37)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
    '/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/index.js',
    '/opt/Hyper/resources/app.asar/session.js',
    '/opt/Hyper/resources/app.asar/ui/window.js',
    '/opt/Hyper/resources/app.asar/index.js',
    undefined
  ]
}

A JavaScript error occurred in the main process
Uncaught Exception:
Error: `node-pty` failed to load. Typically this means that it was built incorrectly. Please check the `readme.md` to more info.
    at createNodePtyError (/opt/Hyper/resources/app.asar/session.js:39:34)
    at Object.<anonymous> (/opt/Hyper/resources/app.asar/session.js:46:11)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Function._load (/opt/Hyper/resources/app.asar/plugins.js:103:37)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)

I would really like to use Hyper, but due to this I am unable to use it at all.

@mokshsinghji mokshsinghji changed the title Arm64 Build of Hyper doesn't run. Arm64 Build of Hyper doesn't run on Linux. Dec 21, 2022
@1mansh0w
Copy link

I have the exact same issue. Installed Ubuntu 22.04 (ARM64) with parallels. Tried also the latest Version 4 Canary - same error message.

@LabhanshAgrawal
Copy link
Collaborator

Yeah, there's issues with arm64 builds on github actions, I've recently got an arm64 device to use as host for our github actions, it might take some time, but should be fixed soon. You can try to build on your device if you want something immediate.

@mokshsinghji
Copy link
Author

Hey Labhansh,

I tried to build it myself at the time when I created this issue, and I believe I was getting a similar error about Pty. Maybe not available for arm? 🤷‍♀️

@LabhanshAgrawal
Copy link
Collaborator

Yeah, I remember something similar from when I was trying this last time on qemu, but I think there was some workaround. Will know for sure once I get my hands on the arm device I've ordered.

@mokshsinghji
Copy link
Author

mokshsinghji commented Feb 19, 2023 via email

@randyg3000
Copy link

same error on NVIDIA Orin

Linux maitai1 5.10.104-tegra #2 SMP PREEMPT Thu Apr 27 14:23:04 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

@LabhanshAgrawal
Copy link
Collaborator

LabhanshAgrawal commented Jun 5, 2023

can you guys please try this appimage build https://github.com/LabhanshAgrawal/hyper/actions/runs/5177593536#artifacts
and comment if it works for you

@randyg3000
Copy link

I installed via deb at the link you provided, and it does seem to be up and working. Have not tested anything extensively, or used any plugins but this looks good- thanks!

@randyg3000
Copy link

randyg3000 commented Jun 6, 2023

Was able to modify fontSize and fontFamily by editing ~/.config/Hyper/hyper.json (as opposed to ~/.hyper.js)

@LabhanshAgrawal
Copy link
Collaborator

Was able to modify fontSize and fontFamily by editing ~/.config/Hyper/hyper.json (as opposed to ~/.hyper.js)

We're moving to Json for v4, canary builds are using Json as well. You should be able to open it directly from the preferences menu option and the associated keyboard shortcut (ctrl+shift+, on Linux IIRC)

@mokshsinghji
Copy link
Author

Hi,

I was just testing it out. Like mentioned before, the deb file is working on my Ubuntu 20.04, however the AppImage build does not seem to work. It fails at some point with this error message: [1] 52105 bus error (core dumped) ./Hyper-4.0.0-canary.3-arm64.AppImage. If I run it many times, it will get as far as to actually open up a window, but causes many errors in the terminal, with the window being just plain black.

I will be happy to answer any further questions 😄

Thanks for the progress and the efforts that are being made so far.

@LabhanshAgrawal
Copy link
Collaborator

@mokshsinghji Can you launch the AppImage from the default terminal and then paste the logs here?
I'm testing the build on UTM Ubuntu vm, running the AppImage using AppImage Launcher and everything looks fine.
Sadly my rpi clone is not powerful enough to run a desktop environment, so couldn't test it on a real device.

@LabhanshAgrawal
Copy link
Collaborator

I've opened #7227 for this
Please try the build from that PR and check if it works for you. (you can find it from the checks section or from the latest comment by github actions bot.)

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

Successfully merging a pull request may close this issue.

4 participants