After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773699 - Nautilus crashes after keyboard navigation
Nautilus crashes after keyboard navigation
Status: RESOLVED DUPLICATE of bug 773150
Product: nautilus
Classification: Core
Component: Navigation
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-30 14:40 UTC by Stefan
Modified: 2016-11-01 21:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screencast - Exact steps to reproduce the crash (484.34 KB, video/webm)
2016-11-01 21:56 UTC, Stefan
Details
Other Steps without a crash (537.98 KB, video/webm)
2016-11-01 21:57 UTC, Stefan
Details
Steps without a crash (515.90 KB, video/webm)
2016-11-01 21:58 UTC, Stefan
Details

Description Stefan 2016-10-30 14:40:11 UTC
On Fedora 25 Beta, Nautilus crashes after keyboard navigation. Please see the Fedora Issue for abrt informations. 

https://bugzilla.redhat.com/show_bug.cgi?id=1387855


Prepare the following directory structure
~/myParent/myChild

Steps to reproduce
* Open Nautilus
* Type "myParent" to search the directory - Now the directory myParent can be opened by the "ENTER" key
* Press the "arrow down" key to select the directory "myChild"
* Press the "ENTER" key >> Nautilus will be killed by SIGSEGV.

Please note, if you select the directory "myChild" with the mouse, it works.


Nautilus version: nautilus-3.22.1-1.fc25
Comment 1 Ernestas Kulik 2016-10-30 14:46:19 UTC

*** This bug has been marked as a duplicate of bug 773150 ***
Comment 2 Daniel Boles 2016-10-30 14:50:48 UTC
I can't reproduce using the given steps.

but certainly, the commit from the linked bug will avoid this, as it will now return when it sees the file_list is NULL, which it is in the OP's backtrace.
Comment 3 Stefan 2016-10-30 17:34:10 UTC
I can reproduce both issues - this and bug 773150. And the behavior looks equals. In both, Nautilus draws a dotted border before pressing the enter key. So, lets wait, until the fix arrives in Fedora.
Thx.
Comment 4 Daniel Boles 2016-10-30 17:49:30 UTC
I'm assuming you're both using list mode. While my fix for that might cover this too, I'm curious to understand the original instructions better, as I can't get them to produce the same results.

So when you've moved into the myParent directory and press Down, it only moves focus and doesn't select? i.e. you only get a dotted focus rectangle, but not a blue selection highlight? That was what I got with the simpler replication steps outlined in my ticket, where I didn't use searching or anything.

However, here, I get both - focus and selection - and so when I press Enter to activate myChild, it's already selected, so the crasher when activating a NULL selection list is not hit.

So either I'm doing something different, or Fedora has a patch I don't, or the original steps are missing a detail.

This is with 3.22.1 on Debian sid (so I'm not accidentally running my patched version, for example)
Comment 5 Ernestas Kulik 2016-10-30 17:52:42 UTC
(In reply to dboles from comment #4)
> I'm assuming you're both using list mode.

No, I switched to it to try to reproduce.

> While my fix for that might cover
> this too, I'm curious to understand the original instructions better, as I
> can't get them to produce the same results.

I cannot reproduce it consistently myself, it is really finicky.
Comment 6 Stefan 2016-11-01 21:55:06 UTC
(In reply to dboles from comment #4)
> I'm assuming you're both using list mode. 
Yes, I'm using list mode


> So when you've moved into the myParent directory and press Down, it only
> moves focus and doesn't select? i.e. you only get a dotted focus rectangle,
> but not a blue selection highlight? That was what I got with the simpler
> replication steps outlined in my ticket, where I didn't use searching or
> anything.
Yes, this is the behavior.

> 
> However, here, I get both - focus and selection - and so when I press Enter
> to activate myChild, it's already selected, so the crasher when activating a
> NULL selection list is not hit.
> 
> So either I'm doing something different, or Fedora has a patch I don't, or
> the original steps are missing a detail.


I have spent some time for testing and set up a Virtualbox with Fedora 25 Beta and tested this with Nautilus-3.22.0-1.fc25 and Nautilus-3.22.1-1.fc25.

Primarly, this was the result:

nautilus-3.22.0-1.fc25
* Grid View works
* List View works

nautilus-3.22.1-1.fc25
* Grid View works
* List View crashes


I have tested 3 scenarios and recorded a screen-cast for each with List-View and Nautilus 3.22.1
* Exact steps to reproduce the crash 
* Steps without a crash
* Other Steps without a crash

The test steps are based on the same directory structure ~/parentDir/subDir
The steps are complete – nothing is missing.
Sometimes, it's tricky - dotted border or a label in the search result is highlighted or the icon in the search result is highlighted.


Exact steps to reproduce the crash 
* Open Nautilus
* type 'parentDir'
>> Now, the label of the directory 'parentDir' is marked as selected (blue color)
* press 'Enter' key
* press 'arrow down' key
>> Now, the line 'subDir' will have a dotted border
* press 'Enter' key 
>> Now, the crash happens


Steps without a crash
* Open Nautilus
* type 'parentDir'
>> Now, the label of the directory 'parentDir' is marked as selected (blue color)
* press 'Enter' key
* press 'arrow down' key
>> Now, the line 'subDir' will have a dotted border
* press 'arrow down' key again
>> Now, the line 'subDir' is marked as selected (blue color) - this result is different from the crash
* press 'Enter' key 
>> the folder 'subDir' is opened


Other Steps without a crash
* Open Nautilus
* type 'parentDir'
>> Now, the label of the directory 'parentDir' is marked as selected (blue color)
* press 'arrow down' key - this step is different from the crash
>> Now, the icon of the directory 'parentDir' is marked as selected (blue color)
* press 'Enter' key
* press 'arrow down' key
>> Now, the line 'subDir' is marked as selected (blue color) - this result is different from the crash
* press 'Enter' key 
>> the folder 'subDir' is opened
Comment 7 Stefan 2016-11-01 21:56:58 UTC
Created attachment 338910 [details]
Screencast - Exact steps to reproduce the crash
Comment 8 Stefan 2016-11-01 21:57:28 UTC
Created attachment 338911 [details]
Other Steps without a crash
Comment 9 Stefan 2016-11-01 21:58:05 UTC
Created attachment 338912 [details]
Steps without a crash