Skip to content

PixelLens encountered an unexpected error. If possible, please report this issue on GitHub. #116

@yzy26353520

Description

@yzy26353520

When I clicked on the ndarray array with the middle button of the mouse, an error occurred.
Image

An exception occurred in the plugin.

Environment:

  • Plugin Version:
  • PyCharm Version: 2026.1.1 (PyCharm)
  • Operating System: Windows 10 10.0

Exception details:

java.util.concurrent.TimeoutException
java.base/sun.nio.ch.PendingFuture.get(PendingFuture.java:195)
com.github.srwi.pixellens.dataTransmitters.SocketDataTransmitter.waitForClientConnection(SocketDataTransmitter.kt:68)
com.github.srwi.pixellens.dataTransmitters.SocketDataTransmitter.getJsonData(SocketDataTransmitter.kt:40)
com.github.srwi.pixellens.imageProviders.ImageProvider.getBatchData(ImageProvider.kt:39)
com.github.srwi.pixellens.imageProviders.ImageProvider.getBatchByExpression(ImageProvider.kt:31)
com.github.srwi.pixellens.actions.ViewAsImageAction$actionPerformed$1.run(ViewAsImageAction.kt:41)
com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:561)
com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:197)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$7(CoreProgressManager.java:612)
com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:284)
com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:287)
com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:44)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:286)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:744)
com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:819)
com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:775)
com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:743)
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:267)
com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:284)
com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:556)
com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$17(ProgressRunner.java:511)
com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:510)
com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:198)
com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:192)
com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$19(ProgressRunner.java:507)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:649)
java.base/java.lang.Thread.run(Thread.java:1474)

Steps to reproduce:

  1. Execute the script in the Python console and obtain an {ndarray:(5,231,318)}
  2. Click the middle button on the ndarray or any one of the five elements.

Code snippet:

# Python code to reproduce the issue
import scipy.io as sio
import numpy as np
mat_path = r'00001.mat'
data = sio.loadmat(mat_path) 
import matplotlib.pyplot as plt
imgs=data['Mix']
plt.imshow(imgs[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions