xpra icon
Bug tracker and wiki

Opened 5 years ago

Last modified 5 years ago

#934 closed defect

Pillow errors with Ubuntu Vivid — at Initial Version

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: blocker Milestone: 0.16
Component: encodings Version: 0.15.x
Keywords: Ubuntu Pillow Cc:

Description

2015-07-30 13:37:42,939 PIL_encode((314, 283, 'webp', '355448 bytes', 'RGBA', 1256)) converting to RGBA failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/codecs/pillow/encode.py", line 69, in encode
    im = PIL.Image.frombuffer(rgb, (w, h), pixels, "raw", pixel_format, image.get_rowstride())
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2119, in frombuffer
    core.map_buffer(data, size, decoder_name, None, 0, args)
TypeError: must be sequence of length 3, not 2

and

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/server/source.py", line 1837, in encode_loop
    fn_and_args[0](*fn_and_args[1:])
  File "/usr/lib/python2.7/dist-packages/xpra/server/window_source.py", line 1320, in make_data_packet_cb
    packet = self.make_data_packet(damage_time, process_damage_time, wid, image, coding, sequence, options, flush)
  File "/usr/lib/python2.7/dist-packages/xpra/server/window_source.py", line 1669, in make_data_packet
    ret = encoder(coding, image, options)
  File "/usr/lib/python2.7/dist-packages/xpra/server/window_source.py", line 1752, in webp_encode
    return webp_encode(coding, image, self.rgb_formats, self.supports_transparency, q, s, options)
  File "/usr/lib/python2.7/dist-packages/xpra/server/picture_encode.py", line 72, in webp_encode
    return enc_pillow.encode(x, image, quality, speed, supports_transparency)
  File "/usr/lib/python2.7/dist-packages/xpra/codecs/pillow/encode.py", line 69, in encode
    im = PIL.Image.frombuffer(rgb, (w, h), pixels, "raw", pixel_format, image.get_rowstride())
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2119, in frombuffer
    core.map_buffer(data, size, decoder_name, None, 0, args)
TypeError: must be sequence of length 3, not 2

Change History (0)

Note: See TracTickets for help on using tickets.