Fails to start

Issue #8 resolved
Sergey Il'inykh created an issue
rion@dizzynb ~/projects/psi/git/iris $ sviewgl /home/rion/projects/psi/git/iconsets/system/default/logo_128.png
rion@dizzynb ~/projects/psi/git/iris $ echo $?
0

No any other signs of activity. only --help works.

Comments (20)

  1. Sergey Il'inykh reporter

    Gentoo, Intel(R) HD Graphics 4000 KDE,

    I believe gl works fine since I don't have any problem with KDE effect.

    But the application just stops instantly without error. That's really strange. Well I could compile it some unexpected way though, since I didn't much care about dependencies.

  2. Andrey Ugolnik repo owner

    I have idea, try to do this:

    $ git clone https://bitbucket.org/andreyu/simple-viewer-gl.git
    $ cd simple-viewer-gl
    $ git checkout development
    $ make release
    $ ./sviewgl /path/to/image 
    
  3. Sergey Il'inykh reporter

    Doesn't work either. From cmake logs I see it now wants OpenEXR as well and I have not it installed. But probably it's unrelated.

  4. Sergey Il'inykh reporter

    I think I know why it doesn't work. I tries to use wayland for some reason but I'm currenty on X. And your code checks for errors on initialization but just silently exits on any failure.

    Last few lines from strace

    open("/home/rion/.config/sviewgl/config", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=1281, ...}) = 0
    fstat(3, {st_mode=S_IFREG|0644, st_size=1281, ...}) = 0
    read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0\0\0\0"..., 4096) = 1281
    lseek(3, -781, SEEK_CUR)                = 500
    read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0\0\0\0"..., 4096) = 781
    close(3)                                = 0
    brk(0x73c000)                           = 0x73c000
    socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
    connect(3, {sa_family=AF_UNIX, sun_path="/var/run/user/1000/wayland-0"}, 31) = -1 ENOENT (No such file or directory)
    close(3)                                = 0
    exit_group(0)                           = ?
    +++ exited with 0 +++
    

    So it would be good if you added some printings on init failures.

  5. Sergey Il'inykh reporter

    Nice, now we know a little more about the issue =)

    $ sviewgl /home/rion/projects/psi/git/iconsets/system/default/logo_128.png
    (EE) Can't initialize GLFW.
    
  6. Sergey Il'inykh reporter

    Now it's silent again. But atleast error code. glfw has been compiled with Wayland. But I'm not using Wayland at the moment. I guess it's glfw problem. It can't detect current graphical environment.

    I'll try to recompile it w/o Wayland and report you back

  7. Sergey Il'inykh reporter

    Yeah it works with glfw being compiled w/o Wayland support!

    btw you application generates just insane amount of system calls.

  8. Sergey Il'inykh reporter

    Well if it's possible to reduce the amount of syscalls laptop users definitely will be thankful =)

  9. Log in to comment