WPF StylusPointPropertyInfo may throw ArgumentException in some machine
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
I'm sorry, this is not a good feedback issues, and I can not find the reproduction steps and machine. My users are reporting to me about app crashes with the exception:
```
System.ArgumentException: "{0}" must be greater than or equal to "{1}". (Parameter 'maximum');
at System.Windows.Input.StylusPointPropertyInfo..ctor(StylusPointProperty stylusPointProperty, Int32 minimum, Int32 maximum, StylusPointPropertyUnit unit, Single resolution)
at System.Windows.Input.PenContext.InitStylusPointDescription()
at System.Windows.Input.PenContext.FirePenInRange(Int32 stylusPointerId, Int32[] data, Int32 timestamp)
at System.Windows.Input.PenThreadWorker.FireEvent(PenContext penContext, Int32 evt, Int32 stylusPointerId, Int32 cPackets, Int32 cbPacket, IntPtr pPackets)
at System.Windows.Input.PenThreadWorker.ThreadProc()
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Thread.StartCallback();
```
Reference https://github.com/dotnet/wpf/issues/7069#issuecomment-1807554225 and https://github.com/dotnet/wpf/issues/8435
### Reproduction Steps
None. I will append any information I find in the future.
### Expected behavior
Work well without exception.
### Actual behavior
Throw the exception and the application crash
### Regression?
_No response_
### Known Workarounds
As the https://github.com/dotnet/wpf/issues/8435 records.
### Impact
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.