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 761338 - Bijiben often crashes at startup
Bijiben often crashes at startup
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
3.18.x
Other Linux
: Normal major
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
: 767568 767571 767572 770223 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-01-30 21:14 UTC by Alex Willmy
Modified: 2017-12-25 01:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bijiben strace (224.59 KB, text/plain)
2017-09-01 23:23 UTC, Isaque Galdino
  Details
Bijiben backtrace (4.51 KB, text/plain)
2017-09-01 23:23 UTC, Isaque Galdino
  Details
application: Import notes only when manager is ready (2.70 KB, patch)
2017-12-21 14:43 UTC, Mohammed Sadiq
none Details | Review
memo-provider: Don't add custom border to pixbuf (1.96 KB, patch)
2017-12-21 15:59 UTC, Mohammed Sadiq
committed Details | Review

Description Alex Willmy 2016-01-30 21:14:14 UTC
On Fedora 23 (Gnome 3.18.2) Bijiben often (but not always) crashes at startup. Here is the console output:

** (bijiben:2640): WARNING **: Enumerator failed : No such file or directory

(bijiben:2640): GLib-GIO-CRITICAL **: g_file_enumerator_close_async: assertion 'G_IS_FILE_ENUMERATOR (enumerator)' failed

** (bijiben:2640): WARNING **: Enumerator failed : No such file or directory

(bijiben:2640): GLib-GIO-CRITICAL **: g_file_enumerator_close_async: assertion 'G_IS_FILE_ENUMERATOR (enumerator)' failed
sending the mass change
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
bijiben: xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
Comment 1 Isaque Galdino 2017-09-01 23:23:10 UTC
Created attachment 358963 [details]
Bijiben strace

I'm not sure if this is related to the same problem, but I've just installed it in a fresh new Fedora 26 install.

Yesterday I created a new note and today I was not able to open it.

Actually it doesn't even start, so I'm adding more information so we can try to find out what's going on.
Comment 2 Isaque Galdino 2017-09-01 23:23:53 UTC
Created attachment 358964 [details]
Bijiben backtrace

This is output of gdb bt.
Comment 3 Isaque Galdino 2017-09-01 23:29:15 UTC
*** Bug 770223 has been marked as a duplicate of this bug. ***
Comment 4 Isaque Galdino 2017-09-07 01:58:59 UTC
Just to make it clean, this problems happen when using Xorg, not Wayland.
Comment 5 Mohammed Sadiq 2017-12-15 12:34:20 UTC
I think the issue is in _get_icon() in biji-memo-provider.c.

Specifically the line:
  embed = gd_embed_image_in_frame (pix, "resource:///org/gnome/bijiben/thumbnail-frame.png", &frame_slice, &frame_slice);

commenting the following (line 496) resolves the issue:
 if (!_get_icon (self, &self->info.icon))


I believe that this is because the function gd_embed_image_in_frame() is supposed to be run in UI thread, but may be it's not. May be a g_idle_add() might resolve the issue.
Comment 6 Mohammed Sadiq 2017-12-21 14:43:11 UTC
Created attachment 365841 [details] [review]
application: Import notes only when manager is ready

The notes from tomboy and gnote where being imported before
the manager was ready. As this is not possible, the user was
welcome with a segfault instead.

So, import the notes only after the manager is ready, and test
for the import paths before importing.
Comment 7 Mohammed Sadiq 2017-12-21 15:59:56 UTC
Created attachment 365843 [details] [review]
memo-provider: Don't add custom border to pixbuf

Adding a custom border with the pixbuf doesn't make any difference.
Also, by removing this, we can remove a further dependency on libgd.
This was also causing a segfault as some display related code was
being run by libgd in the non-UI thread.

This commit avoids the custom border along with removing the related
libgd code, and saving from a crash
Comment 8 Isaque Galdino 2017-12-24 20:38:38 UTC
Review of attachment 365843 [details] [review]:

Awesome, it fixed all my X11 issues, like:

[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
bijiben: xcb_io.c:259: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (imagem do núcleo gravada)

and

Gdk-Message: bijiben: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

It also speeded up startup time.

Thanks man!
Comment 9 Isaque Galdino 2017-12-24 20:39:41 UTC
I consider this bug closed, if this problem repeats, please re-open it. Thx.
Comment 10 Mohammed Sadiq 2017-12-25 01:11:33 UTC
*** Bug 767572 has been marked as a duplicate of this bug. ***
Comment 11 Mohammed Sadiq 2017-12-25 01:11:44 UTC
*** Bug 767571 has been marked as a duplicate of this bug. ***
Comment 12 Mohammed Sadiq 2017-12-25 01:11:54 UTC
*** Bug 767568 has been marked as a duplicate of this bug. ***