start the server, selecting the server_files folder
open the page and go to index
select second article in the sidebar
switch back to first article
app hang
steps to reproduce:
1. start the server, selecting the `server_files` folder
2. open the page and go to index
3. select second article in the sidebar
4. switch back to first article
5. app hang
yagich
added the bug label 2022-06-25 16:54:40 +00:00
f.get_buffer() seems to be blocking, and the png image is quite big. changing the image to dogpepsi.jpg will make it load faster, and the page can be switched then.
it looks like we will have to do file streaming after all
the issue is with `second.md`, which contains an image, and [line 79 in `Main.gd`](https://git.poto.cafe/yagich/ticle-godot-frontend/src/branch/main/Main.gd#L79):
```gdscript
var data = f.get_as_text() if mime.type == 'text' else f.get_buffer(f.get_len())
```
`f.get_buffer()` seems to be blocking, and the png image is quite big. changing the image to dogpepsi.jpg will make it load faster, and the page can be switched then.
it looks like we will have to do file streaming after all
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
steps to reproduce:
server_filesfolderthe issue is with
second.md, which contains an image, and line 79 inMain.gd:f.get_buffer()seems to be blocking, and the png image is quite big. changing the image to dogpepsi.jpg will make it load faster, and the page can be switched then.it looks like we will have to do file streaming after all
closed in #7