-
-
Notifications
You must be signed in to change notification settings - Fork 198
Editor can not be shown again after click close icon #400
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
Comments
This is only happening with the flatpak? Could ou test the appImage and see if it behaves differently? @LyzardKing any idea? |
It works fine for me in Ubuntu 20.04. |
@LyzardKing
|
@LyzardKing |
I detected now that this issue NOT happened if run ksnip from terminal ! It is only happened if run from launcher icon in application menu ! |
@DamirPorobic |
Thanks for letting me know. I didn't have time yet to look into this. As soon as I find something I'll let you know. |
I am able to reproduce this issue on Ubuntu 18.04 with 0.7.3 deb plus latest flatpak and appimage. I identified file in /tmp it was reading immediately before the failure: Thanks Damir for ksnip, it's been marvelous! Hope this helps! 💙 |
@garymoon thanks Gary, that is a huge help, didn't have the single instance lock on my radar at all :) |
@DamirPorobic Happy to help mate! 😃 I'm unable to repro with Based on the strace of the original failure (which I can share fully in private if you'd like) it looks like some part of what's happening with the lock files convinces ksnip the Starting at the first reference to any of the lock files: openat(AT_FDCWD, "/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = 17
fcntl(17, F_SETFD, FD_CLOEXEC) = 0
close(17) = 0
stat("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
semget(0x5101003b, 1, IPC_CREAT|IPC_EXCL|0600) = 48
semctl(48, 0, SETVAL, 0x1) = 0
openat(AT_FDCWD, "/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = -1 EEXIST (File exists)
stat("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
semget(0x5101003b, 1, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists)
semget(0x5101003b, 1, IPC_CREAT|0600) = 48
semctl(48, 0, SETVAL, 0x1) = 0
semop(48, [{0, -1, SEM_UNDO}], 1) = 0
openat(AT_FDCWD, "/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = -1 EEXIST (File exists)
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
shmget(0x51010022, 1, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists)
semop(48, [{0, 1, SEM_UNDO}], 1) = 0
unlink("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5") = 0
semctl(48, 0, IPC_RMID, NULL) = 0
openat(AT_FDCWD, "/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = 17
fcntl(17, F_SETFD, FD_CLOEXEC) = 0
close(17) = 0
stat("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
semget(0x5101003b, 1, IPC_CREAT|IPC_EXCL|0600) = 49
semctl(49, 0, SETVAL, 0x1) = 0
semop(49, [{0, -1, SEM_UNDO}], 1) = 0
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
shmget(0x51010022, 0, 0400) = 48
shmat(48, NULL, SHM_RDONLY) = 0x7ff6b4c7d000
shmctl(48, IPC_STAT, {shm_perm={uid=1000, gid=1000, mode=0600, key=1359020066, cuid=1000, cgid=1000}, shm_segsz=1024, shm_cpid=11327, shm_lpid=21885, shm_nattch=2, shm_atime=1602961800, shm_dtime=1602961508, shm_ctime=1602211865}) = 0
semop(49, [{0, 1, SEM_UNDO}], 1) = 0
semop(49, [{0, -1, SEM_UNDO}], 1) = 0
shmdt(0x7ff6b4c7d000) = 0
shmget(0x51010022, 0, 0400) = 48
shmctl(48, IPC_STAT, {shm_perm={uid=1000, gid=1000, mode=0600, key=1359020066, cuid=1000, cgid=1000}, shm_segsz=1024, shm_cpid=11327, shm_lpid=21885, shm_nattch=1, shm_atime=1602961800, shm_dtime=1602961800, shm_ctime=1602211865}) = 0
semop(49, [{0, 1, SEM_UNDO}], 1) = 0
unlink("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5") = 0
semctl(49, 0, IPC_RMID, NULL) = 0
openat(AT_FDCWD, "/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = 17
fcntl(17, F_SETFD, FD_CLOEXEC) = 0
close(17) = 0
stat("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
semget(0x5101003b, 1, IPC_CREAT|IPC_EXCL|0600) = 50
semctl(50, 0, SETVAL, 0x1) = 0
openat(AT_FDCWD, "/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = -1 EEXIST (File exists)
stat("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
semget(0x5101003b, 1, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists)
semget(0x5101003b, 1, IPC_CREAT|0600) = 50
semctl(50, 0, SETVAL, 0x1) = 0
semop(50, [{0, -1, SEM_UNDO}], 1) = 0
openat(AT_FDCWD, "/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0640) = -1 EEXIST (File exists)
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
stat("/tmp/qipc_sharedmemory_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
shmget(0x51010022, 1, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists)
semop(50, [{0, 1, SEM_UNDO}], 1) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 17
connect(17, {sa_family=AF_UNIX, sun_path="/tmp/org.ksnip.singleInstanceServer"}, 110) = -1 ENOENT (No such file or directory)
close(17) = 0
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
openat(AT_FDCWD, "/dev/tty", O_RDONLY|O_CLOEXEC) = 17
fcntl(17, F_SETFD, FD_CLOEXEC) = 0
close(17) = 0
write(2, "QIODevice::write (QLocalSocket):"..., 49QIODevice::write (QLocalSocket): device not open
) = 49
write(2, "QAbstractSocket::waitForBytesWri"..., 74QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
) = 74
unlink("/tmp/qipc_systemsem_KsnipInstanceLock45e4a2c2f71278828d34b44521bcc5f6326393f5") = 0
semctl(50, 0, IPC_RMID, NULL) = 0
write(16, "\1\v\1\0\1\0\0\0\0\0\0\0\0\0\0\0", 16) = 16
close(16) = 0
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 16
read(16, "0-7\n", 8192) = 4
close(16) = 0
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{iov_base="\1\0\10\0\4\0`\f\345\1\0\0\0\0\0\0\1\0\1\0\0\0\2\0!\0\0\0\0\0\0\0"..., iov_len=84}], 1) = 84
futex(0x559915eff928, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x559915f0ba70, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x559915f0ba20, FUTEX_WAKE_PRIVATE, 1) = 0
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{iov_base=".\0\2\0\2\0`\f", iov_len=8}], 1) = 8
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{iov_base="<0\2\0\0\0`\f+\0\1\0", iov_len=12}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 12
poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\1\2\251\1\0\0\0\0\7\0`\r\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
shutdown(3, SHUT_RDWR) = 0
close(3) = 0
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x559916099ba0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x559916099b50, FUTEX_WAKE_PRIVATE, 1) = 0
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x559916099ba0, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x559916099b50, FUTEX_WAKE_PRIVATE, 1) = 0
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x559916099ba0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x559916099b50, FUTEX_WAKE_PRIVATE, 1) = 0
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x559916099ba0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x559916099b50, FUTEX_WAKE_PRIVATE, 1) = 0
inotify_rm_watch(13, 1) = 0
close(13) = 0
write(14, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x5599160ca3f0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x559916069870, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x559916069820, FUTEX_WAKE_PRIVATE, 1) = 0
brk(0x559916232000) = 0x559916232000
getpid() = 21885
exit_group(0) = ?
+++ exited with 0 +++ We wouldn't want to make it too easy for you now would we? 😈 |
I'm really puzzled how the single instance lock is related to this issue, it should only come into play when starting a new instance but when I understand the initial report, it seems to be happening on the same instance. @Nokia808 can you disable single-instance in ksnip config and try to reproduce this issue? |
@kendoori has provided a video showing the issue https://youtu.be/nZSGv8KPi9I Can someone try out few things:
|
For me, I can reliably get it to happen upon close. Minimize works properly. |
What about the single-sinatnce? It can be disabled in settings under |
For me, by default it was set to single instance. So the behavior I captured, was with single instance on. I tried to deselecting and restarting, which led to the same behavior. I then close, and reselect single instance, then restarted again. Close still produces the same behavior no matter what combination I have configured. |
I was still having this issue when running 1.8.0 installed as a .deb on Linux Mint 20. I tried installing the 1.9.0 continuous .deb build and the issue persisted. I decided to uninstall and use the appimage instead. Oddly, the appimage doesn't have the issue. |
Ok, that's news. I haven't had the time to look into it but that's valuable information. |
I was able to reproduce this issue in my Mint Cinnamon 20.1 VM and to resolve with a simple fix. Would be nice if you could double check on your side. |
I installed 1.9.0 continuous .deb and it works properly.
…--Kenny
On Sat, Jan 23, 2021 at 1:09 PM Damir Porobić ***@***.***> wrote:
I was able to reproduce this issue in my Mint Cinnamon 20.1 VM and to
resolve with a simple fix. Would be nice if you could double check on your
side.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#400 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASVQPAJZC3TFG4RNRFKNC3S3MGG3ANCNFSM4PTSCM6Q>
.
|
Hi. I detect this error since 1st time you ship this cute application on FlatHub.
To reproduce it:
a- right click system try icon of ksnip, then click "show editor" from right click menu, it will never bring editor !
b- take a screen-shot using hot keys. The screenshot tacked but editor never shown automatically. Try now right click system try icon of ksnip, then click "show editor" from right click menu, it will never bring editor !
The only way to restore it, is to exit ksnip application then re-launching it again !
I test this error after updating to last version of flatpak package that you just few hrs pushed.
I'm on Fedora Linux 32 X64 bit Cinnamon edition.
The text was updated successfully, but these errors were encountered: