gnome-screenshot fails to grab current window after 10 sec if right click window, grab whole Desktop instead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-utils (Ubuntu) |
Invalid
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
This bug is the opposite of:
https:/
thomas@
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) set logging file gdb-gnome-
(gdb) set logging file on
(gdb) run --window --delay=10
Starting program: /usr/bin/
[Thread debugging using libthread_db enabled]
[New Thread 0xb6d89700 (LWP 28377)]
[New Thread 0xb6c0bb90 (LWP 28582)]
** (gnome-
[New Thread 0xb59ddb90 (LWP 28583)]
[New Thread 0xb51dcb90 (LWP 28584)]
[New Thread 0xb49dbb90 (LWP 28586)]
[Thread 0xb59ddb90 (LWP 28583) exited]
[Thread 0xb51dcb90 (LWP 28584) exited]
[Thread 0xb6c0bb90 (LWP 28582) exited]
[New Thread 0xb6c0bb90 (LWP 28964)]
[New Thread 0xb51dcb90 (LWP 28965)]
Program exited normally.
(gdb) backtrace full
No stack.
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) set logging file gdb-gnome-
(gdb) set logging file on
(gdb) run --window --delay=10
Starting program: /usr/bin/
[Thread debugging using libthread_db enabled]
[New Thread 0xb6de3700 (LWP 29905)]
[New Thread 0xb6c65b90 (LWP 30113)]
** (gnome-
[New Thread 0xb5b1db90 (LWP 30114)]
^C[New Thread 0xb51ffb90 (LWP 30116)]
[Thread 0xb6c65b90 (LWP 30113) exited]
Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb6de3700 (LWP 29905)]
0xb804f430 in __kernel_vsyscall ()
(gdb) backtrace full
#0 0xb804f430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7506167 in poll () from /lib/tls/
No symbol table info available.
#2 0xb75e2c32 in g_main_
max_priority = 2147483647
timeout = -1
some_ready = <value optimized out>
nfds = 11
allocated_nfds = <value optimized out>
fds = (GPollFD *) 0x984f208
__PRETTY_
#3 0xb75e32c2 in IA__g_main_loop_run (loop=0x957f9a8) at /build/
self = (GThread *) 0x9539688
__PRETTY_
#4 0xb7abc309 in IA__gtk_main () at /build/
tmp_list = (GList *) 0x0
functions = (GList *) 0x0
init = (GtkInitFunction *) 0x0
loop = (GMainLoop *) 0x957f9a8
#5 0x0804e1ce in main (argc=3, argv=Cannot access memory at address 0xf
) at gnome-screensho
program = (GnomeProgram *) 0x9541058
context = <value optimized out>
window_arg = 1
include_border_arg = 0
disable_border_arg = 0
interactive_arg = 0
border_effect_arg = (gchar *) 0x0
delay_arg = 10
entries = {{long_name = 0x80528fe "window", short_name = 119 'w', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0xbf950e54, description = 0x80524f8 "Grab a window instead of the entire screen", arg_description = 0x0}, {long_name = 0x8052777 "include-border", short_name = 98 'b', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0xbf950e50, description = 0x8052524 "Include the window border with the screenshot", arg_description = 0x0}, {long_name = 0x8052786 "remove-border", short_name = 66 'B', flags = 0, arg = G_OPTION_ARG_NONE, arg_data = 0xbf950e4c, description = 0x8052554 "Remove the window border from the screenshot", arg_description = 0x0}, {long_name = 0x80528be "delay", short_name = 100 'd', flags = 0, arg = G_OPTION_ARG_INT, arg_data = 0xbf950e40, description = 0x8052584 "Take screenshot after specified delay [in seconds]", arg_description = 0x8052794 "seconds"}, {long_name = 0x805279c "border-effect", short_name = 101 'e', flags = 0, arg = G_OPTION_
__PRETTY_
(gdb) info registers
eax 0xfffffdfc -516
ecx 0xb 11
edx 0xffffffff -1
ebx 0x984f208 159707656
esp 0xbf950bc4 0xbf950bc4
ebp 0xbf950be8 0xbf950be8
esi 0xffffffff -1
edi 0xb7588ff4 -1218932748
eip 0xb804f430 0xb804f430 <__kernel_
eflags 0x200246 [ PF ZF IF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) thread apply all backtrace
Thread 4 (Thread 0xb51ffb90 (LWP 30116)):
#0 0xb804f430 in __kernel_vsyscall ()
#1 0xb759a10b in read () from /lib/tls/
#2 0xb75e063d in child_watch_
#3 0xb760a02f in g_thread_
#4 0xb759350f in start_thread () from /lib/tls/
#5 0xb7510a0e in clone () from /lib/tls/
Thread 3 (Thread 0xb5b1db90 (LWP 30114)):
#0 0xb804f430 in __kernel_vsyscall ()
#1 0xb75973a2 in pthread_
#2 0xb7d420bd in g_cond_
#3 0xb75b9269 in g_async_
#4 0xb75b9367 in IA__g_async_
#5 0xb760b633 in g_thread_
#6 0xb760a02f in g_thread_
#7 0xb759350f in start_thread () from /lib/tls/
#8 0xb7510a0e in clone () from /lib/tls/
Thread 1 (Thread 0xb6de3700 (LWP 29905)):
#0 0xb804f430 in __kernel_vsyscall ()
#1 0xb7506167 in poll () from /lib/tls/
#2 0xb75e2c32 in g_main_
#3 0xb75e32c2 in IA__g_main_loop_run (loop=0x957f9a8) at /build/
#4 0xb7abc309 in IA__gtk_main () at /build/
#5 0x0804e1ce in main (argc=3, argv=Cannot access memory at address 0xf
) at gnome-screensho
(gdb) quit
The program is running. Exit anyway? (y or n) y
thomas@
Note that this only works if process is interrupted with Ctrl+C, if instead cancel is pressed:
thomas@ thomas- laptop: ~$ gdb gnome-screenshot 2>&1 | tee gdb-gnome- screenshot. txtGNU gdb 6.8-debian gnu.org/ licenses/ gpl.html> screenshot. log screenshot. log. gnome-screensho t
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) set logging file gdb-gnome-
(gdb) set logging on
Copying output to gdb-gnome-
(gdb) run
Starting program: /usr/bin/
[Thread debugging using libthread_db enabled]
[New Thread 0xb6d9c700 (LWP 24181)]
[New Thread 0xb6c1eb90 (LWP 24372)]
** (gnome- screenshot: 24181): WARNING **: Couldn't find window manager window
[New Thread 0xb59d2b90 (LWP 24391)]
[New Thread 0xb51d1b90 (LWP 24392)]
[New Thread 0xb49d0b90 (LWP 24394)]
[Thread 0xb59d2b90 (LWP 24391) exited]
[Thread 0xb6c1eb90 (LWP 24372) exited]
[New Thread 0xb6c1eb90 (LWP 24638)]
Program exited normally.
(gdb) backtrace full
No stack.
(gdb) info registers
The program has no registers now.
(gdb) thread apply all backtrace
No registers.
(gdb) quit