angryip / angryip/ipscan

Fails to run if home directory is write protected (cannot extract SWT native library files)

Đang mở
#289 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
5.1k
Fork
835
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
Getting an error on startup on a fresh install of Ubuntu 20.04 + openjdk. It's a missing JWT dependency, that is neither documented in the README nor the Debian control file.

**To Reproduce**
- fresh Ubuntu 20.04 install
- `apt install default-jdk`
- `dpkg -i ipscan_3.7.6_amd64.deb`
```
Selecting previously unselected package ipscan.
(Reading database ... 220101 files and directories currently installed.)
Preparing to unpack ipscan_3.7.6_amd64.deb ...
Unpacking ipscan (3.7.6) ...
Setting up ipscan (3.7.6) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
```
- launch ipscan
- error (see screenshot, and logs section)

**Expected behavior**
- the debian package installation step should fail because of an unsatisfied SWT library dependency.
the debian control file looks incomplete: `Depends: DEPENDS java8-runtime` (this is not sufficient)
- a hint should be included in the error message (or this project's README) as to what the JWT dependency
to install is called for the operating system I'm running on.

**Screenshots**
![image](https://user-images.githubusercontent.com/5460884/115507324-a30f3e00-a284-11eb-95a6-f603c013114f.png)

**Versions (please complete the following information):**
- OS type and version: 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- Java version, 32 or 64 bit, how was installed (`java -version`):
```
$ java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
```
installed with `apt-get install default-jdk`
- Version of Angry IP Scanner: 3.7.6

**Logs:**
```
$ ipscan
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-4940r23 in java.library.path: [/usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
no swt-gtk in java.library.path: [/usr/java/packages/lib, /usr/lib/x86_64-linux-gnu/jni, /lib/x86_64-linux-gnu, /usr/lib/x86_64-linux-gnu, /usr/lib/jni, /lib, /usr/lib]
Can't load library: /home/lestephane/libswt-gtk-4940r23-64.so
Can't load library: /home/lestephane/libswt-gtk-64.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:338)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:257)
at org.eclipse.swt.internal.C.(C.java:19)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
at org.eclipse.swt.widgets.Display.(Display.java:163)
at net.azib.ipscan.gui.GUI.(GUI.java:29)
at net.azib.ipscan.Main.main(Main.java:47)
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.