basket does not save grabbed image

Bug #1733782 reported by Henrik on 2017-11-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
basket
Undecided
Unassigned

Bug Description

When trying to grab a portion of the screen - be it with the inbuilt screen grabbing or the gnome screenshot tool - the image does not get saved in the basket: when basket is quit and reopened, the screenshot is lost. Basket Version is the 2.10beta running on Ubuntu 16.04 gnome shell.

Also witnessed crashes working with screenshots.

gl.bars (gl-bars) wrote :

Does it still show 1x1 image note in place of screenshot? I'm pretty sure this problem was fixed in 2.11, please build that version from source if possible.

As for the crashes, try starting basket from terminal and see if any information is printed there on crash. If it is, please post it here.

Henrik (newbeg) wrote :

Yes it does.

Installing the the 2.11 version with the installer fails, because there are libraries missing.

What procedure needs to be followed in order to install missing libraries on 16.04LTS ?

gl.bars (gl-bars) wrote :

1. Open Software & Updates and enable "Source code"
2. Run in terminal:
sudo apt-get build-dep basket

Henrik (newbeg) wrote :

Thank you for your help. Following instructions you posted installation now completes successfully.

But startup time seems unusually slow. There is an unusual delay of about 25 seconds before basket fully appears (SSD).

Here is terminal output seen during delay period:

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
"sni-qt/4019" WARN 11:55:01.726 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE

gl.bars (gl-bars) wrote :

Can you run the following command and see what is the output during the delay?
strace basket |& tee ~/basket_strace.log
(you might need to change ptrace_scope if it fails with Operation not permitted)

Henrik (newbeg) wrote :

Sure ! Here it is:

recvmsg(3, 0x7fffd911a270, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1&\0\0\0\3\0\0\0\202\0\0\0\1\1o\0\20\0\0\0/MainApp"..., 152}, {"\0\0\0\0\36\0\0\0\0\0\0\n/home/marc\0\0\0\1\377\377\377\377\0\0"..., 38}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 190
poll([{fd=3, events=POLLIN}], 1, -1"sni-qt/32185" WARN 17:02:55.697 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE

# DELAY 20 sec.

# RESUME

) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\2\1\1\4\0\0\0_\4\0\0000\0\0\0\6\1s\0\7\0\0\0:1.2363\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 68
recvmsg(3, 0x7ffd767b8f00, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
close(3) = 0
exit_group(0) = ?
+++ exited with 0 +++

PS: there is another bug I noticed while creating a new basket, the "new basket" window that opens is bigger than screen size & not resizeable - should I open a new bug ticket for this ?

gl.bars (gl-bars) wrote :

This might happen because of some problem with KUniqueApplication and QDBus. Please run this command and then start Basket in parallel:
dbus-monitor |& tee ~/basket_dbus.log

Again, copy the lines printed during the delay. Stop dbus-monitor by pressing Ctrl+C.

Exit Basket and do an additional test: _while Basket is stuck_, attach debugger using this command:
gdb basket `pidof basket`

Then in gdb issue these two commands:
bt
quit

Copy the output of bt command.

Please open a new ticket for the new basket bug.

Henrik (newbeg) wrote :
Download full text (3.7 KiB)

Please find part of requested output during delay below. It is not all the output as this is very long. So I abbreviated by putting a (...) between beginning and end during delay.

As for the bt command: did you mean to restart basket and do "gdb basket `pidof basket`" while basket is stuck, or did you mean to stop basket and then run the command without restarting ?

If gdb is run while basket is stuck, output is "no stack".

Will open new ticket for window resize eventually.

Thank you for your help.

###

output of "gdb basket `pidof basket`" during delay when starting basket:

method call time=1514452430.855527 sender=:1.428 -> destination=org.kde.kglobalaccel serial=36 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=doRegister
   array [
      string "basket"
      string "basket4/"
      string "BasKet Note Pads"
      string ""
   ]
method call time=1514452430.855541 sender=:1.428 -> destination=org.kde.kglobalaccel serial=37 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=setShortcut
   array [
      string "basket"
      string "basket4/"
      string "BasKet Note Pads"
      string ""
   ]
   array [
   ]
   uint32 2
method return time=1514452430.855654 sender=:1.393 -> destination=:1.428 serial=6305 reply_serial=36
method return time=1514452430.855660 sender=:1.393 -> destination=:1.428 serial=6306 reply_serial=37
   array [
   ]
method call time=1514452430.855740 sender=:1.428 -> destination=org.kde.kglobalaccel serial=38 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=setShortcut
   array [
      string "basket"
      string "basket4/"
      string "BasKet Note Pads"
      string ""
   ]
   array [
   ]
   uint32 8
method return time=1514452430.855800 sender=:1.393 -> destination=:1.428 serial=6307 reply_serial=38
   array [
   ]
method call time=1514452430.924117 sender=:1.428 -> destination=org.kde.kglobalaccel serial=39 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=doRegister
   array [
      string "basket"
      string "basket5/"
      string "BasKet Note Pads"
      string ""

(...)

method call time=1514452461.004640 sender=:1.428 -> destination=org.kde.kglobalaccel serial=1491 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=setInactive
   array [
      string "basket"
      string "global_show_hide_main_window"
      string "BasKet Note Pads"
      string "Hauptfenster zeigen/verstecken"
   ]
method call time=1514452461.004713 sender=:1.428 -> destination=org.kde.kglobalaccel serial=1492 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=setInactive
   array [
      string "basket"
      string "global_paste"
      string "BasKet Note Pads"
      string "Inhalt der Zwischenablage im aktuellen Korb einfügen"
   ]
method call time=1514452461.004792 sender=:1.428 -> destination=org.kde.kglobalaccel serial=1493 path=/kglobalaccel; interface=org.kde.KGlobalAccel; member=setInactive
   array [
      string "basket"
      string "global_paste_selection"
      string "BasKet Note Pads"
      string "Selektion einfügen im aktuellen Korb"
   ]
method call time=1514452461.004844 sender=:1.428 -> destination=org.kde.kglobalaccel serial=1494 path=/kglobalaccel; i...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers