Fails to start
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)
-
repo owner -
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.
-
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
-
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.
-
repo owner OpenEXR isn't required dependency. And viewer should fine compiled without it.
-
repo owner - changed status to resolved
-
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.
-
repo owner Error messages on GLFW initialization failure added.
-
repo owner - changed status to open
-
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.
-
repo owner This mean that your glfw library compiled without Wayland support.
-
repo owner I add another glfw error handler.
-
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
-
reporter Yeah it works with glfw being compiled w/o Wayland support!
btw you application generates just insane amount of system calls.
-
repo owner Like clean and swap_frame_buffer? ;)
-
repo owner What about
strace glxgears
? -
reporter the same but it's animated =)
-
reporter and glxgears has less EAGAIN (Resource temporarily unavailable)
-
repo owner - changed status to resolved
I think that is a normal for OpenGL applications. You can filter out unimportant messages.
-
reporter Well if it's possible to reduce the amount of syscalls laptop users definitely will be thankful =)
- Log in to comment
Which OS you use and which video card you have?