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

Error caught by UI! Error: Invalid PDF url data: either string or URL-object is expected in the url property. #7260

Closed
Haoxiyang-bio opened this issue Nov 8, 2022 · 3 comments

Comments

@Haoxiyang-bio
Copy link

What happened?

First, I recently switch my operation system from WIN11 to ubuntu22.04. I saved my logseq files and try to use it on my linux platform.

I use logseq to record my reading progross just like others. i use zotero to store PDFs and use logseq to import the pdfs, I use logseq's pdf highlight tool and screenshot tool and save the links to the blocks ,so i can redirect the position in the PDFs when i click the links. this perform well on WIN11 before. But when i import the Previous logseq files directory(Generated on WIN11 ) to Logseq on Ubuntu 22.04, Everything looks OK, but when I click the links, it cannot redirect to the corresponding position and the logseq collapse with error information on top right corner (Error caught by UI! Error: Invalid PDF url data: either string or URL-object is expected in the url property.) and note me to REBUILD, RELAUNCH and CLEAR. I try this but when i reopen logseq, the same thing appears.
I also downloaded the previous logseq version on linux and this did not resolve the problems.

can the logseq files(including assets, journals...) saved in windows be used in linux such as ubuntu?

Reproduce the Bug

go to a pdf link and click the reference links generated using the highlight mode or area highlight
Then the logseq collapse.

Expected Behavior

No response

Screenshots

file:///home/mike/%E5%9B%BE%E7%89%87/%E6%88%AA%E5%9B%BE/%E6%88%AA%E5%9B%BE%202022-11-08%2014-48-38.png

Desktop Platform Information

problems occur:
Logseq-linux-x64-0.8.10.AppImage
Ubuntu 20.04

previous platform logseq run normally:
win11
previous logseq version run normally:
Logseq-win-x64-0.7.4.exe

Mobile Platform Information

No response

Additional Context

No response

@Haoxiyang-bio Haoxiyang-bio closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2022
@Liam-Scott-Russell
Copy link

@Haoxiyang-bio Did you ever end up fixing this? If so, would you mind explaining how?

@Haoxiyang-bio
Copy link
Author

@Liam-Scott-Russell sorry about my late response. It seems that it is hard to solve the problem. Change the file path of logseq databases did not work. Finally, I turned back to Windows.

@michaelaye
Copy link

same problem here using the recommended way of setting the storage path on Linux using the tilde: ~/Zotero.
Making the path absolute removed the issue on Linux, but now I have the problem that this path is synced to my OSX setup where the Zotero storage path is different, so this is still a problem with the current Zotero implementation.

Version: 0.8.18 on popOS (Ubuntu derivate)

e-zz added a commit to e-zz/logseq-1 that referenced this issue Nov 7, 2023
- handle a false pdf path in `file-path::` property that starts with a "file://" prefix

This (or other similar method) should fix logseq#7260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants