Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
893 stars 89 forks source link

org.freedesktop.dbus.errors.ServiceUnknown: The name org.gnome.evince.Daemon was not provided by any .service files #2128

Closed theo-brown closed 2 years ago

theo-brown commented 2 years ago

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm 2021.2.2 (build PY-212.5284.44)

Operating System

Linux 5.4.0-88-generic (amd64)

TeXiFy IDEA version

0.7.12

Description

Error occurred during compiling a .tex to pdf

Stacktrace

org.freedesktop.dbus.errors.ServiceUnknown: The name org.gnome.evince.Daemon was not provided by any .service files
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at org.freedesktop.dbus.errors.Error.getException(Error.java:145)
    at org.freedesktop.dbus.errors.Error.throwException(Error.java:175)
    at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(RemoteInvocationHandler.java:152)
    at org.freedesktop.dbus.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:216)
    at com.sun.proxy.$Proxy199.FindDocument(Unknown Source)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.evince.EvinceConversation.findProcessOwner(EvinceConversation.kt:98)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.evince.EvinceConversation.forwardSearch(EvinceConversation.kt:61)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.OpenViewerListener$processTerminated$$inlined$runAsync$1.run(promise.kt:404)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)
theo-brown commented 2 years ago

I think this is because Evince was running an old version, because I ran apt update evince and it seemed to start working. It didn't fail particularly nicely in the original bug, though, so maybe adding a pop-up to say Compilation failed - please update Evince and try again or something would be great!

PHPirates commented 2 years ago

Yeah, see #2087, I'm wondering what your original Evince version was because we should have something implemented that complains that Evince is too old. But I'll just catch this exception and provide a message as you say, that should fix it once and for all.