xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 3 years ago

Closed 21 months ago

Last modified 17 months ago

#2483 closed defect (worksforme)

html5 scroll paint error and disconnection

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 4.1
Component: html5 Version: 3.0.x
Keywords: Cc:


Caught this in my server log and the client got disconnected:

error painting scroll TypeError: Argument 1 of CanvasRenderingContext2D.drawImage could not be converted to any of: HTMLImageElement, SVGImageElement, HTMLCanvasElement, HTMLVideoElement, ImageBitmap.

client was running an xterm and gedit

Change History (5)

comment:1 Changed 3 years ago by Antoine Martin

Status: newassigned
Summary: html5 scroll paint errorhtml5 scroll paint error and disconnection

#2487 closed as duplicate of this bug.

comment:2 Changed 3 years ago by Antoine Martin

The line that causes the error is:

this.offscreen_canvas_ctx.drawImage(this.draw_canvas, sx, sy, sw, sh, sx+xdelta, sy+ydelta, sw, sh);

Two things to look into:

  • swap_buffers must be called at least once before we can use scroll paint
  • maybe the paint exception handler is buggy?
Last edited 3 years ago by Antoine Martin (previous) (diff)

comment:3 Changed 2 years ago by Antoine Martin

Milestone: 4.04.1

(not seen it since)

comment:4 Changed 21 months ago by Antoine Martin

Resolution: worksforme
Status: assignedclosed

comment:5 Changed 17 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2483

Note: See TracTickets for help on using tickets.