Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gajim
gajim
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 203
    • Issues 203
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 22
    • Merge Requests 22
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gajim
  • gajimgajim
  • Issues
  • #9452

Closed
Open
Opened Nov 19, 2018 by Markus Birth@mbirth

Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0

Versions

  • OS: xUbuntu 18.10 with updates as of 2018-11-18
  • Gajim version: 1.1.0-2 (from official PPA / ftp.gajim.org)
  • GTK version: 2.24.32-3ubuntu1 and 3.24.1-1ubuntu2
  • Python-nbxmpp version: 0.6.8-1

Steps to reproduce the problem

  1. Start Gajim
  2. Open a chat window with HTTP uploaded image with long filename in history
  3. Watch Gajim crashing

Expected behavior

Gajim keeps running, maybe shows an error popup.

Actual behavior

Gajim crashes completely with "Fatal IO error 11 (Resource temporarily unavailable)". (Previous version 1.1.0-beta2 of Gajim gave "BadImplementation (server does not implement operation)".)

It seems to be caused by a HTTP uploaded image with a very long filename.

The URL of the image it tries to show is something like https://xmpp.myserver.com/upload/7cdbe36276846214d3ea1062732aa5b1e47f164d/VfqaZYeJ3CSz4JHDnkAhdgZRE7cqKfZHY1RPGNSO/2018-11-19_17_31_41-Neue_Nachricht___Geben_Sie_den_Devs_ihr_Ops.__-_my1234_email.com_-_Email_-_Vival.png.

Log shows:

19.11.2018 21:51:07 (I) gajim.plugin_system.preview Writing '/home/mbirth/.local/share/gajim/downloads/2018-11-19_17_31_41-Neue_Nachricht___Geben_Sie_den_Devs_ihr_Ops.__-_my1234_email.com_-_Email_-_Vival_3ecffd74c100528e5d3f3da7bf5a75e813c66919.png' of size 35505...
19.11.2018 21:51:07 (E) gajim.plugin_system.preview Failed to write file '/home/mbirth/.local/share/gajim/downloads/2018-11-19_17_31_41-Neue_Nachricht___Geben_Sie_den_Devs_ihr_Ops.__-_my1234_email.com_-_Email_-_Vival_3ecffd74c100528e5d3f3da7bf5a75e813c66919.png'!
19.11.2018 21:51:07 (E) gajim.plugin_system.preview [Errno 36] File name too long: '/home/mbirth/.local/share/gajim/downloads/2018-11-19_17_31_41-Neue_Nachricht___Geben_Sie_den_Devs_ihr_Ops.__-_my1234_email.com_-_Email_-_Vival_3ecffd74c100528e5d3f3da7bf5a75e813c66919.png'
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python3: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Gdk-Message: 21:51:07.610: gajim: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

I don't know if this is something the Url image preview plugin should catch. However, I think a plugin error shouldn't be able to completely crash Gajim.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gajim/gajim#9452