biscuit icon indicating copy to clipboard operation
biscuit copied to clipboard

Segmentation fault (core dumped)

Open vyshnav-vinod opened this issue 11 months ago • 3 comments

Bug

Describe the bug

Ok so i was trying out the new HTML preview feature and biscuit crashed with this error Segmentation fault (core dumped) . I wanted to know if anyone else also faced this.

So i tried to find what caused this SEGFAULT and found that in a new html file if we type,

<html>
<head>
<title>

and type the text for the <title> it causes this crash. But if we close the <head> first and then continue with the <title> tag, it wont crash. So something like

<html>
<head>
</head>

and after closing the head tag, we can then add the <title> tag.

I tried the faulthandler module to find some info about the crash and found that it might be caused in the tkinterweb package being used. Upon checking their repo i found this issue, but this was on MacOS. This might be the problem of the tkinterweb package.

System Information

  • OS: Ubuntu 22.04
  • Python Version: 3.10.12

vyshnav-vinod avatar Mar 21 '24 04:03 vyshnav-vinod

Also you should probably update requirements.txt as it seems scipy is now a required package as well?

vyshnav-vinod avatar Mar 21 '24 04:03 vyshnav-vinod

@vyshnav-vinod scipy was an accidental import 😅

Most probably we should be able to handle this error and simply give the user some feedback of their code on the GUI. But I'm not sure though, I will experiment and let you know. As you know tkinterweb is backed by tkhtml which is in C, so if this fails then I can't do much to fix the crash.

tomlin7 avatar Mar 21 '24 05:03 tomlin7

Maybe make a auto complete for the tags?? like when you close the tags like head it will automatically add its closing tag </head>. This might be a small workaround and i guess tkhtml is the one thats causing the crashes

vyshnav-vinod avatar Mar 21 '24 05:03 vyshnav-vinod

This is fixed

tomlin7 avatar Jun 17 '24 07:06 tomlin7