Bug 1319421

Summary: gnome-documents crashes on startup
Product: [Fedora] Fedora Reporter: Heiko Adams <bugzilla>
Component: gnome-documentsAssignee: Elad Alfassa <elad>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: ccecchi, debarshir, elad, fedoraparked, pranav913
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-25 23:55:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1319417    
Bug Blocks:    

Description Heiko Adams 2016-03-19 18:46:05 UTC
Description of problem:
gnome-documents crashes on startup with following error message:
$ gnome-documents

(org.gnome.Documents:24611): Gjs-WARNING **: JS ERROR: TypeError: this.view is undefined
LOKView<._init@resource:///org/gnome/Documents/js/lokview.js:140
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Embed<._init@resource:///org/gnome/Documents/js/embed.js:93
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
MainWindow<._init@resource:///org/gnome/Documents/js/mainWindow.js:85
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._createWindow@resource:///org/gnome/Documents/js/application.js:663
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<.vfunc_activate@resource:///org/gnome/Documents/js/application.js:692
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
main@resource:///org/gnome/Documents/js/main.js:48
run@resource:///org/gnome/gjs/modules/package.js:192
@/usr/bin/gnome-documents:6


(org.gnome.Documents:24611): Gjs-CRITICAL **: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy() or dispose() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.

(org.gnome.Documents:24611): Gjs-CRITICAL **: The offending signal was destroy on Gjs_ViewContainer 0x557bfb497a50.

(org.gnome.Documents:24611): Gjs-CRITICAL **: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy() or dispose() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.

(org.gnome.Documents:24611): Gjs-CRITICAL **: The offending signal was destroy on Gjs_ViewContainer 0x557bfb497c10.

(org.gnome.Documents:24611): Gjs-CRITICAL **: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy() or dispose() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.

(org.gnome.Documents:24611): Gjs-CRITICAL **: The offending signal was destroy on Gjs_ViewContainer 0x557bfb497dd0.

(org.gnome.Documents:24611): Gjs-CRITICAL **: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy() or dispose() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.

(org.gnome.Documents:24611): Gjs-CRITICAL **: The offending signal was destroy on Gjs_PreviewView 0x557bfb497f90.
Segmentation fault (Speicherabzug geschrieben)


Version-Release number of selected component (if applicable):
$ rpm -q gnome-documents
gnome-documents-3.19.4-3.fc24.x86_64
$ rpm -q gjs
gjs-1.45.3-2.fc24.x86_64

How reproducible:
allways

Steps to Reproduce:
1. Open gnome-docuemts from terminal
2.
3.

Actual results:
gnome-documents crashes on startup

Expected results:
gnome-document should start and work as expected

Additional info:

Comment 1 Pranav Kant 2016-03-19 18:51:25 UTC
This is fixed upstream, but unfortunately there is no release after 3.19.4 for gnome-documents. 

These upstream commits should fix the crash:

https://git.gnome.org/browse/gnome-documents/commit/?id=99b3072d9e8f55bedc4cbcadf9746ff16ca4bd16

https://git.gnome.org/browse/gnome-documents/commit/?id=1380ad9c8dcdebf9d4970dd04757ef696d82ca32

Comment 2 Heiko Adams 2016-03-19 18:55:35 UTC
Is it possible to apply the patches to Fedora's current gnome-documents package?

Comment 3 Pranav Kant 2016-03-19 18:58:14 UTC
Yes, definitely. I am afraid I do not have the access to commit and fix this, but anyone else looking at this and who have the access, please apply these patches.

Comment 4 Pranav Kant 2016-03-25 23:55:38 UTC
This is fixed in latest version, 3.20.