Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content
Snippets Groups Projects
  1. Nov 03, 2022
  2. Nov 02, 2022
  3. Oct 13, 2022
  4. Oct 12, 2022
  5. Oct 07, 2022
  6. Oct 06, 2022
  7. Oct 05, 2022
  8. Oct 01, 2022
  9. Sep 30, 2022
  10. Sep 07, 2022
  11. Sep 06, 2022
  12. Sep 04, 2022
    • Umair Sair's avatar
      Open libraries with RTLD_NODELETE on linux · 1b82594b
      Umair Sair authored
      Problem:
      ========
      Sometimes eclipse throws following error on error stream when HTTPS proxy with user and password exists and thread gets stuck at fLibSecret.secret_service_get_sync(..)
      
      ~~~~~~~~~~~~~~~~~~~~~~~~~
      (java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot register existing type 'SecretService'
      
      (java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot add private field to invalid (non-instantiatable) type '<invalid>'
      
      (java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
      
      (java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
      
      (java:3835014): GLib-GObject-WARNING **: 02:47:42.753: cannot register existing type 'SecretBackend'
      
      (java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
      
      (java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
      
      (java:3835014): GLib-CRITICAL **: 02:47:42.753: g_once_init_leave: assertion 'result != 0' failed
      
      (java:3835014): GLib-GObject-CRITICAL **: 02:47:42.753: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
      ~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Reason:
      =======
      LinuxPasswordProvider.unlockSecretService() is called many times and when this problem occurs, NativeLibrary instance is garbadge collected
      and dispose is called on NativeLibrary and handle is closed. When LinuxPasswordProvider.unlockSecretService() is called again, we reload
      libraries. Now libsecret has static variables based on which it initializes the secret service. As our library was not loaded with RTLD_NODELETE,
      so on unloading the library, the static variables are cleared and reloading the library tries to register the service again which causes the mess
      and the error is printed on error stream
      Related Link: https://www.spinics.net/lists/gtk/msg21985.html
      
      Solution:
      =========
      Open libraries with RTLD_NODELETE so that even if handle is closed, the library is not unloaded and on reloading the library, we get the same library
      instance and static variables with the same old state.
      
      Also updating the jna version to use latest jna which supports java 18 where finalizers are removed.
      3 tags
      1b82594b
  13. Sep 03, 2022
  14. Sep 02, 2022
  15. Aug 26, 2022
  16. Aug 17, 2022
  17. Aug 15, 2022
  18. Aug 13, 2022
    • Александър Куртаков's avatar
      Fix o.e.osgi.tests warnings in I-build · 60645e3b
      The following warnings are fixed:
      ```
      1. WARNING in
      /src/org/eclipse/osgi/tests/container/TestModuleContainer.java
       (at line 733)
      Module c1 = installDummyModule("c1_v1.MF", "c1_v1", container);
      The value of the local variable c1 is not used
      2. WARNING in
      /src/org/eclipse/osgi/tests/container/TestModuleContainer.java
       (at line 734)
      Module c2 = installDummyModule("c2_v1.MF", "c2_v1", container);
      The value of the local variable c2 is not used
      3. WARNING in
      /src/org/eclipse/osgi/tests/container/TestModuleContainer.java
       (at line 735)
      Module c3 = installDummyModule("c3_v1.MF", "c3_v1", container);
      The value of the local variable c3 is not used
      4. WARNING in
      /src/org/eclipse/osgi/tests/container/TestModuleContainer.java
       (at line 737)
      Module c5 = installDummyModule("c5_v1.MF", "c5_v1", container);
      The value of the local variable c5 is not used
      ```
      
      Also the class had a mixture of static import for asserts and not which
      is fixed to use only static imports now.
      8 tags
      60645e3b
Loading

Use of Cookies

We use Matomo Analytics to analyze and evaluate the use of our platform. The insights help us to improve our offerings and make them more relevant for you.

You can choose whether to allow us to process your data for these purposes and set the corresponding cookies. For more information about data protection — especially regarding "Cookies" and "Matomo"— please refer to our Privacy Policy. You can withdraw your consent at any time.