Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScreenMirrorStretch algorithm Out of Bounds #195

Open
Svenyie opened this issue Jul 21, 2021 · 2 comments
Open

ScreenMirrorStretch algorithm Out of Bounds #195

Svenyie opened this issue Jul 21, 2021 · 2 comments

Comments

@Svenyie
Copy link

Svenyie commented Jul 21, 2021

When selecting the stretch algorithm my shapes won't work.
after looking in the log i found this error.
Fit or Ambilight does work.

screenres: 3840x1080

2021-07-22 01:12:45.8995|ERROR|Winleafs.Wpf.Api.Effects.ScreenMirrorEffect|Unexpected error for screen mirror with algorithm ScreenMirrorStretch
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Winleafs.Wpf.Helpers.ScreenGrabber.CalculateAverageColor(IEnumerable`1 areasToCapture, Int32 minDiversion) in C:\Users\easy_\source\repos\winleafs\Winleafs\Winleafs.Wpf\Helpers\ScreenGrabber.cs:line 104
   at Winleafs.Wpf.Api.Effects.ScreenMirrorEffects.ScreenMirror.ApplyEffect() in C:\Users\easy_\source\repos\winleafs\Winleafs\Winleafs.Wpf\Api\Effects\ScreenMirrorEffects\ScreenMirror.cs:line 65
   at Winleafs.Wpf.Api.Effects.ScreenMirrorEffect.ApplyEffect() in C:\Users\easy_\source\repos\winleafs\Winleafs\Winleafs.Wpf\Api\Effects\ScreenMirrorEffect.cs:line 90
@StijnOostdam
Copy link
Member

Hey, thanks for the report. A few questions:

  • Do you have only 1 screen or what does your complete setup look like (including scaling percentages)?
  • Which version of Winleafs are you using?
  • Could you send me your settings file? Then I can try to reproduce the error.

@Svenyie
Copy link
Author

Svenyie commented Jul 24, 2021

2 screens :
main monitor (this is the monitor i want to use for screen mirror) 3840x1080 100% scaling
secondary monitor (screen mirror stretch works if i select this monitor) 1920x1080 100% scaling

version 1.1.8

Settings.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants