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

Ip scanner crashes when trying to enter the settings #466

Open
pengasul opened this issue Dec 28, 2024 · 8 comments
Open

Ip scanner crashes when trying to enter the settings #466

pengasul opened this issue Dec 28, 2024 · 8 comments

Comments

@pengasul
Copy link

Describe the bug
The program crashes after clicking on the settings menu

To Reproduce
Steps to reproduce the behavior:

  1. Start the program
  2. Click on the settings menu
  3. Sometimes it actually works without crashing
  4. most of the time it just shows "you need java/openjdk 11+ to run ipscan" even though i have 11 and 17 installed

Expected behavior
Work without crashing

Screenshots
Screenshot_2024-12-28_05-21-41
Screenshot_2024-12-28_05-25-10

Versions (please copy from the About dialog or complete manually):

  • Version of Angry IP Scanner: 3.9.1
  • OS, version, CPU architecture: kali rolling x86_64
  • Java version, vendor (java -version)
    java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
    java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64

Logs:

  • Please run Angry IP Scanner from Terminal and see if any relevant logs were written. Paste them here:
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

(Angry IP Scanner:16354): Gdk-CRITICAL **: 05:18:02.600: gdk_window_get_screen: assertion 'GDK_IS_WINDOW (window)' failed

(Angry IP Scanner:16354): Gtk-CRITICAL **: 05:18:02.600: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(Angry IP Scanner:16354): GLib-GObject-CRITICAL **: 05:18:02.600: invalid (NULL) pointer instance

(Angry IP Scanner:16354): GLib-GObject-CRITICAL **: 05:18:02.600: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(Angry IP Scanner:16354): Gdk-CRITICAL **: 05:18:02.602: gdk_window_get_screen: assertion 'GDK_IS_WINDOW (window)' failed

(Angry IP Scanner:16354): Gtk-CRITICAL **: 05:18:02.602: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(Angry IP Scanner:16354): GLib-GObject-CRITICAL **: 05:18:02.602: invalid (NULL) pointer instance

(Angry IP Scanner:16354): GLib-GObject-CRITICAL **: 05:18:02.602: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fedeff3fb3d, pid=16354, tid=16355
#
# JRE version: OpenJDK Runtime Environment (11.0.25+5) (build 11.0.25-ea+5-post-Debian-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.25-ea+5-post-Debian-1, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgdk-3.so.0+0x4cb3d]  gdk_window_get_screen+0x1d
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/kali/ipscan/hs_err_pid16354.log
#
# If you would like to submit a bug report, please visit:
#   https://bugs.debian.org/openjdk-11
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
@JonnyTech
Copy link

Is your display using X11 or Wayland?

@pengasul
Copy link
Author

X11

@JonnyTech
Copy link

An error report file with more information is saved as:
/home/kali/ipscan/hs_err_pid16354.log

Can you share the log file?

@pengasul
Copy link
Author

hs_err_pid3693.log

@JonnyTech
Copy link

Thanks. I cannot see anything unusual in the log. Maybe your JRE is corrupted. I tested Java 11 on Kali with the following steps below. Can you duplicate?

$ wget https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.25%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.25_9.tar.gz
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43388792 (41M) [application/octet-stream]
Saving to: ‘OpenJDK11U-jre_x64_linux_hotspot_11.0.25_9.tar.gz’
OpenJDK11U-jre_x64_linux 100%[==================================>]  41.38M
‘OpenJDK11U-jre_x64_linux_hotspot_11.0.25_9.tar.gz’ saved [43388792/43388792]

$ tar xvzf OpenJDK11U-jre_x64_linux_hotspot_11.0.25_9.tar.gz

$ ./jdk-11.0.25+9-jre/bin/java --version
openjdk 11.0.25 2024-10-15
OpenJDK Runtime Environment Temurin-11.0.25+9 (build 11.0.25+9)
OpenJDK 64-Bit Server VM Temurin-11.0.25+9 (build 11.0.25+9, mixed mode)

$ wget https://github.com/angryip/ipscan/releases/download/3.9.1/ipscan-linux64-3.9.1.jar
HTTP request sent, awaiting response... 200 OK
Length: 1819182 (1.7M) [application/octet-stream]
Saving to: ‘ipscan-linux64-3.9.1.jar’
ipscan-linux64-3.9.1.jar 100%[==================================>]   1.73M
‘ipscan-linux64-3.9.1.jar’ saved [1819182/1819182]

$ ./jdk-11.0.25+9-jre/bin/java -jar ./ipscan-linux64-3.9.1.jar 

Usually I run JRE 17 with no issues on my system. If the above still causes an error, can you post another log then try with Java 17?

@pengasul
Copy link
Author

I will try that, i was running kali off a live usb but now i imaged that usb and im using it in vmware workstation and the issue is still there

@JetPacksWasYes
Copy link

JetPacksWasYes commented Feb 8, 2025

I was also having this issue. However, when I held libgtk2.0-0, libgtk2.0-bin, libgtk2.0-common, libgtk-3-0, libgtk-3-bin, libgtk-3-common, libgtk-4-1, libgtk-4-bin and libgtk-4-common from upgrading before running apt full-upgrade, it seemed to work and not throw any errors. It's a short term solution atleast for myself.

@towo
Copy link

towo commented Feb 25, 2025

I'm also getting this with Apache Directory Studio (eclipse based), so this probably is a framework issue.

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

4 participants