Bug 2063 - matchbox-desktop exits abnormally when we press Alt+F4
Summary: matchbox-desktop exits abnormally when we press Alt+F4
Status: RESOLVED FIXED
Alias: None
Product: Sato
Classification: Yocto Project Subprojects
Component: Matchbox (show other bugs)
Version: 1.2
Hardware: All Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Jussi Kukkonen
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
: 7510 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-08 07:47 UTC by Dexuan Cui
Modified: 2016-03-29 08:28 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
3.jpg (23.45 KB, image/jpeg)
2012-03-08 07:47 UTC, Dexuan Cui
no flags Details
4.jpg (15.73 KB, image/jpeg)
2012-03-08 07:50 UTC, Dexuan Cui
no flags Details
5.jpg (36.54 KB, image/jpeg)
2012-03-08 08:01 UTC, Dexuan Cui
no flags Details
6.jpg (104.52 KB, image/jpeg)
2012-03-08 08:01 UTC, Dexuan Cui
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dexuan Cui 2012-03-08 07:47:31 UTC
Created attachment 343 [details]
3.jpg

I was trying some BSP board and found this bug.
Later I found actually qemu has the same bug, so we can debug this in qemu.


Steps to reproduce this bug:
0) press Ctrl+Alt+F to enter fullscreen mode of qemu; BTW, if you're using vncviewer to access your linux host, you might need to press F8 or something to enter fullscreen mode of vncviewer first(or else, Alt+F4 may be interpreted as closing your vncviewer)
1) runqemu qemux86 core-image-sato and we see the sato desktop;
2) run some program(like the terminal): see 3.jpg;
3) press Alt+F4 to close the terminal, so we see the sato desktop again; the difference from that in 1) is: the icon of Terminal is focused;
4)press Alt+F4 again, we see 4.jpg -- matchbox-desktop has exited abnormally and we see a weird window.
5) now let's click the icon of ConnmanD -- the icon near the numerical clock -- we get 5.jpg and let's clock the Close button of the dialog, we see matchbox-panel and matchbox-window-manager will crash -- see 6.jpg.

This bug is not that important to qemu since we usually don't use fullscreen mode of qemu.
But for BSP, people can be annoyed to meet with this bug as they have to reset the board to get access to the board.
Comment 1 Dexuan Cui 2012-03-08 07:50:05 UTC
Created attachment 344 [details]
4.jpg
Comment 2 Dexuan Cui 2012-03-08 08:01:23 UTC
Created attachment 345 [details]
5.jpg
Comment 3 Dexuan Cui 2012-03-08 08:01:47 UTC
Created attachment 346 [details]
6.jpg
Comment 4 Stoicescu Cornel 2012-09-18 15:36:24 UTC
Hello. 

This can be reproduced in any qemu without full screen by using Alt+C instead of Alt+F4.
Comment 5 Ross Burton 2013-02-14 16:46:20 UTC
I can't replicate this on atom-pc.  Either it's machine specific or it's mysteriously fixed itself.
Comment 6 Stoicescu Cornel 2013-02-26 14:39:54 UTC
This issue is still present. Steps to reporduce:

1. boot up a core-image-sato-qemux86 image
2. after successful boot, press ALT+C 
3. Notice image is in a technical hang

Tested in master:7d22ef28e64de06b6238d0ef9b664c0bee6efa46
Comment 7 Richard Purdie 2014-05-03 17:45:10 UTC
Could we retest and confirm this is still an issue please?
Comment 8 Ross Burton 2015-03-24 16:42:01 UTC
*** Bug 7510 has been marked as a duplicate of this bug. ***
Comment 9 Ross Burton 2015-03-24 16:42:24 UTC
More reproduction tips:

STEPS TO REPRODUCE:

1. After the image boots, open the Terminal from matchbox interface (or other app fwiw)
2. Hit ALT+F4 few times (more then 1 time) to close the Terminal.
3. Open Connman-properties from the top left of the icon
4. Close connman-properties (press the X button on the top right)


ACTUAL RESULT
2. The matchbox panel with all the apps will dissapear. Only the "tray" menu from the top left will remain active.
3. Connman appears
4. matchbox crashes. also X server.
Comment 10 Alexandru Georgescu 2015-03-27 13:33:23 UTC
(In reply to comment #9)
> More reproduction tips:
> 
> STEPS TO REPRODUCE:
> 
> 1. After the image boots, open the Terminal from matchbox interface (or
> other app fwiw)
> 2. Hit ALT+F4 few times (more then 1 time) to close the Terminal.
> 3. Open Connman-properties from the top left of the icon
> 4. Close connman-properties (press the X button on the top right)
> 
> 
> ACTUAL RESULT
> 2. The matchbox panel with all the apps will dissapear. Only the "tray" menu
> from the top left will remain active.
> 3. Connman appears
> 4. matchbox crashes. also X server.

So I confirm this in fido as well.
Comment 11 Ross Burton 2015-10-20 14:20:12 UTC
Reassigning to Jussi as this is Content.  Feel free to re-assign in your team.
Comment 12 Jussi Kukkonen 2016-03-29 08:28:41 UTC
Fixed:

commit 1209eb2841c5a4f333f31b1c6a0148fef2bc5795
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Wed Mar 23 13:17:25 2016 +0200

    matchbox-desktop: Do not close desktop on alt-F4
    
    There are cases where user can close the desktop with a
    well timed alt-F4: prevent this from happening
    
    [YOCTO #2063]
    
    (From OE-Core rev: e0c5bcb73f3663990ccb489a75cbc59927fc9e13)
    
    Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>