You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was trying to use puppy as a HTTP client in an x86 application, but I noticed that I was getting a [DivByZeroDefect]
It seems that this is an issue with zippy itself as the error points to C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy\gzip.nim(76) uncompressGzip
I have tried running the example HTTP client in the repo, but that likewise fails on i386.
This is the error I'm getting:
D:\Testing-Zippy-i386\main.nim(9) main
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(171) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(115) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(128) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy\gzip.nim(76) uncompressGzip
C:\nim-2.2.0\lib\system\fatal.nim(53) sysFatal
Error: unhandled exception: division by zero [DivByZeroDefect]
Error: execution of an external program failed: 'D:\Testing-Zippy-i386\main.exe'
PS D:\Testing-Zippy-i386>
The command I'm using to compile for 32-bit is nim c --cpu:i386 --gcc.path=C:\mingw32\bin -r .\main.nim
I looked through some earlier push requests and found a supposed fix for 32-bit that was pushed, but that didn't seem to fix the issue.
I'm using Zippy 0.10.16 (as installed through Nimble).
Thanks in advance :D
The text was updated successfully, but these errors were encountered:
It seems to work after I changed 32 to 31 on line 76:
if isize != (dst.len mod (1 shl 31)).uint32:
I'm not really sure if this is the correct fix? I'll try use the tests to see if everything works. I don't really have any experience with compression per se.
Looks like all tests passed (using nimble test)
Success: Execution finished
Success: All tests passed
Hey, I was trying to use puppy as a HTTP client in an x86 application, but I noticed that I was getting a [DivByZeroDefect]
It seems that this is an issue with zippy itself as the error points to
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy\gzip.nim(76) uncompressGzip
I have tried running the example HTTP client in the repo, but that likewise fails on i386.
This is the error I'm getting:
The command I'm using to compile for 32-bit is
nim c --cpu:i386 --gcc.path=C:\mingw32\bin -r .\main.nim
I looked through some earlier push requests and found a supposed fix for 32-bit that was pushed, but that didn't seem to fix the issue.
I'm using Zippy 0.10.16 (as installed through Nimble).
Thanks in advance :D
The text was updated successfully, but these errors were encountered: