Awn

Removing a launcher while it's being loaded makes awn crash

Bug #260927 reported by jac3n
0
Affects Status Importance Assigned to Milestone
Awn
Fix Released
High
moonbeam

Bug Description

Ubuntu 8.04.1, AMD64
http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main
Avant Window Navigator 0.3.1
Running Compiz
CG : nVidia GeForce 7100 GS, running NVIDIA UNIX x86_64 Kernel Module 169.12 Thu Feb 14 17:51:09 PST 2008

No backtrace

HOW TO :

- Create a launcher (for me, it was GIMP)
- Run it by clicking on it
- While the app is launching (cursor 'wait'), remove the launcher (right click, remove)
The app loads. There is no icon for it in the dock.
After that, try to focus/maximise/move/etc... the app's window : AWN will crash brutaly.

Revision history for this message
Mark Lee (malept) wrote :

Could you follow the instructions on the wiki to provide a backtrace for us?

http://wiki.awn-project.org/SubmittingBugReports#Producing_a_good_backtrace

Changed in awn:
status: New → Incomplete
Revision history for this message
jac3n (jacen-mail) wrote : Re: [Bug 260927] Re: Removing a launcher while it's being loaded makes awn crash

It's ok i've some time to loose =)

2008/8/24 Mark Lee <email address hidden>

> Could you follow the instructions on the wiki to provide a backtrace for
> us?
>
> http://wiki.awn-
> project.org/SubmittingBugReports#Producing_a_good_backtrace
>
> ** Summary changed:
>
> - Removing a laucher while it's beeing loaded makes awn crashes
> + Removing a launcher while it's being loaded makes awn crash
>
> ** Tags added: launchers segfault
>
> ** Changed in: awn
> Status: New => Incomplete
>
> --
> Removing a launcher while it's being loaded makes awn crash
> https://bugs.launchpad.net/bugs/260927
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
jac3n (jacen-mail) wrote :
Download full text (3.8 KiB)

Here is the backtrace :

nelson@nelson-desktop:~$ gdb avant-window-navigator
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
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 "x86_64-linux-gnu"...
(gdb) run
Starting program: /usr/bin/avant-window-navigator
[Thread debugging using libthread_db enabled]
[New Thread 0x7f0c2d4b97a0 (LWP 6567)]
Screen is composited.
LOADED : /usr/share/applications/firefox.desktop
LOADED : /usr/share/applications/pidgin.desktop
LOADED : /usr/share/applications/totem.desktop
LOADED : /usr/share/applications/ooo-writer.desktop
LOADED : /usr/share/applications/banshee-1.desktop
LOADED : /usr/share/applications/amule.desktop
LOADED : /usr/share/applications/gnome-terminal.desktop
APPLET : /usr/lib/awn/applets/taskman.desktop
APPLET : /usr/share/avant-window-navigator/applets/showdesktop.desktop
APPLET : /usr/share/avant-window-navigator/applets/shinyswitcher.desktop
WM=compiz
ShinySwitcher Message: compiz detected
ShinySwitcher Message: viewport/compiz detected.. using existing workspace
config
cols = 1, rows=1
AwnTask: drag_data_received_handl
 Receiving string: file:///usr/share/applications/gimp.desktop
Desktop file: /usr/share/applications/gimp.desktop
LOADED : file:///usr/share/applications/gimp.desktop

Launched application : 6582
Remove : /usr/share/applications/gimp.desktop

(avant-window-navigator:6567): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `<invalid>'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0c2d4b97a0 (LWP 6567)]
_task_wnck_state_changed (window=<value optimized out>,
    old=<value optimized out>, new=<value optimized out>, task=0xec40c0)
    at awn-task.c:1015
1015 awn-task.c: No such file or directory.
    in awn-task.c
(gdb) bt
#0 _task_wnck_state_changed (window=<value optimized out>,
    old=<value optimized out>, new=<value optimized out>, task=0xec40c0)
    at awn-task.c:1015
#1 0x00007f0c2bafebcf in IA__g_closure_invoke (closure=0x15c8e70,
    return_value=0x0, n_param_values=3, param_values=0x7fff354ef270,
    invocation_hint=0x7fff354ef150)
    at /build/buildd/glib2.0-2.16.4/gobject/gclosure.c:490
#2 0x00007f0c2bb127f8 in signal_emit_unlocked_R (node=0x14f4770, detail=0,
    instance=0x189c2e0, emission_return=0x0,
    instance_and_params=0x7fff354ef270)
    at /build/buildd/glib2.0-2.16.4/gobject/gsignal.c:2440
#3 0x00007f0c2bb14255 in IA__g_signal_emit_valist (instance=0x189c2e0,
    signal_id=<value optimized out>, detail=0, var_args=0x7fff354ef4f0)
    at /build/buildd/glib2.0-2.16.4/gobject/gsignal.c:2199
#4 0x00007f0c2bb14643 in IA__g_signal_emit (instance=0x2, signal_id=0,
    detail=32) at /build/buildd/glib2.0-2.16.4/gobject/gsignal.c:2243
#5 0x00007f0c2d0b913a in ?? () from /usr/lib/libwnck-1.so.22
#6 0x00007f0c2d0b9f5a in ?? () from /usr/lib/libwnck-1.so.22
#7 0x00007f0c2b4623d4 in IA__g_main_context_dispatch (context=0x659280)
    at /build/buildd/glib2....

Read more...

Revision history for this message
moonbeam (rcryderman) wrote :

Thanks for the backtrace. Not a surprise that this breaks causes the taskmanager code to die a horrible death. I'll have a look into this early this week. Considering the the fact that it's probably a hard to track down race condition my initial inclination will be to see how easy it is to disable the libwnck task menu until the app has "loaded". Any objections to this as a fix until the taskmanager rewrite?

Changed in awn:
assignee: nobody → rcryderman
status: Incomplete → Triaged
Revision history for this message
jac3n (jacen-mail) wrote :

Your are probably more qualificated than me to decide how to fix it. My
knowledges of programming are limited, Especially in C.
I'm just doing my god-user-job by reporting the bug :)

PS: im' french so i have not understand all that you said...

Cordially

Revision history for this message
Michal Hruby (mhr3) wrote :

Can you still reproduce this with the latest AWN? 0.3.1 bzr530 or later?

Mark Lee (malept)
Changed in awn:
importance: Undecided → High
status: Triaged → Incomplete
moonbeam (rcryderman)
Changed in awn:
status: Incomplete → In Progress
milestone: none → 0.4.0
moonbeam (rcryderman)
Changed in awn:
status: In Progress → Fix Committed
Mark Lee (malept)
Changed in awn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.