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

SEVERE BUG: in opening link card in canvas and data lose #71

Open
Coolguyzv opened this issue Sep 6, 2024 · 2 comments
Open

SEVERE BUG: in opening link card in canvas and data lose #71

Coolguyzv opened this issue Sep 6, 2024 · 2 comments

Comments

@Coolguyzv
Copy link

when you open a link card in obsidian canvas it sometimes opens directly in your browser which's the default behavior and sometimes it opens in the page itself with embedded view which's break the current page and delete everything on it from any content

@albertoloscerritos
Copy link

I have gotten the exact same behavior with this plugin and with the following plugin: https://github.com/Meikul/obsidian-thumbnails
I don't know exactly how to replicate it, but after clicking in the card link (or youtube thumbnail) for a couple of times (sometimes after just the second time clicking it) instead of launching the webpage in the default explorer it opens it as an embebed webpage inside the card. As you mentioned, it only happens sometimes.
I got the same behavior as you mentioned:

  • It only happens in canvas cards
  • Obsidian becomes very laggy
  • The only way to fix it is to delete the card, or the content will be deleted after a couple of clicks

This is how it originally looks:
image

This is how it looks after the bug happpens:
image

This is how it looks after the content is deleted (automatically after clicking around):
embed link
As you can see from the previous gif, the card in question gets it content removed and is render
"useless" I can't type in it, and the editing toolbar also gets stuck:
embed link 2

I get the following 3 errors in the console log after the error happens:

app.js:1 Uncaught DOMException: Blocked a frame with origin "app://obsidian.md" from accessing a cross-origin frame.
    at e.removeWindowListeners (app://obsidian.md/app.js:1:438569)
    at e.destroy (app://obsidian.md/app.js:1:439113)
    at e.destroy (app://obsidian.md/app.js:1:454948)
    at t.destroy (app://obsidian.md/app.js:1:1623364)
    at t.destroyEditor (app://obsidian.md/app.js:1:1664479)
    at t.showPreview (app://obsidian.md/app.js:1:1664855)
    at t.blur (app://obsidian.md/app.js:1:2669273)
    at app://obsidian.md/app.js:1:2622197
e.removeWindowListeners @ app.js:1
e.destroy @ app.js:1
e.destroy @ app.js:1
t.destroy @ app.js:1
t.destroyEditor @ app.js:1
t.showPreview @ app.js:1
t.blur @ app.js:1
(anonymous) @ app.js:1
requestAnimationFrame (async)
e.requestFrame @ app.js:1
e.updateSelection @ app.js:1
e.deselectAll @ app.js:1
e.onPointerdown @ app.js:1
app.js:1 Uncaught DOMException: Blocked a frame with origin "app://obsidian.md" from accessing a cross-origin frame.
    at e.removeWindowListeners (app://obsidian.md/app.js:1:438569)
    at e.destroy (app://obsidian.md/app.js:1:439113)
    at e.destroy (app://obsidian.md/app.js:1:454948)
    at t.destroy (app://obsidian.md/app.js:1:1623364)
    at t.destroyEditor (app://obsidian.md/app.js:1:1664479)
    at t.showPreview (app://obsidian.md/app.js:1:1664855)
    at t.blur (app://obsidian.md/app.js:1:2669273)
    at app://obsidian.md/app.js:1:2622197
e.removeWindowListeners @ app.js:1
e.destroy @ app.js:1
e.destroy @ app.js:1
t.destroy @ app.js:1
t.destroyEditor @ app.js:1
t.showPreview @ app.js:1
t.blur @ app.js:1
(anonymous) @ app.js:1
requestAnimationFrame (async)
e.requestFrame @ app.js:1
e.onResize @ app.js:1
(anonymous) @ app.js:1
r @ enhance.js:1
DevTools failed to load source map: Could not load content for https://static-assets-eu.libguides.com/web/css3.12.4/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
app.js:1 Uncaught TypeError: Cannot read properties of null (reading 'head')
    at t.onIframeLoad (app.js:1:1660923)

image

I am lead to believe that this is an issue with obsidian, and how canvas/cards handle the process of launching externals links
Hopefully we can find a fix for this issue

I am using obsidian 1.7.4 and windows 11

@albertoloscerritos
Copy link

@nekoshita please let us know if you think this is a bug caused by the plugin, or by obsidian, in which case we can report it in the obsidian forum. Thanks.

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