question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.ArgumentOutOfRangeException: Non-negative number required

See original GitHub issue

When comparing the new Private Test Server client of GMS with the public server client, I get the following error after it compares to Map.wz, making the comparer process incomplete.

The comparison was aborted. System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
 at System.IO.FileStream.set_Position(Int64 value)
 at WzComparerR2.WzLib.Wz_Image_GetCheckSum() in C:\Users\Desktop\WzComparerR2 Localization\GMS\Stable\WzComparerR2\WzComparerR2.WzLib\Wz_Image.cs:line 110
 at WzComparerR2.WzLib.Wz_Image_TryExtract(Exception&e) in C:\Users\Desktop\WzComparerR2 Localization\GMS\Stable\WzComparerR2\WzComparerR2.WzLib\Wz_Image.cs:line 57
 at WzComparerR2.Comparer.EasyComparer.CompareImg(Wz_Image imgNew, Wz_Image imgOld, String imgName, String anchorName, String menuAnchorName, String outputDir, StreamWriter sw) in C:\Users\Desktop\WzComparerR2 Localization\GMS\Stable\WzComparerR2\WzCompareR2\Comparer\EasyComparer.cs:line 406
 at WzComparerR2.Comparer.EasyComparer.OutputFile(List`1fileNew, List`1fileOld, Wz_Type type, List`1 diffLst, String outputDir, StreamWriter index) in C:\Users\Desktop\WzComparerR2 Localization\GMS\Stable\WzComparerR2\Comparer\EasyComparer.cs:line 329...

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Kagamiacommented, Aug 10, 2017

@Sunaries try this commit : https://github.com/Kagamia/WzComparerR2/commit/5ecb5f308a1485f9a3d10dcd3f4b0b3d00eee6c7 , Of course I’m not sure whether it works. 😃

1reaction
Kagamiacommented, Aug 10, 2017

Finally this day comes 😆 I wonder how the patcher changed after this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

raspberry pi - .NET Core 3.1 System.IO.Port ...
System.ArgumentOutOfRangeException: Non-negative number required. ... Int32 count, CancellationToken cancellationToken) at System.IO.Ports.
Read more >
ArgumentOutOfRangeException Class (System)
An ArgumentOutOfRangeException exception is thrown when a method is invoked and at least one of the arguments passed to the method is not...
Read more >
looking for help with this error please non negative number ...
Exception Details: System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: capacity. Source Error: ...
Read more >
'Non-negative number required. Parameter name: capacity' ...
System.ArgumentOutOfRangeException: 'Non-negative number required. Parameter name: capacity' on calling Router.Calculate() #334 · Comments.
Read more >
Non-negative number required. Parameter name: count ...
System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count ... Hello,. Just finished examining the demos and decided ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found