Hannah-Sten / TeXiFy-IDEA

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

org.freedesktop.dbus.exceptions.DBusExecutionException: (1) Underlying transport returned -1 #3677

Closed TheOriginalGraLargeShrimpakaReaper closed 1 week ago

TheOriginalGraLargeShrimpakaReaper commented 1 month ago

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

PyCharm 2024.2.3 (build PY-242.23339.19)

Operating System

Linux 6.10.5-surface-1 (amd64)

TeXiFy IDEA version

0.9.7

Description

Stacktrace

org.freedesktop.dbus.exceptions.DBusExecutionException: (1) Underlying transport returned -1
    at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
    at org.freedesktop.dbus.messages.Error.getException(Error.java:111)
    at org.freedesktop.dbus.messages.Error.throwException(Error.java:138)
    at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(RemoteInvocationHandler.java:237)
    at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(RemoteInvocationHandler.java:250)
    at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(RemoteInvocationHandler.java:153)
    at org.freedesktop.dbus.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:97)
    at jdk.proxy5/jdk.proxy5.$Proxy234.FindDocument(Unknown Source)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.evince.EvinceConversation.findProcessOwner(EvinceConversation.kt:124)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.evince.EvinceConversation.forwardSearch(EvinceConversation.kt:72)
    at nl.hannahsten.texifyidea.run.linuxpdfviewer.OpenViewerListener$processTerminated$$inlined$runAsync$1.run(promise.kt:472)
    at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
    at java.base/java.lang.Thread.run(Thread.java:1583)
PHPirates commented 3 weeks ago

Thanks for reporting this! Can you reproduce this exception consistently?

Linux 6.10.5-surface-1 (amd64)

You are running Linux Surface? What Evince version do you have?

TheOriginalGraLargeShrimpakaReaper commented 1 week ago

Yes, i use a Surface Linux (Ubuntu 24.04). Evince Version is: gra@gra-lurface-pro-4-v2:~$ snap list | grep evince evince 45.0 1044 latest/stable ken-vandine*

PHPirates commented 1 week ago

Thanks, then the version is fine, maybe the problem is that evince is installed as snap? From what I remember, snap installs things in a super safe way which maybe renders the dbus communication unusable. On the other hand, Surface Linux is also quite uncommon and since you're the only one having reported this, maybe it has something to do with that.

I'll just wait and see if anyone else has this problem, unless you want to spent some time debugging this to get forward search working with Evince.