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

hangs if window too small #14

Open
maierl opened this issue Jun 24, 2015 · 0 comments
Open

hangs if window too small #14

maierl opened this issue Jun 24, 2015 · 0 comments

Comments

@maierl
Copy link

maierl commented Jun 24, 2015

If I do not change the default window size of the cell viewer, ClearVolume hangs until I reset the viewer node and resize before opening the ClearVolume tab:

--== GET VIEW COMPONENT ==--
--== UPDATE COMPONENT ==--
ClearGLWindow: GLProfile[GL4bc/GL4bc.hw]
Platform: NVIDIA CUDA {vendor: NVIDIA Corporation, version: OpenCL 1.2 CUDA 7.5.
9, profile: FULL_PROFILE, extensions: [cl_khr_byte_addressable_store, cl_khr_icd
, cl_khr_gl_sharing, cl_nv_compiler_options, cl_nv_device_attribute_query, cl_nv
_pragma_unroll, cl_nv_d3d9_sharing, cl_nv_d3d10_sharing, cl_khr_d3d10_sharing, c
l_nv_d3d11_sharing, cl_nv_copy_opts]}
        #device: Quadro K2000 (NVIDIA CUDA)
                *opencl version: OpenCL C 1.2
                *driver version: 353.30
                *max mem alloc size: 536870912
                *global mem size: 2147483648
                *max compute units: 2
                *max clock freq: 954
                *3d volume max width: 4096
                *3d volume max height: 4096
                *3d volume max depth: 4096
                *isHostUnifiedMemory: false
NVIDIA CUDA.Quadro K2000 L48k/G 2048M mem with 2 compute units
Quadro K2000 is best in platform NVIDIA CUDA
Found best device to be: Quadro K2000 from platform NVIDIA CUDA
Device name:     Quadro K2000 (NVIDIA CUDA)
Jun 24, 2015 4:38:43 PM com.nativelibs4java.opencl.JavaCL log
WARNING: clCreateImage3D is deprecated from OpenCL version 1.2 (detected version
 is 1.2)
Jun 24, 2015 4:38:43 PM com.nativelibs4java.opencl.JavaCL log
WARNING: clCreateImage2D is deprecated from OpenCL version 1.2 (detected version
 is 1.2)







Exception in thread "AWT-EventQueue-0-FPSAWTAnimator#00-Timer0" com.jogamp.openg
l.util.AnimatorBase$UncaughtAnimatorException: javax.media.opengl.GLException: C
aught IllegalArgumentException: Buffer size must be greater than zero (asked for
 size 0) on thread AWT-EventQueue-0-FPSAWTAnimator#00-Timer0
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:8
4)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:449)
        at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:176)

        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)
Caused by: javax.media.opengl.GLException: Caught IllegalArgumentException: Buff
er size must be greater than zero (asked for size 0) on thread AWT-EventQueue-0-
FPSAWTAnimator#00-Timer0
        at javax.media.opengl.GLException.newGLException(GLException.java:75)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:131
1)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:675)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:7
7)
        ... 4 more
Caused by: java.lang.IllegalArgumentException: Buffer size must be greater than
zero (asked for size 0)
        at com.nativelibs4java.opencl.CLContext.createBuffer(CLContext.java:1142
)
        at com.nativelibs4java.opencl.CLContext.createBuffer(CLContext.java:1133
)
        at com.nativelibs4java.opencl.CLContext.createBuffer(CLContext.java:1120
)
        at com.nativelibs4java.opencl.CLContext.createIntBuffer(CLContext.java:7
61)
        at clearvolume.renderer.opencl.OpenCLDevice.createInputOutputIntBuffer(O
penCLDevice.java:582)
        at clearvolume.renderer.opencl.OpenCLVolumeRenderer.notifyChangeOfTextur
eDimensions(OpenCLVolumeRenderer.java:171)
        at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.ensureTextureAlloc
ated(ClearGLVolumeRenderer.java:627)
        at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.displayInternal(Cl
earGLVolumeRenderer.java:686)
        at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.display(ClearGLVol
umeRenderer.java:667)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:690)

        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:672)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:441)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:127
7)
        ... 7 more
OPENGL ERROR BEFORE RENDER VOLUME #1281 : invalid value
Exception in thread "AWT-EventQueue-0-Display-.windows_nil-1-EDT-1" javax.media.
opengl.GLException: Caught RuntimeException: This CLBuffer has been manually rel
eased and can't be used anymore ! on thread AWT-EventQueue-0-Display-.windows_ni
l-1-EDT-1
        at javax.media.opengl.GLException.newGLException(GLException.java:75)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:131
1)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:675)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowRepaintOp(GLAutoDrawabl
eBase.java:213)
        at com.jogamp.newt.opengl.GLWindow.access$100(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowRepaint(GLWindow.java:136)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:3692)
        at jogamp.newt.WindowImpl.consumeEvent(WindowImpl.java:2665)
        at jogamp.newt.WindowImpl.doEvent(WindowImpl.java:2611)
        at jogamp.newt.WindowImpl.windowRepaint(WindowImpl.java:3956)
        at jogamp.newt.driver.windows.DisplayDriver.DispatchMessages0(Native Met
hod)
        at jogamp.newt.driver.windows.DisplayDriver.dispatchMessagesNative(Displ
ayDriver.java:120)
        at jogamp.newt.DisplayImpl.dispatchMessages(DisplayImpl.java:733)
        at jogamp.newt.DisplayImpl$7.run(DisplayImpl.java:656)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:343)
Caused by: java.lang.RuntimeException: This CLBuffer has been manually released
and can't be used anymore !
        at com.nativelibs4java.opencl.CLAbstractEntity.checkNullity(CLAbstractEn
tity.java:130)
        at com.nativelibs4java.opencl.CLAbstractEntity.getEntity(CLAbstractEntit
y.java:134)
        at com.nativelibs4java.opencl.CLKernel.setArg(CLKernel.java:406)
        at com.nativelibs4java.opencl.CLKernel.setObjectArg(CLKernel.java:201)
        at com.nativelibs4java.opencl.CLKernel.setArgs(CLKernel.java:191)
        at clearvolume.renderer.opencl.OpenCLDevice.setArgs(OpenCLDevice.java:34
4)
        at clearvolume.renderer.opencl.OpenCLVolumeRenderer.runKernel(OpenCLVolu
meRenderer.java:413)
        at clearvolume.renderer.opencl.OpenCLVolumeRenderer.updateBufferAndRunKe
rnel(OpenCLVolumeRenderer.java:361)
        at clearvolume.renderer.opencl.OpenCLVolumeRenderer.renderVolume(OpenCLV
olumeRenderer.java:256)
        at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.displayInternal(Cl
earGLVolumeRenderer.java:731)
        at clearvolume.renderer.cleargl.ClearGLVolumeRenderer.display(ClearGLVol
umeRenderer.java:667)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:690)

        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:672)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:441)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:127
7)
        ... 14 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant