OpenTabletDriver / OpenTabletDriver/opentabletdriver.github.io

Document EBADF on string dumps

Open
#330 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
36
Forks
10
Avg merge
12h 32m
Merged PRs (30d)
9

Description

EBADF happens on Linux when trying to open a file descriptor (like a USB device) that can't be opened and running ioctl's on it:

Image

Relevant code:
https://github.com/InfinityGhost/HIDSharpCore/blob/944a386ea6d51480ccd7dde7bb78e78768da8e1d/HidSharp/Platform/Linux/LinuxHidDevice.cs#L185-L195

Could probably also be fixed inside of OpenTabletDriver GUI by not trying to send string requests to knowingly unavailable devices?

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

Start by reading the referenced LinuxHidDevice.cs lines 185-195 and the issue image to understand how EBADF appears during string dumps. Determine whether the documentation belongs in this repository or in OpenTabletDriver GUI, then define the documented behavior and affected devices before making a change.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.