[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73818] [Ruby trunk Bug#11542] Zlib::DataError: incorrect data check
From:
peterept@...
Date:
2016-02-16 00:35:51 UTC
List:
ruby-core #73818
Issue #11542 has been updated by Peter Koch.
File screenshot.png added
Tomoyuki Chikanaga wrote:
> Hello, Lingaraj.
>
> It seems that the response contains invalid byte-stream or the content encoding was wrongly detected or so.
> For more investigation, please show us the sample code to reproduce this error.
I get this error too - for me it is loading PNG screenshots from Android device (OS 4.4.4):
Zlib::DataError: incorrect data check
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/chunk.rb:249:in `<<'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/chunk.rb:249:in `block in combine_chunks'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/chunk.rb:249:in `each'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/chunk.rb:249:in `combine_chunks'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/datastream.rb:148:in `imagedata'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/canvas/png_decoding.rb:88:in `from_datastream'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/image.rb:74:in `from_datastream'
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunky_png-1.3.5/lib/chunky_png/canvas/png_decoding.rb:53:in `from_file'
from (irb):2
from /Users/EE/.rvm/rubies/ruby-2.1.5/bin/irb:11:in `<main>'
Imagemagick reports that there is extra fields:
$ convert screenshot.png NULL:
convert: Extra compressed data `screenshot.png' à warning/png.c/MagickPNGWarningHandler/1777.
convert: Extra compression data `screenshot.png' à warning/png.c/MagickPNGWarningHandler/1777.
Is it that ZLib can't handle this?
I have attached a screenshot that fails.
The repro happens with this code:
require 'chunky_png'
image = ChunkyPNG::Image.from_file("screenshot.png")
----------------------------------------
Bug #11542: Zlib::DataError: incorrect data check
https://bugs.ruby-lang.org/issues/11542#change-56996
* Author: Lingaraj Kothokatta
* Status: Feedback
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [i386-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
When I trying to send HTTP POST, I am getting follolwing Error
Zlib::DataError: incorrect data check
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:377:in `inflate'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:377:in `block in inflate_adapter'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/protocol.rb:411:in `call_block'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/protocol.rb:402:in `<<'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/protocol.rb:106:in `read'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:399:in `read'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:289:in `block in read_body_0'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:260:in `inflater'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:279:in `read_body_0'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:201:in `read_body'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1398:in `block in send_entity'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1420:in `block (2 levels) in transport_request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:162:in `reading_body'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1419:in `block in transport_request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1410:in `catch'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1410:in `transport_request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1383:in `request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1376:in `block in request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:853:in `start'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1374:in `request'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1397:in `send_entity'
/usr/local/rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:1186:in `post'
---Files--------------------------------
screenshot.png (37.1 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>