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

3D viewer locks up in Crosshair Plugin #19

Open
NicoleSchieber opened this issue Aug 9, 2023 · 5 comments
Open

3D viewer locks up in Crosshair Plugin #19

NicoleSchieber opened this issue Aug 9, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@NicoleSchieber
Copy link

NicoleSchieber commented Aug 9, 2023

When I have a file open in Crosshair as soon as I try to move the model in the 3D viewer it locks up and I have to close and try again. This happens consistently, maybe 1 in 10 I manage to be able to manipulate the model in the 3D viewer. It comes with the message that FIJI wants access to record the computers screen. I have attached this message as well as the view of my computer where this option looks to me that I have accepted already? I am doing this on a MacOS Monterey Version 12.6. My FIJI is IMAGEj2 version 2.9.0/1.54f.

Do you need more information?

Error messages:

3D [dev] 1.6.0-scijava-2-pre11-daily-experimental daily

nFrames = 1
Keymap list file /Users/uqnschie/Library/Application Support/sc.fiji.bigdataviewer/keymaps/keymaps.yaml not found. Using builtin styles.
Appearance settings file /Users/uqnschie/Library/Application Support/sc.fiji.bigdataviewer/appearance.yaml not found. Using defaults.
com.jogamp.opengl.GLException: detachAllImpl failed: FBO implementation fault, FBO[name r/w 2/2, init true, bound true, size 512x534, samples 0/4, modified true/true, depth RenderAttachment[type DEPTH, format 0x81a5, samples 0, 512x534, name 0xffffffff, obj 0x66ccf30c], stencil null, colorbuffer attachments: 1/8, with 1 textures: [TextureAttachment[type COLOR_TEXTURE, target GL_TEXTURE_2D, level 0, format 0x8051, 512x534, border 0, dataFormat 0x1907, dataType 0x1401; min/mag 0x2600/0x2600, wrap S/T 0x812f/0x812f; name 0xffffffff, obj 0x3b336a82], null, null, null, null, null, null, null], msaa[null, hasSink false, dirty true], state FBO implementation fault, obj 0x468be22d]
	at com.jogamp.opengl.FBObject.detachAllImpl(FBObject.java:2250)
	at com.jogamp.opengl.FBObject.reset(FBObject.java:1191)
	at org.scijava.java3d.JoglPipeline.resizeOffscreenLayer(JoglPipeline.java:6290)
	at org.scijava.java3d.Canvas3D.setView
port(Canvas3D.java:4864)
	at org.scijava.java3d.Renderer.doWork(Renderer.java:993)
	at org.scijava.java3d.J3dThread.run(J3dThread.java:271)
Exception occurred in RenderingErrorListener:
java.lang.RuntimeException
	at ij3d.ImageWindow3D$ErrorListener.errorOccurred(ImageWindow3D.java:351)
	at org.scijava.java3d.VirtualUniverse.notifyRenderingErrorListeners(VirtualUniverse.java:1198)
	at org.scijava.java3d.NotificationThread.processNotifications(NotificationThread.java:86)
	at org.scijava.java3d.NotificationThread.run(NotificationThread.java:104)
CrosshairError_1 RecordPermission
@K-Meech
Copy link
Collaborator

K-Meech commented Aug 9, 2023

Thanks for the info @NicoleSchieber !
Could you also let me know which other update sites you have enabled in Fiji? If you download a new Fiji (and put it in a separate folder to your usual one) + only enable the Crosshair update site - do you still get the same errors?

@K-Meech K-Meech added the bug Something isn't working label Aug 9, 2023
@NicoleSchieber
Copy link
Author

NicoleSchieber commented Aug 11, 2023 via email

@K-Meech
Copy link
Collaborator

K-Meech commented Aug 13, 2023

Thanks @NicoleSchieber - that's perfect. Good to know that you get the same errors in an updated + new Fiji.
I'll look into this soon and see if I can find a solution for the resizing problem.

@K-Meech
Copy link
Collaborator

K-Meech commented Aug 13, 2023

So I looked into this some more and unfortunately this seems to be a known issue with the ImageJ 3D Viewer on Macs:
https://forum.image.sc/t/crash-with-fiji-3d-viewer-plugin-on-mac-upon-any-window-resizing/35323
https://forum.image.sc/t/3d-viewer-crashes-when-resizing-the-window/11829/5

As it's an issue with the external 3D viewer code, there's no simple fix unfortunately. At some point, it would make sense to update from using the 3D Viewer to SciView (which is a more recent 3D viewer). I won't have time to do this in the near future though, as it's a big change. Sorry I can't be of more help @NicoleSchieber ! I'll let you know if I find time to check out SciView as an alternative.

@NicoleSchieber
Copy link
Author

NicoleSchieber commented Aug 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants