Welcome, Guest
Submit ComicRack for Android bugs to get them squashed

TOPIC: Fixes: Specified argument was out of the range of valid values. Param name: size

Fixes: Specified argument was out of the range of valid values. Param name: size 6 years 4 days ago #19138

  • predakanga
  • predakanga's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
  • Karma: 1
For the attention of cYo:

Overly large comic files on the Android side can cause the following error:
"specified argument was out of the range of valid values. Parameter name: size"

Encountered this due to having synced a 300MB webcomic. After syncing it, every sync thereafter aborts immediately with this error.

To fix, edit cYo.Projects.ComicRack.Engine.Sync.WirelessSyncProvider.ReadSocketData
Change the following:
int count = socket.Receive(buffer, size, SocketFlags.None);
to:
int count = socket.Receive(buffer, System.Math.Min(size, 100000), SocketFlags.None);

Patched it in my local copy, works beautifully now.
The administrator has disabled public write access.
The following user(s) said Thank You: Helmic, chrishimself

Re: Fixes: Specified argument was out of the range of valid values. Param name: size 6 years 4 days ago #19141

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 676
  • Karma: 182
Yes, stupid bug.
After reading the doc, I wonder why it did not always fail.
The administrator has disabled public write access.

Re: Fixes: Specified argument was out of the range of valid values. Param name: size 6 years 3 days ago #19176

  • Helmic
  • Helmic's Avatar
  • Offline
  • Expert Boarder
  • (Don't be) That guy
  • Posts: 150
  • Thank you received: 82
  • Karma: 52
Nice find. Sorry I couldn't be of more help.
Request webcomics on IRC: http://widget.mibbit.com/?server=irc.rizon.net&channel=%23comicrack
server: irc.rizon.net
channel: #comicrack
Or in the webcomics subforum: http://comicrack.cyolito.com/forum/22-web-comics
The administrator has disabled public write access.

Re: Fixes: Specified argument was out of the range of valid values. Param name: size 5 years 11 months ago #19384

  • forkicks
  • forkicks's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 871
  • Thank you received: 109
  • Karma: 37
I wonder if the "Parameter can not be null: buffer" (wording may not be accurate, i'm quoting from the top of my head) message i sometimes see is related to this.

fK
The administrator has disabled public write access.

Re: Fixes: Specified argument was out of the range of valid values. Param name: size 5 years 11 months ago #19459

I am having the problem how do I patch it?
The administrator has disabled public write access.

Re: Fixes: Specified argument was out of the range of valid values. Param name: size 5 years 11 months ago #19460

  • predakanga
  • predakanga's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 2
  • Karma: 1
You shouldn't need to any more - just upgrade to the latest version of ComicRack for Windows and it's already taken care of
The administrator has disabled public write access.
Time to create page: 0.188 seconds

Who's Online

We have 224 guests and 3 members online