OpenPrinting / OpenPrinting/system-config-printer

Threading error occurs on attempt to add a printer

Open
#36 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
204
Forks
108
Avg merge
1d 14h
Merged PRs (30d)
9

Description

This would have been a silent error had I not decided to run the tool from the command line:

No ID match for device lpd://BRN30055C147729/BINARY_P1:
MFG:Brother;MDL:MFC-7860DW;CMD:PJL,PCL,PCLXL;
No ID match for device lpd://BRN30055C147729/BINARY_P1:
MFG:Brother;MDL:MFC-7860DW;CMD:PJL,PCL,PCLXL;
[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.
python: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

It sounds like this is a multithreaded application. Just so you know, X11 isn't really threadsafe unless explicitly told to be so.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified in the issue. Reproduce the printer-add operation from the command line and trace the multithreaded X11 failure; done means the operation no longer aborts with the reported threading error and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.