Git Product home page Git Product logo

Comments (5)

Lunarequest avatar Lunarequest commented on August 26, 2024

Ah it should be fixed in mistress

from nightpdf.

AleMunin avatar AleMunin commented on August 26, 2024

Exact same problem here, and just with some PDFs, I wish I could be more specific about it.

Am using Zorin 16.2

from nightpdf.

Lunarequest avatar Lunarequest commented on August 26, 2024

if you can launch with the env var debug set to 1 and then the output from the debug console inside nightpdf it would be helpful!

from nightpdf.

HighKingofMelons avatar HighKingofMelons commented on August 26, 2024

Ran into a similar issue using the latest version from Flathub (2.0.3) on Fedora Silverblue 38

The problem seems to occur when trying to load a file from a file-uri.

This is the debug output when i pass a file as a file-uri and the app fails to load the file:

loading
render.mjs:199 TabGroup is ready, moving container
render.mjs:199 Array(1)0: ['file:///run/flatpak/doc/e8bc990e/output.pdf']length: 1[[Prototype]]: Array(0)
render.mjs:199 opening  Array(1)0: "file:///run/flatpak/doc/e8bc990e/output.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 No tabs yet, creating new tab
render.mjs:199 Array(1)0: "file:///run/flatpak/doc/e8bc990e/output.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 tab loaded
render.mjs:199 inserted style 1

And this is the same file in the same location but passed using a path:

loading
render.mjs:199 TabGroup is ready, moving container
render.mjs:199 Array(1)0: ['/run/flatpak/doc/e8bc990e/output.pdf']length: 1[[Prototype]]: Array(0)
render.mjs:199 opening  Array(1)0: "/run/flatpak/doc/e8bc990e/output.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 No tabs yet, creating new tab
render.mjs:199 Array(1)0: "/run/flatpak/doc/e8bc990e/output.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 tab loaded
render.mjs:199 inserted style 1

This one loads correctly.

A similar thing also happens when you provide the app with a non-existent file:

loading
render.mjs:199 TabGroup is ready, moving container
render.mjs:199 Array(1)0: ['/fake/path/isnt/real.pdf']length: 1[[Prototype]]: Array(0)
render.mjs:199 opening  Array(1)0: "/fake/path/isnt/real.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 No tabs yet, creating new tab
render.mjs:199 Array(1)0: "/fake/path/isnt/real.pdf"length: 1[[Prototype]]: Array(0)
render.mjs:199 tab loaded
render.mjs:199 inserted style 1

This one also has the same behaviour as the first example.

from nightpdf.

Lunarequest avatar Lunarequest commented on August 26, 2024

the issue was the file:// prefix. filtering this out fixed this issue

from nightpdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.