Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notepad and JSPaint is blank when opening files #60

Open
PiSaucer opened this issue Feb 28, 2022 · 2 comments
Open

Notepad and JSPaint is blank when opening files #60

PiSaucer opened this issue Feb 28, 2022 · 2 comments

Comments

@PiSaucer
Copy link

I forked this project and use a subdomain. Whenever I try to use the notepad app it will as open a blank file. I included a screenshot of CREDITS.txt. I noticed that it gave out this error in the console. Any ideas to fix this?

Screen Shot 2022-02-27 at 7 24 47 PM

Uncaught Error: Invalid buffer: Buffer is 582 long, yet Stats object specifies that file is 277 long. preload_file.ts
    at OverlayFile.PreloadFile [as constructor] (preload_file.ts:57:13)
    at new OverlayFile (OverlayFS.ts:35:10)
    at OverlayFS.ts:421:27
    at XmlHttpRequest.ts:373:18
    at NoSyncFile.close (preload_file.ts:404:5)
    at cb (XmlHttpRequest.ts:369:13)
    at XmlHttpRequest.ts:379:9
    at XmlHttpRequest.ts:290:20
    at XMLHttpRequest.req.onreadystatechange (xhr.ts:44:20)
@PiSaucer PiSaucer changed the title Notepad is blank when opening files Notepad and JSPaint is blank when opening files Mar 1, 2022
@PiSaucer
Copy link
Author

PiSaucer commented Mar 1, 2022

I notice that JSPaint also doesn't work when it's hosted not locally:

Screen Shot 2022-02-28 at 6 44 01 PM

Uncaught Error: Invalid buffer: Buffer is 56017 long, yet Stats object specifies that file is 52339 long.
    at OverlayFile.PreloadFile [as constructor] (preload_file.ts:57:13)
    at new OverlayFile (OverlayFS.ts:35:10)
    at OverlayFS.ts:421:27
    at XmlHttpRequest.ts:373:18
    at NoSyncFile.close (preload_file.ts:404:5)
    at cb (XmlHttpRequest.ts:369:13)
    at XmlHttpRequest.ts:379:9
    at XmlHttpRequest.ts:290:20
    at XMLHttpRequest.req.onreadystatechange (xhr.ts:44:20)
    ```

@cherrim98
Copy link

I seem to have this issue too. Not sure why that is the case. Paint works fine for me, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants