Git Product home page Git Product logo

Comments (14)

r3seh avatar r3seh commented on August 19, 2024 5

Had the same issue.
This error appears because i installed packet glfw-wayland accidentally instead of glfw-x11. It happened because pacman offered glfw-wayland as first packet when you installed glfw. After I change packets everything works fine

from imhex.

soni38 avatar soni38 commented on August 19, 2024 3

from imhex.

soni38 avatar soni38 commented on August 19, 2024 2

from imhex.

RenaKunisaki avatar RenaKunisaki commented on August 19, 2024 2

I had the same problem when installing from aur and choosing glfw-wayland. I had to remove imhex, glfw, glfw-wayland, install glfw-x11, then install imhex, and now it seems to be working.

from imhex.

coldnew avatar coldnew commented on August 19, 2024 2

According to glfw's CMakeList.txt

You can't use both wayland and x11 build of glfw, so on my Gentoo Linux, I should disable wayland build to make ImHex work on X11 platform

USE="-wayland" emerge media-libs/glfw

Or enable wayland build if I need to make ImHex worked on wayland

USE="wayland" emerge media-libs/glfw

So wayland or X11 platform can't both exist at the same time.

from imhex.

soni38 avatar soni38 commented on August 19, 2024 1

from imhex.

soni38 avatar soni38 commented on August 19, 2024 1

from imhex.

WerWolv avatar WerWolv commented on August 19, 2024

Hi!
Wayland currently has issues. You either need to use X11 or wait for me to implement the workaround discussed in #30

from imhex.

hak8or avatar hak8or commented on August 19, 2024

I think you misunderstood, OP was using xorg, not wayland. I am actually running into the same issue, and I know I am not using wayland (running Nvidia, which doesn't support wayland).

➜ imhex
Glfw Error 65544: Wayland: Failed to connect to display
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to initialize GLFW!
fish: “imhex” terminated by signal SIGABRT (Abort)

~
➜ neofetch
                   -`                    hak8or@hak8ordesktop
                  .o+`                   --------------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Kernel: 5.9.12-arch1-1
               `+oooooo:                 Uptime: 5 hours, 3 mins
               -+oooooo+:                Packages: 1826 (pacman)
             `/:-:++oooo+:               Shell: fish 3.1.2
            `/++++/+++++++:              Resolution: 2560x1440, 1440x2560
           `/++++++++++++++:             WM: i3
          `/+++ooooooooooooo/`           Theme: Numix-Frost-Light [GTK2/3]
         ./ooosssso++osssssso+`          Icons: Numix [GTK2], Numix-Square [GTK3]
        .oossssso-````/ossssss+`         Terminal: alacritty
       -osssssso.      :ssssssso.        CPU: AMD Ryzen 7 2700X (16) @ 3.700GHz
      :osssssss/        osssso+++.       GPU: NVIDIA GeForce GTX 1070
     /ossssssss/        +ssssooo/-       Memory: 3552MiB / 32091MiB
   `/ossssso+/:-        -:/+osssso+-
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/
 .`                                 `/

Not sure if this helps, but here is a chunk of strace output;

openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=281528, ...}) = 0
mmap(NULL, 281528, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcf8bab4000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libwayland-cursor.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \20\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=30512, ...}) = 0
mmap(NULL, 32976, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcf8ab56000
mmap(0x7fcf8ab57000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fcf8ab57000
mmap(0x7fcf8ab59000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fcf8ab59000
mmap(0x7fcf8ab5a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fcf8ab5a000
close(3)                                = 0
mprotect(0x7fcf8ab5a000, 4096, PROT_READ) = 0
munmap(0x7fcf8bab4000, 281528)          = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=281528, ...}) = 0
mmap(NULL, 281528, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcf8bab4000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libwayland-egl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \20\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=13872, ...}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcf8ab51000
mmap(0x7fcf8ab52000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fcf8ab52000
mmap(0x7fcf8ab53000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fcf8ab53000
mmap(0x7fcf8ab54000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fcf8ab54000
close(3)                                = 0
mprotect(0x7fcf8ab54000, 4096, PROT_READ) = 0
munmap(0x7fcf8bab4000, 281528)          = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=281528, ...}) = 0
mmap(NULL, 281528, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcf8bab4000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libxkbcommon.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 P\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=276224, ...}) = 0
mmap(NULL, 278544, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcf8ab0c000
mmap(0x7fcf8ab11000, 126976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fcf8ab11000
mmap(0x7fcf8ab30000, 122880, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7fcf8ab30000
mmap(0x7fcf8ab4e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x41000) = 0x7fcf8ab4e000
close(3)                                = 0
mprotect(0x7fcf8ab4e000, 8192, PROT_READ) = 0
munmap(0x7fcf8bab4000, 281528)          = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/run/user/1000/wayland-0"}, 27) = -1 ENOENT (No such file or directory)
close(3)                                = 0
write(2, "Glfw Error 65544: Wayland: Faile"..., 56Glfw Error 65544: Wayland: Failed to connect to display
) = 56
munmap(0x7fcf8ab51000, 16400)           = 0
munmap(0x7fcf8ab0c000, 278544)          = 0
munmap(0x7fcf8ab56000, 32976)           = 0
close(0)                                = 0
close(0)                                = -1 EBADF (Bad file descriptor)
futex(0x7fcf8adb4080, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "terminate called after throwing "..., 48terminate called after throwing an instance of ') = 48
write(2, "std::runtime_error", 18std::runtime_error)      = 18
write(2, "'\n", 2'
)                      = 2
write(2, "  what():  ", 11  what():  )             = 11
write(2, "Failed to initialize GLFW!", 26Failed to initialize GLFW!) = 26
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid()                                = 26404
gettid()                                = 26404
tgkill(26404, 26404, SIGABRT)           = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=26404, si_uid=1000} ---
+++ killed by SIGABRT (core dumped) +++
fish: “strace imhex” terminated by signal SIGABRT (Abort)

from imhex.

rHermes avatar rHermes commented on August 19, 2024

I'm having the same issues, and I'm using X11 too.

from imhex.

WerWolv avatar WerWolv commented on August 19, 2024

I honestly don't know what the reason for this could be. It looks like a GLFW / setup issue to me but I can't say for sure. Fwiw I had people being able to run it on both Wayland (with certain limitations) and X11 without issues

from imhex.

rHermes avatar rHermes commented on August 19, 2024

I honestly don't know what the reason for this could be. It looks like a GLFW / setup issue to me but I can't say for sure. Fwiw I had people being able to run it on both Wayland (with certain limitations) and X11 without issues

I get that it's hard to remote debug, but if there is anything I can do to help you, I'm game :)

from imhex.

rHermes avatar rHermes commented on August 19, 2024

Thanks @r3seh this was it for me!

from imhex.

hak8or avatar hak8or commented on August 19, 2024

Wow, shame on me, that was also my issue. I created a comment on the aur for this here to see if glfw-x11 could be the "default" instead of the wayland variant.

Would it be possible to somehow had imhex try to initialize the wayland variant, and if that fails, try the x11 variant, or vice versa? I am not familiar with glfw, so this may be an absurd suggestion. If not, then I can create an issue for this. Regardless, works for me, dabbling with it, great job!

from imhex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.