Helioviewer-Project / JHelioviewer-SWHV

Space Weather JHelioviewer ☉
https://swhv.oma.be
Mozilla Public License 2.0
47 stars 16 forks source link

Fatal error detected. #139

Closed GitatHub closed 4 years ago

GitatHub commented 4 years ago

Both openjdk and oracle jdk failed to run .

Log: [main] INFO root - JHelioviewer started with command-line options: [main] INFO root - Running JHV/SWHV-2.14.0.8810 (amd64 Linux 5.3.11-100.fc29.x86_64) Oracle Corporation JRE 14.0.1 on 3.9GB 8CPU [main] ERROR root - JPIP cache initialization error org.ehcache.StateTransitionException: Persistence directory already locked by another process: /home/user/JHelioviewer-SWHV/Cache/JPIPStream at org.ehcache.core.StatusTransitioner$Transition.failed(StatusTransitioner.java:235) at org.ehcache.core.EhcacheManager.init(EhcacheManager.java:600) at org.ehcache.config.builders.CacheManagerBuilder.build(CacheManagerBuilder.java:72) at org.helioviewer.jhv.view.jp2view.io.jpip.JPIPCacheManager.init(JPIPCacheManager.java:28) at org.helioviewer.jhv.JHelioviewer.main(JHelioviewer.java:91) Caused by: java.lang.RuntimeException: Persistence directory already locked by another process: /home/user/JHelioviewer-SWHV/Cache/JPIPStream at org.ehcache.impl.persistence.DefaultLocalPersistenceService.internalStart(DefaultLocalPersistenceService.java:105) at org.ehcache.impl.persistence.DefaultLocalPersistenceService.start(DefaultLocalPersistenceService.java:75) at org.ehcache.core.internal.service.ServiceLocator.startAllServices(ServiceLocator.java:117) at org.ehcache.core.EhcacheManager.init(EhcacheManager.java:572) ... 3 more [AWT-EventQueue-0] INFO root - Start main window [AWT-EventQueue-0] ERROR root - Runtime exception java.lang.UnsatisfiedLinkError: /tmp/jogamp_0000/file_cache/jln5909869130393219387/jln11919467365678413492/natives/linux-amd64/libnativewindow_awt.so: /usr/java/jdk-14.0.1/lib/libjawt.so: version `SUNWprivate_1.1' not found (required by /tmp/jogamp_0000/file_cache/jln5909869130393219387/jln11919467365678413492/natives/linux-amd64/libnativewindow_awt.so) at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2452) at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2508) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2704) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2637) at java.base/java.lang.Runtime.load0(Runtime.java:745) at java.base/java.lang.System.load(System.java:1871) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:603) at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487) at jogamp.nativewindow.NWJNILibLoader.access$000(NWJNILibLoader.java:39) at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:49) at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:41) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at jogamp.nativewindow.NWJNILibLoader.loadNativeWindow(NWJNILibLoader.java:41) at jogamp.nativewindow.jawt.JAWTUtil.(JAWTUtil.java:336) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:427) at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:344) at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:340) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at com.jogamp.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:340) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1721) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) at org.helioviewer.jhv.opengl.GLHelper.createGLWindow(GLHelper.java:119) at org.helioviewer.jhv.gui.ImageViewerGui.prepareGui(ImageViewerGui.java:101) at org.helioviewer.jhv.JHelioviewer.lambda$main$0(JHelioviewer.java:108) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

bogdanni commented 4 years ago

Could you please use the version from http://swhv.oma.be/download_test/ It is going to be released soon.

GitatHub commented 4 years ago

Thanks. Yes. the rpm package works in my Fedora 29 x64 but the deb package has problems in my Ubuntu 20.04 x64 and the rpm package fails in CentOS 7.8.2003 x64. Similar to #137

In Ubuntu 20.04:

#jhelioviewer 
[main] INFO  root - JHelioviewer started with command-line options: 
[main] INFO  root - JHV/SWHV-2.16.0.10007 (amd64 Linux 5.4.0-31-generic) Ubuntu JRE 11.0.7 3.9GB 4CPU
[main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing
[main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful.
[main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing
[main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful.
[AWT-EventQueue-0] INFO  root - Start main window
[AWT-EventQueue-0] ERROR root - GLInfo > Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7f498848a4e0, owner true, ResourceToolkitLock[obj 0x20be1501, isOwner true, <3083a9aa, 25b6b1ed>[count 1, qsz 0, owner <AWT-EventQueue-0>]]], but: [GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
[Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0, 0x7f498848a4e0, refCount 1, unCloseable false]
[Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful.
[Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing
[Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.

In CentOS 7.8.2003 x64

jhelioviewer 
[main] INFO  root - JHelioviewer started with command-line options: 
[main] INFO  root - JHV/SWHV-2.16.0.10007 (amd64 Linux 3.10.0-1062.18.1.el7.x86_64) Oracle Corporation JRE 11.0.7 30.0GB 72CPU
[main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing
[main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful.
[main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing
[main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful.
[AWT-EventQueue-0] INFO  root - Start main window
[AWT-EventQueue-0] ERROR root - GLInfo > Profile GL3 is not available on null, but: [GLProfile[GL2ES1/GL2.sw], GLProfile[GL2ES2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2GL3/GL2.sw]]
[Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing
[Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful.
[Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing
[Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.
GitatHub commented 4 years ago

[ ] JHelioviewer_2_16_0_amd64.deb 10-Sep-2020 11:50 58M

In fedora 29:

yum install --skip-broken ./JHelioviewer_2_16_0_amd64.rpm 
  - package JHelioviewer-2.16.0-1.amd64 does not have a compatible architecture
Nothing to do.

The version before this one worked in Fedora 29. I lost the old installation package, is there a place to find archived older test versions?

Directly extracting the rpm package works around.

bogdanni commented 4 years ago

I don't know what is going on with yum, but here this simple command works: sudo rpm --install JHelioviewer_*_amd64.rpm

bogdanni commented 4 years ago

Do you still have issues on Ubuntu 20.04? That computer should work. Could you please retry with the latest package?

On the CentOS, the graphics device is not detected and anyway the OpenGL profiles detected are very low. Does it even have a screen? It seems a server computer (72CPU...)

GitatHub commented 4 years ago

No luck on Ubuntu either CentOS

on Ubuntu 20.04 1) X11 Windowing system

2020-09-23 time [main] INFO root - JHelioviewer started with command-line options: 2020-09-23 time [main] INFO root - JHV/SWHV-4.0.0.10063 (amd64 Linux 5.4.0-47-generic) AdoptOpenJDK JRE 11.0.8 3.9GB 4CPU 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful. 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful. 2020-09-23 time [AWT-EventQueue-0] INFO root - Start main window 2020-09-23 time [AWT-EventQueue-0] ERROR root - GLInfo > Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7f0620941720, owner true, ResourceToolkitLock[obj 0x3105175a, isOwner true, <7a435315, 35385ad3>[count 1, qsz 0, owner ]]], but: [GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]] 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1) X11Util: Open X11 Display Connections: 1 X11Util: Open[0]: NamedX11Display[:0, 0x7f0620941720, refCount 1, unCloseable false] 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful. 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.

2) Wayland Windowing system

2020-09-23 time [main] INFO root - JHelioviewer started with command-line options: 2020-09-23 time [main] INFO root - JHV/SWHV-4.0.0.10063 (amd64 Linux 5.4.0-47-generic) AdoptOpenJDK JRE 11.0.8 3.9GB 4CPU 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful. 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful. 2020-09-23 time [AWT-EventQueue-0] INFO root - Start main window 2020-09-23 time [AWT-EventQueue-0] ERROR root - GLInfo > Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fb44c91eaf0, owner true, ResourceToolkitLock[obj 0x332ee47, isOwner true, <5594a965, 54c4964a>[count 1, qsz 0, owner ]]], but: [GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]] 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1) X11Util: Open X11 Display Connections: 1 X11Util: Open[0]: NamedX11Display[:0, 0x7fb44c91eaf0, refCount 1, unCloseable false] 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful. 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.

on CentOS server (no. it has no physical display.) 1) ssh -X login, outputs

2020-09-23 time [main] INFO root - JHelioviewer started with command-line options: 2020-09-23 time [main] INFO root - JHV/SWHV-4.0.0.10061 (amd64 Linux 3.10.0-1062.18.1.el7.x86_64) AdoptOpenJDK JRE 11.0.8 30.0GB 72CPU 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful. 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful. 2020-09-23 time [AWT-EventQueue-0] INFO root - Start main window 2020-09-23 time [AWT-EventQueue-0] ERROR root - GLInfo > Profile GL3 is not available on null, but: [GLProfile[GL2ES1/GL2.sw], GLProfile[GL2ES2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2GL3/GL2.sw]] 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful. 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.

2) vnc login, outputs

2020-09-23 time [main] INFO root - JHelioviewer started with command-line options: 2020-09-23 time [main] INFO root - JHV/SWHV-4.0.0.10061 (amd64 Linux 3.10.0-1062.18.1.el7.x86_64) AdoptOpenJDK JRE 11.0.8 30.0GB 72CPU 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Initialize successful. 2020-09-23 time [main] TRACE class org.ehcache.core.Ehcache-JPIPStream - Initializing 2020-09-23 time [main] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Initialize successful. 2020-09-23 time [AWT-EventQueue-0] INFO root - Start main window 2020-09-23 time [AWT-EventQueue-0] ERROR root - GLInfo > Profile GL3 is not available on null, but: [GLProfile[GL2ES1/GL2.sw], GLProfile[GL2ES2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2/GL2.sw], GLProfile[GL2GL3/GL2.sw]] 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPLevel - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPLevel - Close successful. 2020-09-23 time [Thread-2] TRACE class org.ehcache.core.Ehcache-JPIPStream - Closing 2020-09-23 time [Thread-2] DEBUG class org.ehcache.core.Ehcache-JPIPStream - Close successful.

Do you still have issues on Ubuntu 20.04? That computer should work. Could you please retry with the latest package?

On the CentOS, the graphics device is not detected and anyway the OpenGL profiles detected are very low. Does it even have a screen? It seems a server computer (72CPU...)

bogdanni commented 4 years ago

Thanks. The program needs direct hardware rendering, it cannot run through GLX. And VNC it's doubtful. So for your CentOS server, it is "normal".

Now, for your Ubuntu 20.04 computer, what video card it has inside? Could you please run glxgears -info and paste here the output? It seems there is a whole class of computers where the OpenGL detection fails, like #142. I'm trying to identify the communality.

The program never requests a OpenGL 4 backward-compatible profile (GL4bc), but OpenGL 3 core profile, it could be satisfied with GLProfile[GL4/GL4.hw] or GLProfile[GL3/GL4.hw] which seem supported but not returned by the JOGL library.

GitatHub commented 4 years ago

glxgears -info

Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. GL_RENDERER = Mesa Intel(R) HD Graphics 620 (KBL GT2) GL_VERSION = 4.6 (Compatibility Profile) Mesa 20.0.8 GL_VENDOR = Intel GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_vertex_attrib_64bit GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_framebuffer_fetch GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_ARB_fragment_shader_interlock GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_post_depth_coverage GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_NV_fragment_shader_interlock GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_sRGB_R8 GL_EXT_texture_shadow_lod GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation VisualID 699, 0x2bb

After I closed the gear window, the terminal outpus

296 frames in 5.0 seconds = 59.058 FPS XIO: fatal IO error 62 (Timer expired) on X server ":0" after 378 requests (49 known processed) with 0 events remaining.

bogdanni commented 4 years ago

Seems that for Mesa 20 the driver architecture changed for Intel, possibly bringing another class of problems compared with the older driver which had it's share of bugs (extensively worked around by JHV).

bogdanni commented 4 years ago

@GitatHub & @ebuchlin : Could you please get again the Debian package and retry?

GitatHub commented 4 years ago

Thanks. It now works on Ubuntu. It would be better if the UI can display icons well with a high DPI display.
As shown in the snapshot, the icons and especially the calendar are not well displayed. my display is in 2560x1440 with 2 times scaled (display as 1280x720).

image

@GitatHub & @ebuchlin : Could you please get again the Debian package and retry?

bogdanni commented 4 years ago

I was losing hope, hurrah!

The issue with scaling lays between Java and Gnome, I'm afraid. It works correctly with KDE, Windows and macOS. The icons are not actually icons but vectorial glyphs from a font and are perfectly scalable to any resolution.

It is actually the text which is not well scaled, the icons are the correct size.

bogdanni commented 4 years ago

One solution is to use the default look and feel. It will look less like the rest of the desktop, but then you can run it like jhelioviewer -J-Dsun.java2d.uiScale=2, where 2 is your scaling factor, and it will work correctly.

Can you please try the new Debian package and confirm that it works for you?

GitatHub commented 4 years ago

Yes. The latest deb package works with the argument '-J-Dsun.java2d.uiScale=2', but the default run w/o the argument will make the text and boxes in the UI too small in a hDPI condition. I am trying to switch from Gnome to KDE (plasma). I found that the key difference is KDE has an option "force font DPI to 192 while Gnome does not. So, I think the previous version that automatically scaled the UI was more friendly to KDE users with hDPI displays. It is really a difficult issue to handle 😫. Linuxes are still uncompleted ....

Thank you very much for optimizing JHV for us.

One solution is to use the default look and feel. It will look less like the rest of the desktop, but then you can run it like jhelioviewer -J-Dsun.java2d.uiScale=2, where 2 is your scaling factor, and it will work correctly.

Can you please try the new Debian package and confirm that it works for you?

bogdanni commented 4 years ago

To be clear: in KDE (KUbuntu 20.04), just setting Global Scale to 200% in Display Configuration, no argument has to be given, it works correctly.

It's in Gnome that either you have something like your screenshot above (text too big) or you pass the scaling as argument. I prefer that people who need it pass the scaling, instead of having it automatically broken by the software.

Thank you for helping getting out the kinks!

GitatHub commented 4 years ago

My suggestion is to add an option in "Preference" to scale the GUI just like ImageJ program does. The latter is also a Java-based application which has the same issue in hiDPI GUI display. After all JHV is a GUI based application, a GUI based option to set the scale, IMHO, is better. image

dmueller3000 commented 4 years ago

This sounds like a good approach to me! Thanks, Bogdan.

On 29 Sep 20, at 06:16, GitatHub notifications@github.com wrote:

My suggestion is to add an option in "Preference" to scale the GUI just like ImageJ program does. The latter is also a Java-based application which has the same issue in hiDPI GUI display.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Helioviewer-Project/JHelioviewer-SWHV/issues/139#issuecomment-700415868, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFHJRRWJHI2AIJEYKKOH7DSIFNSJANCNFSM4NLY7VGQ.

This message is intended only for the recipient(s) named above. It may contain proprietary information and/or protected content. Any unauthorised disclosure, use, retention or dissemination is prohibited. If you have received this e-mail in error, please notify the sender immediately. ESA applies appropriate organisational measures to protect personal data, in case of data privacy queries, please contact the ESA Data Protection Officer (dpo@esa.int).

bogdanni commented 4 years ago

This affects only Gnome on Linux and is, arguably, the consequence of uninspired Gnome technical decisions.

The above sun.java2d.uiScale system property can be set only before the start of the JVM. I believe that to implement such an approach inside the program requires starting two JVMs one after the other (first passing the property to the second). It is possible, but out of question.

I will investigate if the scaling can be set programmatically.

GitatHub commented 4 years ago

Yes. This option requires a restart to take effect in ImageJ. I guess ImageJ writes a config file somewhere to remember the scale factor. Actually JHV has its own config files in $HOME/JHelioviewer-SWHV/Settings .

bogdanni commented 4 years ago

I bet a first JVM reads the setting from config and starts a new JVM instance with this system property set.

For the full HiDPI enchilada on Linux: https://wiki.archlinux.org/index.php/HiDPI

bogdanni commented 4 years ago

One solution for the time being is to bundle the JetBrains JRE which solves this issue internally. The disadvantages are that it limits the language level at 11 and that it cannot be used on Mac due to lack of some functionality, therefore it should used only for the Linux packages.

Please retry the packages from http://swhv.oma.be/download_test/ Tested on Gnome and KDE Ubuntu and Gnome Fedora.

On Debian: $ sudo dpkg -i JHelioviewer_4_0_0_amd64.deb

On Fedora (erase will produce warnings): $ sudo rpm --erase JHelioviewer $ sudo rpm --install JHelioviewer_4_0_0_amd64.rpm

GitatHub commented 4 years ago

Thanks. My Fedora is not connected to a hiDPI display, so I just tested the DEB version. The update works now w/o any additional arguments on my 2K display Ubuntu laptop. image

BTW, the package installed two .desktop file in the system one is /opt/JHelioviewer/jhelioviewer.desktop and the other one is /usr/share/applications/jhelioviewer.desktop

This brings two application entries in the Gnome app launcher (yes I came back to gnome :-) image

Is this intentionally done?

ebuchlin commented 4 years ago

This last version also works for me (Ubuntu 20.04, KDE/Plasma)

2020-09-29 11:14:38,101 [main] INFO  root - JHV/SWHV-4.0.0.10076 (amd64 Linux 5.4.0-48-generic) JetBrains s.r.o. JRE 11.0.8 7.8GB 8CPU

I also have 2 .desktop files (and 2 entries when searching for the jhelioviewer app), but I didn't notice.

bogdanni commented 4 years ago

Thanks. The two .desktop files are the result of the magic inside the install4j program that creates those packages. I've tried again, but I cannot find what causes this.

bogdanni commented 4 years ago

Closed in favor of #145