Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Fatal IO error 22 (Invalid argument) on X server :0.0



  • Hi,

    I am developing an app, and out of nowhere I get this runtime error. I commented the last modification I did, but the error continued.

    I tried to search the web, but all the references had notihing to do with Qt, or were rather old.

    Does anyone have any idea what may be causing this?

    Thanks!


  • Moderators

    @canellas What is the actual error? Can you show it in the xorg (assuming xorg) log or on the console so we can see the exact error.

    1. Also what does dmesg say right after the crash happens?
    2. Did you update your system recently?
    3. Is the system under heavy load?
    4. Does this happen to other apps?
    5. Can you roll the code back a couple days and test again?


  • Hi,

    I am using xubuntu, and uname -a reports Linux wayne 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    When I run the program from a terminal, the message [1:1:0100/000000.327470:ERROR:broker_posix.cc(43)] Invalid node channel message is also printed.

    Regarding your questions:
    0 . /var/log/Xorg.0.log did not show any new log messages when I run the program
    1 . dmesg also shows no new message
    2 . Not really
    3 . No, just this one
    4 . I was writing small tests, evolving the program a bit at a time, and these small programas work fine. From the last test to the program that crashes, which will be the final, I made a few more changes. So, it is something related to the code, but the new code is most like the others: define signal, define slot, connect one to another. I think I'll have to go back, a little at a time, until I find the guilt code. 8)

    Anyway, thanks for your time and help.



  • Well, it will be hard to believe: it was a 2500x2500 px PNG file, set as icon for the main window. I reduced it to 400x400 px, and it worked.


Log in to reply