Problems loading SWT on newest Linux versions

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems loading SWT on newest Linux versions

Thomas Singer
Hi,

We've got 2 bug reports where Linux users could not load SmartSVN. The
output of the latest one looks like (line separators could be screwed up):

Error invoking SmartSVN

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at QBootLoader.main(SourceFile:100)

Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library.
Reasons:
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so
no swt-pi-gtk-4723 in java.library.path
no swt-pi-gtk in java.library.path
/home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so:
  /home/bites/.smartsvn/9.2/svn-tmp/6058/libz.so.1: version `ZLIB_1.2.9'
not found (required by /lib64/libpng16.so.16)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:28)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:118)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:80)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:140)
at com.syntevo.q.gui.cH.a(SourceFile:58)
...

Did someone heard about such problems before, especially because of the
libz dependency?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading SWT on newest Linux versions

Leo Ufimtsev-2
Seems like it can't find the .so libs.

1)
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so

Are the '.so' files provided somewhere?
Try to set LD_LIBRARY_PATH manually:
export LD_LIBRARY_PATH=/path/to/so/files

But normally the SWT-jar is all you need?

2)
Sometimes installing 32bit eclipse on 64 bit systems (and vice versa) causes such issues also.

(if this turns out to the case let me know, maybe we could improve error message).


Any luck?


On Fri, Aug 4, 2017 at 2:43 PM, Thomas Singer <[hidden email]> wrote:
Hi,

We've got 2 bug reports where Linux users could not load SmartSVN. The output of the latest one looks like (line separators could be screwed up):

Error invoking SmartSVN

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at QBootLoader.main(SourceFile:100)

Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library.
Reasons:
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so
no swt-pi-gtk-4723 in java.library.path
no swt-pi-gtk in java.library.path
/home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so:
 /home/bites/.smartsvn/9.2/svn-tmp/6058/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib64/libpng16.so.16)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:28)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:118)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:80)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:140)
at com.syntevo.q.gui.cH.a(SourceFile:58)
...

Did someone heard about such problems before, especially because of the libz dependency?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--

Leo Ufimtsev

Software Engineer

Red Hat


90 Eglinton Ave E #502,

Toronto, ON M4P 2Y3

[hidden email]  

CHAT:

  - IRC: http://webchat.freenode.net/?channels=#swt

  - MatterMost: https://mattermost.eclipse.org/eclipse/channels/platform-swt


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading SWT on newest Linux versions

Thomas Singer
Hi Leo,

Thank you for the answer. I thought it would be a problem of SWT
(loading libz.so) but it was caused by a problem of SmartSVN having its
own libz.so for the SVN libraries. The problem revealed because
LD_LIBRARY_PATH was set to the path where the libz.so from the SVN
binaries was provided and SWT picked that up instead the one from the
system. I have no idea why it actually failed to load, but I now know
how to workaround.

Sorry for the noise.

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


On 08.08.2017 19:42, Leo Ufimtsev wrote:

> Seems like it can't find the .so libs.
>
> 1)
> Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so
> Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so
>
> Are the '.so' files provided somewhere?
> Try to set LD_LIBRARY_PATH manually:
> export LD_LIBRARY_PATH=/path/to/so/files
>
> But normally the SWT-jar is all you need?
>
> 2)
> Sometimes installing 32bit eclipse on 64 bit systems (and vice versa)
> causes such issues also.
>
> (if this turns out to the case let me know, maybe we could improve error
> message).
>
>
> Any luck?
>
>
> On Fri, Aug 4, 2017 at 2:43 PM, Thomas Singer <[hidden email]> wrote:
>
>> Hi,
>>
>> We've got 2 bug reports where Linux users could not load SmartSVN. The
>> output of the latest one looks like (line separators could be screwed up):
>>
>> Error invoking SmartSVN
>>
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at QBootLoader.main(SourceFile:100)
>>
>> Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library.
>> Reasons:
>> Can't load library: /home/bites/.smartsvn/9.2/swt.
>> tmp/libswt-pi-gtk-4723.so
>> Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so
>> no swt-pi-gtk-4723 in java.library.path
>> no swt-pi-gtk in java.library.path
>> /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so:
>>   /home/bites/.smartsvn/9.2/svn-tmp/6058/libz.so.1: version `ZLIB_1.2.9'
>> not found (required by /lib64/libpng16.so.16)
>>
>> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
>> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
>> at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:28)
>> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:118)
>> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:80)
>> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:140)
>> at com.syntevo.q.gui.cH.a(SourceFile:58)
>> ...
>>
>> Did someone heard about such problems before, especially because of the
>> libz dependency?
>>
>> --
>> Best regards,
>> Thomas Singer
>> =============
>> syntevo GmbH
>> http://www.syntevo.com
>> http://www.syntevo.com/blog
>> _______________________________________________
>> platform-swt-dev mailing list
>> [hidden email]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>
>
>
>
>
>
> _______________________________________________
> platform-swt-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problems loading SWT on newest Linux versions

Leo Ufimtsev-2
Ah, that's quite interesting.

I wonder if LD_LIBRARY_PATH was accidentally overwritten instead of appended to.

Thank you for sharing outcome.

On Tue, Aug 8, 2017 at 1:50 PM, Thomas Singer <[hidden email]> wrote:
Hi Leo,

Thank you for the answer. I thought it would be a problem of SWT (loading libz.so) but it was caused by a problem of SmartSVN having its own libz.so for the SVN libraries. The problem revealed because LD_LIBRARY_PATH was set to the path where the libz.so from the SVN binaries was provided and SWT picked that up instead the one from the system. I have no idea why it actually failed to load, but I now know how to workaround.

Sorry for the noise.

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


On 08.08.2017 19:42, Leo Ufimtsev wrote:
Seems like it can't find the .so libs.

1)
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so

Are the '.so' files provided somewhere?
Try to set LD_LIBRARY_PATH manually:
export LD_LIBRARY_PATH=/path/to/so/files

But normally the SWT-jar is all you need?

2)
Sometimes installing 32bit eclipse on 64 bit systems (and vice versa)
causes such issues also.

(if this turns out to the case let me know, maybe we could improve error
message).


Any luck?


On Fri, Aug 4, 2017 at 2:43 PM, Thomas Singer <[hidden email]> wrote:

Hi,

We've got 2 bug reports where Linux users could not load SmartSVN. The
output of the latest one looks like (line separators could be screwed up):

Error invoking SmartSVN

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at QBootLoader.main(SourceFile:100)

Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library.
Reasons:
Can't load library: /home/bites/.smartsvn/9.2/swt.
tmp/libswt-pi-gtk-4723.so
Can't load library: /home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk.so
no swt-pi-gtk-4723 in java.library.path
no swt-pi-gtk in java.library.path
/home/bites/.smartsvn/9.2/swt.tmp/libswt-pi-gtk-4723.so:
  /home/bites/.smartsvn/9.2/svn-tmp/6058/libz.so.1: version `ZLIB_1.2.9'
not found (required by /lib64/libpng16.so.16)

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:28)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:118)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:80)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:140)
at com.syntevo.q.gui.cH.a(SourceFile:58)
...

Did someone heard about such problems before, especially because of the
libz dependency?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev






_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--

Leo Ufimtsev

Software Engineer

Red Hat


90 Eglinton Ave E #502,

Toronto, ON M4P 2Y3

[hidden email]  

CHAT:

  - IRC: http://webchat.freenode.net/?channels=#swt

  - MatterMost: https://mattermost.eclipse.org/eclipse/channels/platform-swt


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev