Skip to content

[gui] Checking for updates question #2341

@greenozon

Description

@greenozon

Issue details

run the app (1.5.1) and and open up logs (Help -> Log Viewer)

it will write:

INFO : Checking for updates... Update channel: STABLE, current version: 1.5.1
WARN : Jadx update error
java.lang.RuntimeException: Unable to create instance of class jadx.gui.update.Release. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
	at com.google.gson.internal.ConstructorConstructor$19.construct(ConstructorConstructor.java:422)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.createAccumulator(ReflectiveTypeAdapterFactory.java:552)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:505)
	at com.google.gson.Gson.fromJson(Gson.java:1361)
	at com.google.gson.Gson.fromJson(Gson.java:1262)
	at com.google.gson.Gson.fromJson(Gson.java:1199)
	at jadx.gui.update.JadxUpdate.getAndParse(JadxUpdate.kt:108)
	at jadx.gui.update.JadxUpdate.checkForNewStableRelease(JadxUpdate.kt:82)
	at jadx.gui.update.JadxUpdate.checkForNewRelease(JadxUpdate.kt:70)
	at jadx.gui.update.JadxUpdate.check$lambda$2(JadxUpdate.kt:47)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedOperationException: Cannot allocate class jadx.gui.update.Release. Usage of JDK sun.misc.Unsafe is enabled, but it could not be used. Make sure your runtime is configured correctly.
	at com.google.gson.internal.UnsafeAllocator$4.newInstance(UnsafeAllocator.java:121)
	at com.google.gson.internal.ConstructorConstructor$19.construct(ConstructorConstructor.java:419)
	... 10 common frames omitted

Jadx version

1.5.1

Java version

23.0.1

OS

  • Windows
  • Linux
  • macOS

Metadata

Metadata

Assignees

Labels

GUIIssues in jadx-gui modulebug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions