sciter-sdk icon indicating copy to clipboard operation
sciter-sdk copied to clipboard

Sciter Notes, HTML Notepad: segfault when pasting html with animated gif

Open ngirard opened this issue 6 years ago • 4 comments

The problem occurs with both Sciter Notes and HTML Notepad.

Steps to reproduce in HTML Notepad:

  1. Start HTML Notepad
  2. Click on the "Show source" button
  3. Replace the source wih the following code:
<html>
  <body>
    <figure>
        <img src="https://cdn-images-1.medium.com/max/800/1*LnJwoZLOuEZ1v1eAN-UWZg.gif">
      <figcaption>Caption</figcaption>
    </figure>
  </body>
</html>
  1. Click on the "Show source" button again

After a few seconds (for the gif to download), HTML Notepad crashed with the following message:

error in reading DataBlock
Segmentation error (core dumped)

My environment:

  • Ubuntu 18.10
  • Sciter Notes 4.2.7.3

ngirard avatar Apr 05 '19 19:04 ngirard

Using the latest version (4.3.0.7), I didn't experience the segmentation fault any longer ; but the image is not displayed, and the following error message is still produced

error in reading DataBlock

ngirard avatar Jun 30 '19 13:06 ngirard

I cannot reproduce the issue. I see that GIF file in at least html-notepad. It takes some time to download it, yes, but it gets shown.

The gif has bad structure, but it is rendered.

c-smile avatar Jun 30 '19 14:06 c-smile

Just double-checked. I'm afraid the gif doesn't show up here.

However, I looked for a smaller gif and picked the first I found:

https://media.giphy.com/media/xUPGcfbMG6a2k2z57O/giphy.gif

This one showed up correctly.

ngirard avatar Jun 30 '19 15:06 ngirard

Here is what I see (at least on Linux/Mint): http://cloud.sciter.com/index.php/s/qrKwf2vbZauZvA5

c-smile avatar Jun 30 '19 15:06 c-smile