Bugging Canavs doesn't want to open and when debugged through notepad whenever change they are not openable again

I use Obsidian on two devices: a PC and a Redmi 9T (Android). I have ‘Obsidian Sync’ and have been using it for almost a year without issues. Twelve days ago, after using the ‘Advanced Canvas’ plugin on my PC, I noticed that the plugin significantly slowed down Obsidian on my phone. So, I decided to remove it after some tests on my PC. The problem is that right after this, my canvases no longer opened, showing an icon in the top right corner saying 'can’t open file “” '. Most of the canvases I opened during my tests with ‘Advanced Canvas’, which probably changed the code of the ‘.canvas’ files, are affected. Other canvases open normally.

I just uninstalled Obsidian on my phone to avoid any synchronization issues, and I corrected the ‘.canvas’ files using an online JSON formatter. They reopen, but after any modification, when switching pages, the same error occurs, as if Obsidian is no longer able to manage the code autonomously. I have the same issue on about 60 heavily loaded canvases.I based my corrections on this link “https://forum.obsidian.md/t/my-canvas-file-got-corrupted-is-it-recoverable/58876” to fix errors in my Obsidian canvas files using Notepad++. My issue is that every time I do this, the canvas reopens in Obsidian, but if I add a card, switch to another canvas or note, and then try to reopen it, it no longer works. It’s as if Obsidian can no longer manage the canvas coding. What mistakes might I be making, and what steps should I take to resolve this?

2 Likes

Moved to the help section

I have the exact same problem since two days and was not able to identify the reason. Switching off plugins, deleting them etc did not help. I can reopen the canvas but after just one change it happens again even with restricted mode.

might be related to this: Canvas file corruption if file node has custom property of type object or list

It’s likely to be connected. But what can I concretely do to move things forward? Unable to dedicate more time to this, I opted for an “average solution” which involves correcting the JSON of my canvases, importing them to “hicanvas” online, and then exporting them to Obsidian. It works, but it takes more time and the canvas loses its original proportions (so more correction time), but the positive point is that it becomes openable without further issues.

The “bad solution” would be to manually re-create the canvases one by one on a new functional canvas once opened the first time. The “best solution” (which I would have liked to find here) would be to find a site or trick to allow Obsidian to recognize the corrected canvases, which would save time in two ways: no need to spend time on steps related to “hicanvas” and no time loss in resizing elements of each canvas (cards, jpgs, links, etc.).

When is the 1.7 update likely to be launched ?

There are no ETAs. However, 1.7 will fix the bug that caused the corruption not fix the already corrupted canvases.

I don’t know what hicanvas is. However, manually fixing the JSON should be enough.

No , that’s what I said earlier : even when fixing the JSON manually, whenever once corrected a change or add is operated, the same error happens again. “hicanva” is a web site that can read the JSON files. When I put the corrected JSON there, export it and opens it in obsidian, even if I make a change or add a card for e.g. at that point, the canvas remains workable and doesn’t cease to function as it was the case before. Still, the process of recorrection remains steady and pretty long to achieve (not optimal).

It means you are not “fixing” the JSON properly or you have still enabled an old version of the “Advanced Canvas” plugin and you reintroduce the problem.

Read this thread too:

1 Like

The thread was definitely so useful thank you so much. I see things more clearly now. For the moment I deleted the Advanced Canvas plugin to stabilize things, will probably come back to it later when my vault is operational again inchaa’Allah. The remaining issue is probably that I am not fxing the JSON properly, though I use “JSON Fromatter and Validator” that automatically correct it for me (the added commas), it reopens (so it means that it fixes it) then don’t work again… Maybe I’m missing something here when correcting it… Some clues may be found in the thread, though I’m not a coder so still a bit complex for me what they say and I’m worried to add all the things they are talking abut and mess things again… Want to reinstall the Advanced Canvas to get rd of the “broken” canvas, but the plugin slow down so much my phone version of Obsidian that it’s cut my workflow. Would be amazing if the Advanced Canvas was not slowing down the phone app when synched to the PC’s version. Took 15seconds to zoom on a single card on the canva (phone version). However, thank you so much.

Hey :wave:t2:. I’m the developer of Advanced Canvas. If you want to use the files without the plugin, and they still break after each save, feel free to reach out to me with the file(s) you want to have converted back to a standard canvas file. I will fix them for you. Regarding the performance issue you’ve mentioned, I would appreciate it if you would open an issue on GitHub explaining when and under what conditions this occurs.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.