Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8761381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:16:19+00:00 2026-06-13T15:16:19+00:00

Since I’ve been getting these errors: [xcb] Unknown request in queue while dequeuing [xcb]

  • 0

Since I’ve been getting these errors:

[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.
main: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

EDIT: I also get this error sometimes:

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

I am trying to make my program multithread safe so I am putting calls to SDL_LockSurface before directly accessing the pixels.

I know that these functions access the pixels:

int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);
int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);

Are there any other functions that directly access the pixels?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:16:20+00:00Added an answer on June 13, 2026 at 3:16 pm

    SDL_LockSurface is used to get direct access to the pixels, it is unrelated to multi threading.

    SDL only allows you to access its library function from one thread – the one that initialized the library and video subsystem, this applies to most gfx or UI libraries.

    You’d have to pull out a copy of the pixels in the main thread, and distribute them to the other threads for processing. (And assemble the result back in the main thread if you need to display something again after you’ve processed the pixels)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I have no errors I don't know if this is the right place
Since this morning I keep getting this same message Visual Studio Remote Debugging Monitor
Since REST is stateless, each request that comes in has no knowledge of the
since they have same rendering engine, this problem shows in both. it works great
Since this morning my local install of EE 1.6.8 is failing to load the
Since the retina display, suddenly this piece of drawing code seems to not work
since last post, did all the changes suggested but this problem still haunts me.
Since I started this new webshop for a friend to launch, which still in
Since I embeded fetch request in my model.xcdatamodeld, I need an instance of NSManagedObjectModel
Since I've known about Node.js, I've always been a fan of it. But today

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.