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 744643 - LaunchSearch complains: Child name 'view' not found in GtkStack
LaunchSearch complains: Child name 'view' not found in GtkStack
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
3.15.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-02-17 08:58 UTC by Debarshi Ray
Modified: 2015-03-17 20:42 UTC
See Also:
GNOME target: 3.16
GNOME version: ---


Attachments
[gnome-3-14] application: Clean up OffsetController signals (1.11 KB, patch)
2015-03-12 09:18 UTC, Debarshi Ray
committed Details | Review
embed: Remove unused variable (685 bytes, patch)
2015-03-12 09:19 UTC, Debarshi Ray
committed Details | Review
embed: Unbreak launch-search (1.24 KB, patch)
2015-03-13 18:45 UTC, Debarshi Ray
committed Details | Review
embed: Unbreak re-activation before the inactivity timeout (2.29 KB, patch)
2015-03-13 18:46 UTC, Debarshi Ray
none Details | Review
embed: Unbreak re-activation before the inactivity timeout (2.46 KB, patch)
2015-03-16 14:53 UTC, Debarshi Ray
none Details | Review
embed: Unbreak re-activation before the inactivity timeout (2.31 KB, patch)
2015-03-17 20:35 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2015-02-17 08:58:32 UTC
Steps to reproduce:

1) Start gnome-documents

2) Close the application window

3) While the process is still running, quickly (ie. in less than 12 seconds) start a gnome-shell search that will produce a hit from gnome-documents

4) Click the gnome-documents icon (not a search item) from the results - this calls LaunchSearch

5) As a new application window opens, there is a WARNING in the console:
        Child name 'view' not found in GtkStack

6) Select an item from the overview

7) Try going back to the overview from the preview
Comment 1 Debarshi Ray 2015-03-03 10:13:13 UTC
After the recent round of patches to split the views, we have this back trace:

(gnome-documents:3855): Gjs-WARNING **: JS ERROR: Exception in callback for signal: launch-search: Error: Not handled
Embed<._restoreLastPage@/opt/share/gnome-documents/js/embed.js:211
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Embed<._onQueryStatusChanged@/opt/share/gnome-documents/js/embed.js:226
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Embed<._init@/opt/share/gnome-documents/js/embed.js:156
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
_Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
MainWindow<._init@/opt/share/gnome-documents/js/mainWindow.js:90
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
_Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
Application<._createWindow@/opt/share/gnome-documents/js/application.js:655
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._onLaunchSearch@/opt/share/gnome-documents/js/application.js:767
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
_emit@resource:///org/gnome/gjs/modules/signals.js:124
ShellSearchProvider<.LaunchSearch@/opt/share/gnome-documents/js/shellSearchProvider.js:456
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
_handleMethodCall@resource:///org/gnome/gjs/modules/overrides/Gio.js:261
_wrapJSObject/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:331
start@/opt/share/gnome-documents/js/main.js:30
@<command line>:1
Comment 2 Debarshi Ray 2015-03-12 09:18:51 UTC
Created attachment 299160 [details] [review]
[gnome-3-14] application: Clean up OffsetController signals
Comment 3 Debarshi Ray 2015-03-12 09:19:26 UTC
Created attachment 299161 [details] [review]
embed: Remove unused variable
Comment 4 Cosimo Cecchi 2015-03-12 17:36:25 UTC
Review of attachment 299161 [details] [review]:

Sure
Comment 5 Cosimo Cecchi 2015-03-12 17:36:47 UTC
Review of attachment 299160 [details] [review]:

Looks good
Comment 6 Debarshi Ray 2015-03-12 23:25:33 UTC
Now we need to figure out what is happening in master (ie. comment 2).
Comment 7 Debarshi Ray 2015-03-13 18:45:38 UTC
Created attachment 299347 [details] [review]
embed: Unbreak launch-search

This should fix the problem in comment 2.
Comment 8 Debarshi Ray 2015-03-13 18:46:19 UTC
Created attachment 299348 [details] [review]
embed: Unbreak re-activation before the inactivity timeout
Comment 9 Cosimo Cecchi 2015-03-13 20:34:13 UTC
Review of attachment 299348 [details] [review]:

Some minor comments

::: src/application.js
@@ +706,2 @@
         // reset state
+        documentManager.clearRowRefs(null);

clearRowRefs() doesn't take arguments so you don't need to pass null

::: src/documents.js
@@ +1227,3 @@
+        for (let idx in items) {
+            items[idx].rowRefs = {};
+        };

No need for semicolon

::: src/view.js
@@ +103,3 @@
+        let items = Application.documentManager.getItems();
+        for (let idx in items) {
+            this._onItemAdded(null, items[idx]);

You can pass the document manager instead of null here
Comment 10 Cosimo Cecchi 2015-03-13 20:34:38 UTC
Review of attachment 299347 [details] [review]:

Looks good
Comment 11 Debarshi Ray 2015-03-16 14:53:41 UTC
Created attachment 299517 [details] [review]
embed: Unbreak re-activation before the inactivity timeout
Comment 12 Debarshi Ray 2015-03-17 20:35:52 UTC
Created attachment 299642 [details] [review]
embed: Unbreak re-activation before the inactivity timeout
Comment 13 Cosimo Cecchi 2015-03-17 20:39:26 UTC
Review of attachment 299642 [details] [review]:

LG
Comment 14 Debarshi Ray 2015-03-17 20:41:55 UTC
Comment on attachment 299642 [details] [review]
embed: Unbreak re-activation before the inactivity timeout

Committing after addressing review comments.
Comment 15 Debarshi Ray 2015-03-17 20:42:31 UTC
Thanks for taking a look so soon, Cosimo!