OpenTabletDriver / OpenTabletDriver/OpenTabletDriver

"IndexOutOfRangeException" Bug

Open
#4,942 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
C#
Stars
4.1k
Forks
534
Avg merge
4d 20h
Merged PRs (30d)
12

Description

Steps to Reproduce

so after some time of usage otd randomly stop detecting tablet and show this message in console "[IndexOutOfRangeException:Error] Index was outside the bounds of the array.
at OpenTabletDriver.Configurations.Parsers.UCLogic.UCLogicTiltReportParser.Parse(Byte[] data) in /__w/OpenTabletDriver/OpenTabletDriver/build-RedHat/opentabletdriver/BUILD/opentabletdriver-0.6.7-build/opentabletdriver-0.6.7/OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicTiltReportParser.cs:line 11
at OpenTabletDriver.Devices.DeviceReader`1.Main() in /__w/OpenTabletDriver/OpenTabletDriver/build-RedHat/opentabletdriver/BUILD/opentabletdriver-0.6.7-build/opentabletdriver-0.6.7/OpenTabletDriver/Devices/DeviceReader.cs:line 110" i dont know how to show this its just happen and tablet stop working its like i disable deamon

Expected Behavior

stop randomly stoping detecting tablet

Observed Behavior

it most often happend when i used buttons with binds and its most often ctrl z all things but now its just happen even 30 seconds after enabling otd deamon

Tablet Device

huion inspiroy 2s

Diagnostic Information

Diagnostics-067.json

Acknowledgements
  • I have installed OpenTabletDriver by following its official installation instructions.
  • I have checked the OpenTabletDriver Wiki and respective FAQ pages, and my issue was not covered or actually fixed.
  • I have searched the existing issues and this new issue is not a duplicate of any.
  • I have written a concise and meaningful title.
  • I am on the latest version of OpenTabletDriver.

Contributor guide

Open the contributing guide

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 with OpenTabletDriver.Configurations/Parsers/UCLogic/UCLogicTiltReportParser.cs at line 11, then review the DeviceReader.cs call site at line 110 and Diagnostics-067.json. Reproduce with the Huion Inspiroy 2S, especially while using button bindings, and consider the issue fixed when the parser no longer throws IndexOutOfRangeException and the tablet remains detected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.