-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Saving ipynb file corrupts the JSON format - Unexpected end of JSON input #181382
Comments
Of course, I can add these lines to the JSON raw text but this is just a workaround:
|
@Rane90 Thanks for the detailed report, it's a critical bug and thank you for sharing with us.
Do you have auto save turned on?
This usually means that there is another process attempting to modify the file, and when that happens and you attempt to save, the file on disk is newer so we will ask if you want to override.
This made me wonder if it's possible that the extension host crashed when we attempt to save. Is the dataset loaded into the kernel fully? |
Thank you for your response. Autosave is not turned on. |
Commenting to say I also just ran into this issue. I was attempting to save a dataset and I ran out of room in my container. After this happened, the notebook got corrupted and cut off a portion of my file that cannot be re-added. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Hi,
I've been working with vs code via SSH for quite a few years now and encountered and new bug yesterday that makes working with .ipynb files almost impossible.
What happens is - After saving the file the JSON format is corrupted and it cannot be accessed again. I need to recreate it from scratch.
There are some strange behaviors for this bug:
*** Notice the string doesn't end properly.
I assume this has to do with the print output of the code cell (I'm using Python's tqdm library)
Does this issue occur when all extensions are disabled?: Yes/No
All extensions are active.
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
Steps to Reproduce:
(Let me know if you wish me to upload the entire notebook)
2. The dataset I'm using is very large - The COCO dataset (~18GB)
The text was updated successfully, but these errors were encountered: