Fatal io error 11 resource temporarily unavailable on x server 0

I am trying to read some Images(and later intend to do some task on them), and while Images are being read into memory. I want to display a animated '.gif' Image. For that purpose I had to use Thre...

I am trying to read some Images(and later intend to do some task on them), and while Images are being read into memory. I want to display a animated ‘.gif’ Image. For that purpose I had to use Threads. Now it is giving Error :

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

And some times it gives Error :

python: Fatal IO error 0 (Success) on X server :0.0.

(Yes Error message changes almost alternately)
I have no idea as to why this error Occurred and how to remove it.

import wx
from wx import animate
import thread
import os
class AniGif(wx.Dialog):
   def __init__(self, parent, id, title):
      wx.Dialog.__init__(self, parent, id, title, size=(300, 300))
      buttonOk = wx.Button(self, id=3, label="Ok", pos=(75, 50), size=(50, 50))
      self.Bind(wx.EVT_BUTTON, self.OnClick, id=3)

   def OnClick(self, event) :
      clock = "loading.gif"
      showclock = wx.animate.GIFAnimationCtrl(self, -1, clock)
      showclock.Play()
      thread.start_new_thread(grabImages, ( ))

def grabImages():
    global dirim
    dirim = {}
    path = './images/soccer/'
    listing = os.listdir(path)
    for infile in listing:
        if len(infile)>4 and infile[-4:]=='.jpg' :
            print path+infile
            dirim[infile]=wx.Bitmap(path+infile)

app = wx.App()
dia = AniGif(None, -1, "Ani Gif")
dia.ShowModal()
dia.Destroy()
app.MainLoop()

if I replace this line

dirim[infile]=wx.Bitmap(path+infile)

with a dummy line :

dirim[infile]=infile

It work’s fine , No Error.

And if I replace this line

thread.start_new_thread(grabImages, ( ))

with a something like :

grabImages()

It work’s fine , No Error. Only Problem I am not able to display animated gif then ..

I have tried removing ~/.gconf/desktop/gnome/peripherals as mentioned in the link given by joaquin. It doesn’t work ..
and I also tried ‘xhost +’ . I found from somewhere on the net. Still no success.

Please tell what is happening in this code .. and suggest a solution
I am using ubuntu 10.04 OS.
And directory permissions are :

drwxr-xr-x images
drwxr-xr-x soccer

Python verion’s detail are :
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2

Модератор: Bizdelnick

JackDaniels

Сообщения: 1
ОС: openSuse 11.1

Подскажите пожайлуста «XIO: fatal IO error 11…»

Код: Выделить всё

openSuse:~ #  glxgear
25917 frames in 5.0 seconds = 5183.355 FPS
29501 frames in 5.0 seconds = 5900.136 FPS
23692 frames in 5.0 seconds = 4738.336 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 52 requests (51 known processed) with 0 events remaining.

Код: Выделить всё

openSuse:~ #  fgl_glxgears
Using GLX_SGIX_pbuffer
8614 frames in 5.0 seconds = 1722.800 FPS
10107 frames in 5.0 seconds = 2021.400 FPS
9788 frames in 5.0 seconds = 1957.600 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 88750 requests (88748 known processed) with 0 events remaining.

Код: Выделить всё

openSuse:~ # uname -a
Linux openSuse 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 i686 i386 GNU/Linux

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server «:0.0»
after 88750 requests (88748 known processed) with 0 events remaining.

Как от этого избавиться? подскажите?
openSuse 11.1 / ATI Mobility Radeon X1800 256Mb
openSuse:~ # glxinfo — http://codepaste.ru/1699/
openSuse:~ # glxgears -info — http://codepaste.ru/1704/
xorg.conf — http://codepaste.ru/1702/
/var/log/SaX.log — http://codepaste.ru/1700/
/var/log/Xorg.0.loghttp://codepaste.ru/1703/
А так же буду благодарен за ссылку на хорошую статью или помощь прям здесь как настроить 2-й монитор, мой на ноутбуке 1440х900@60, а второй 1600х1200@60.
Заранее спасибо!

Аватара пользователя

VarLog

Сообщения: 311
ОС: openSUSE 12.2

Re: Подскажите пожайлуста «XIO: fatal IO error 11…»

Сообщение

VarLog » 19.03.2009 11:44

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server «:0.0»
after 88750 requests (88748 known processed) with 0 events remaining.

Насколько я знаю, от этого не нужно избавляться. Этим Х сервер извещает о потере связи с окном (или процессом), то есть его закрытием. Подобные сообщения появляются довольно часто, и мне кажется ошибкой не являются.

На самом деле всё очень просто…

  • Index
  • » Programming & Scripting
  • » x11 programming: fatal IO error 11 (Resource temporarily unavailable)

Pages: 1

#1 2019-06-29 13:37:19

Portal
Member
Registered: 2019-03-11
Posts: 48

x11 programming: fatal IO error 11 (Resource temporarily unavailable)

I am a complete noob at x11. I have a simple C program:

#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
int main()
{
        Display *dpy;
        int screen;
        Window win;
        XEvent event;

        dpy=XOpenDisplay(NULL);
        if(dpy==NULL)
        {
                fprintf(stderr, "cant");
                exit(1);
        }
        screen=DefaultScreen(dpy);
        printf("%d %d", XDefaultDepth(dpy, screen), XDisplayPlanes(dpy, screen));

        win=XCreateSimpleWindow(dpy,RootWindow(dpy,screen) ,50,50,800,500,10, BlackPixel(dpy,screen), WhitePixel(dpy,screen));
        XSelectInput(dpy,win,ExposureMask | KeyPressMask);
        XMapWindow(dpy,win);

        while(1)
        {
                XNextEvent(dpy,&event);

        }
        return 0;
}

On line 21, I tried to display some infos about the screen. However, the program complained:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 9 requests (9 known processed) with 0 events remaining.

#2 2019-06-29 13:49:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: x11 programming: fatal IO error 11 (Resource temporarily unavailable)

It compiled and ran fine for me.  Are you sure that error is actually from the line you think it is?  Note that there is no newline in your format string, so the two numbers printed out could easily be covered by a later error (i.e. if you closed the window perhaps).

Last edited by Trilby (2019-06-29 13:50:44)


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#3 2019-06-30 02:16:08

Portal
Member
Registered: 2019-03-11
Posts: 48

Re: x11 programming: fatal IO error 11 (Resource temporarily unavailable)

It did work after I added the newlines… shouldn’t it still display even without the newlines? Can you explain more what you meant by

Trilby wrote:

the two numbers printed out could easily be covered by a later error (i.e. if you closed the window perhaps).

#4 2019-06-30 03:03:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: x11 programming: fatal IO error 11 (Resource temporarily unavailable)

It’s possible that the error output included ansi codes to move the cursor to the start of the line.  However, even more likely is that the error message was from a separate thread that caused the program to exit, and due to IO buffering, the numbers were never flushed prior to the exit.

You could see this more directly by removing the newline(s) again, but adding a fflush(stdout) right after the print command.

But this has nothing to do with X, specifically, this is just general IO buffering.


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#5 2019-06-30 05:20:50

Portal
Member
Registered: 2019-03-11
Posts: 48

Re: x11 programming: fatal IO error 11 (Resource temporarily unavailable)

that makes sense thanks

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Installation & Upgrades
  • [ubuntu] «Fatal IO error 11» (XServer crash) after launching Thunderbird

  1. «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Hello,

    when starting the thunderbird on my brand new 12.10 installation (installed from scratch), the xserver is rebooting.

    This is from from .xsession-errors:

    Code:

    compiz (core) - Warn: Attempted to restack relative to 0xe00009 which is not a child of the root window or a window compiz owns
    ** Message: moving back from GtkStatusIcon to indicator
    (nm-applet:2058): Gdk-WARNING **: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    (polkit-gnome-authentication-agent-1:2067): Gdk-WARNING **: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    (gnome-settings-daemon:2017): Gdk-WARNING **: gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    (nautilus:2053): Gdk-WARNING **: nautilus: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    gnome-session[1935]: Gdk-WARNING: gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    (bluetooth-applet:2059): Gdk-WARNING **: bluetooth-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    gtk-window-decorator: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0
    (gnome-terminal:2256): Gdk-WARNING **: gnome-terminal: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
    (telepathy-indicator:2231): Gdk-WARNING **: telepathy-indicator: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    (gnome-fallback-mount-helper:2052): Gdk-WARNING **: gnome-fallback-mount-helper: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

    And this from Xorg.0.log.old:

    Code:

    [    49.995] (II) XKB: generating xkmfile /var/lib/xkb/server-8C3648A5FD728529D869F46730BE1BC287DB231C.xkm
    [    76.664] (EE)
    [    76.664] (EE) Backtrace:
    [    76.664] (EE) 0: /usr/bin/X (xorg_backtrace+0x36) [0x7fd617924ac6]
    [    76.664] (EE) 1: /usr/bin/X (0x7fd61777c000+0x1ac8f9) [0x7fd6179288f9]
    [    76.664] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fd616aa2000+0xfcb0) [0x7fd616ab1cb0]
    [    76.664] (EE) 3: /usr/lib/xorg/modules/drivers/nouveau_drv.so (0x7fd614582000+0x102b1) [0x7fd6145922b1]
    [    76.664] (EE) 4: /usr/lib/xorg/modules/libshadowfb.so (0x7fd61351a000+0x22e1) [0x7fd61351c2e1]
    [    76.664] (EE) 5: /usr/bin/X (miPaintWindow+0x220) [0x7fd617906b10]
    [    76.664] (EE) 6: /usr/bin/X (miWindowExposures+0xc8) [0x7fd617906c58]
    [    76.664] (EE) 7: /usr/bin/X (miHandleValidateExposures+0x68) [0x7fd61791cfd8]
    [    76.664] (EE) 8: /usr/bin/X (MapWindow+0x27f) [0x7fd6177fd6ff]
    [    76.664] (EE) 9: /usr/bin/X (0x7fd61777c000+0x50290) [0x7fd6177cc290]
    [    76.664] (EE) 10: /usr/bin/X (0x7fd61777c000+0x55a51) [0x7fd6177d1a51]
    [    76.664] (EE) 11: /usr/bin/X (0x7fd61777c000+0x4456a) [0x7fd6177c056a]
    [    76.664] (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7fd61572776d]
    [    76.664] (EE) 13: /usr/bin/X (0x7fd61777c000+0x448ad) [0x7fd6177c08ad]
    [    76.664] (EE)
    [    76.664] (EE) Segmentation fault at address 0x7fd614381668
    [    76.664]
    Fatal server error:
    [    76.664] Caught signal 11 (Segmentation fault). Server aborting
    [    76.664]
    [    76.664] (EE)

    Other apps as firefox, software center or skype are working fine. Starting thunderbird with gdb/strace give no reasonable output.

    When booting the LiveDVD everything works fine. I first installed Ubuntu from an USB-Stick on my SSD, now I repeated it with an DVD on a regular HDD — on both the the same error. In the next step I will try to downgrade to 11.04 — but if it’s a topic with my video card (nvidia 640 GT) I will have there the same problems (?).

    Charly

    Last edited by blueSpirit; October 20th, 2012 at 09:52 PM.

    Reason: Adding LiveDVD section


  2. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Anyone with an idea?

    I’m wondering, why just thunderbird let’s the XServer die. When starting thunderbird with —safe-mode, the safe-mode dialog appears, but the crash follows…


  3. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    You are asking a plausible question. Xserver crashed due to loading some unusable library file, which is called for by certain application. Yet it’s unlikely only thunderbird calls for that library then crashes Xserver. The crash itself indicates Xserver went wrong working with certain library in your system, which for most cases fell on the libraries installed via your video driver, the nvidia binary driver for example.


  4. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    I’ve just installed 12.04 and this version doesn’t support my video chard -> wrong screen resolution. Thunderbird is starting, but applications like jockey-gtk are crashing, thus I cannot configure the nvidia driver by GUI. I will go back to 12.10…

    @funicorn: My questions would be:

    • Why is it working on the LiveDVD and not on my installed system? What is the difference? Kernel flags/boot options, drivers, …?
    • Can I do something else than waiting for a fix by Ubuntu?
    • How can I identify the causing library — e.g. to be aware of future crashes. Would it make sense to downgrade to an ancient version of thunderbird?

    I already tried to start thunderbird with «DISPLAY=’:0′ thuderbird -g» from tty — but it’s only caused by thunderbird: it’s just terminating because Xserver is gone.


  5. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    After updating the system I was able to switch to the binary nvidia driver — and now also the screen resolution is supported. I ve attached the xorg.log of the working 12.04 with nvidia driver.


  6. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    OK I see libwfb.so in the xserver log. This library is used to provide software 3D acceleration for certain NVIDIA cards, i.e., the newest ones with Geforce8 series module which are not fully supported by nvidia binary driver.

    The answers to your questions would be:

    • Ubuntu livecd use nouveau, the open source nvidia driver by default. This driver works more consistently on 2D rendering as for certain NVIDIA cards, whereas lacks of genuine 3D acceleration support.
    • If your hardware platform deploys NVIDIA OPTIMUS technology, the best relief so far is to install bumblebee. OPTIMUS means you have both integrated Intel gpu and nvidia gpu working online.
    • If it’s only thunderbird crashing your Xserver, you can install thunderbird-dbg, run ‘gdb thunderbird’ in gnome-terminal and trace what happens when the crash takes place. However I really don’t see this coming. If thunderbird makes a crash, so does firefox. They are basically the same thing.

    Quote Originally Posted by blueSpirit
    View Post

    After updating the system I was able to switch to the binary nvidia driver — and now also the screen resolution is supported. I ve attached the xorg.log of the working 12.04 with nvidia driver.

    Last edited by funicorn; October 21st, 2012 at 06:35 AM.


  7. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Quote Originally Posted by funicorn
    View Post

    Ubuntu livecd use nouveau, the open source nvidia driver by default. This driver works more consistently on 2D rendering as for certain NVIDIA cards, whereas lacks of genuine 3D acceleration support.

    My installed system also crashed with nouveau. I even removed everything (exept nvidia-common) — because I had some problems after switching to nvidia and back — and thunderbird still caused the crash.

    Quote Originally Posted by funicorn
    View Post

    If your hardware platform deploys NVIDIA OPTIMUS technology, the best relief so far is to install bumblebee. OPTIMUS means you have both integrated Intel gpu and nvidia gpu working online.

    Ok, I will try bumblebee and give feedback.

    Quote Originally Posted by funicorn
    View Post

    If it’s only thunderbird crashing your Xserver, you can install thunderbird-dbg, run ‘gdb thunderbird’ in gnome-terminal and trace what happens when the crash takes place. However I really don’t see this coming.

    gnome-terminal is a bad choice when the xserver crashes. Further more, you have to call «thunderbird -g» since thunderbird in the path is only a script (at least on ubuntu). I already did so, see

    Quote Originally Posted by blueSpirit
    View Post

    ready tried to start thunderbird with «DISPLAY=’:0′ thuderbird -g» from tty — but it’s only caused by thunderbird: it’s just terminating because Xserver is gone.

    The problem is, that thunderbird causes no SEGV or similar, so it would be really challenging to set the breakpoint directly before the crash. Do you have a tip for me, how to do it?

    Quote Originally Posted by funicorn
    View Post

    If thunderbird makes a crash, so does firefox. They are basically the same thing.

    Firefox definitly runs stable, while thunderbird crashes. I’m also wondering about this…

    Quote Originally Posted by blueSpirit
    View Post

    Other apps as firefox, software center or skype are working fine. Starting thunderbird with gdb/strace give no reasonable output.

    But anyway, thanks a lot for your time and care. So the next thing would be bumblebee — please cross your fingers If it fails, maybe I can compare Xorg.log of the LiveDVD with my current one, to find the difference…

    UPDATE: First, now also meld crashes. It runs fine one time — and after a while it crashes now like thunderbird. Further more I booted the liveDVD — and now the crash appears there too I compared it’s Xorg.conf with mine, and they are quite the same — expect some different paths.

    Last edited by blueSpirit; October 21st, 2012 at 10:23 AM.


  8. Re: «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Good luck. just that before you proceeding make sure your hardware does deploy NVIDIA OPTIMUS, that’s crucially important.


  9. [SOLVED] «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Now I remember why I don’t like all these graphical tools: Switching to nvidia driver succeeded (in the GUI) but after reboot the desktop doesn’t fill my screen. Xorg.log says that loading nvidia failed, and I should check my kernel log. But kern.log doesn’t say a word about this failure.

    The reason was, that installing nvidia-current failed, because the «kernel sources» cannot be found. This is only visible with «sudo apt-get install —reinstall nvidia-current». Installing linux-sources doesn’t help — but installing «linux-headers-generic». So after that — and restarting lightdm everything looks fine and thunderbird is working. So it seems that thunderbird requires some feature, which makes the nouveau crashing… but not nvidia.

    @bumblebee: After installing I realized that I had to check «lspci -vnn | grep »'[030[02]]'» first — which of course showed me, that my system does not support Nvidia Optimus — since it’s a workstation and no notebook.


  10. Re: [SOLVED] «Fatal IO error 11» (XServer crash) after launching Thunderbird

    Finally I peered your bingo. All comes from that the kernel interface for nvidia-current can’t be built because of missing headers. ‘apt-get purge’ anything you installed relevant to nvidia-current, then start this over with:

    Code:

    sudo apt-get install linux-source 
    sudo apt-get install linux-headers-generic 
    sudo apt-get install linux-image 
    sudo apt-get install nvidia-current 
    jockey-text -e xorg:nvidia_current
    sudo reboot


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal int18 boot failure ошибка virtualbox
  • Fatal initialization failure torchlight 2 как исправить
  • Fatal graphics error medieval 2 total war что делать
  • Fatal granny installation error
  • Fatal gradient amplifier error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии