Comments (4)
Saw you commented on YT, but can't seem to reply there unless you deleted it.
Anyways, the visualize menu only appears when the feature is supported for the given method:
private boolean canUseVm() {
// Can only be run on JVM classes
if (!isOwnerJvmClass())
return false;
// SSVM must have been initialized
SsvmIntegration ssvm = RecafUI.getController().getServices().getSsvmIntegration();
if (!ssvm.isInitialized())
return false;
// Cannot run on abstract/native methods
int access = methodInfo.getAccess();
return !AccessFlag.isAbstract(access) && !AccessFlag.isNative(access);
}
SSVM has its own page in the config menu. You can check if its active in there, which it should be by default.
from recaf-3x-issues.
To avoid confusion, it would be probably be a good idea on disabling the action instead of removing it.
On click, we could tell then the requirements for it.
from recaf-3x-issues.
It would probably be better if it said why exactly. I got the menu to pull up on a hello world .class
, but it appeared to crash Recaf for a bit:
Then the window pulled up. When I clicked optimize it lagged out again for a bit, then gave this error:
SSVM optimize thread encountered VM error
java.lang.UnsatisfiedLinkError: sun/nio/fs/UnixNativeDispatcher.stat0(JLsun/nio/fs/UnixFileAttributes;)V
at sun.nio.fs.UnixNativeDispatcher.stat0(Native Method)
at sun.nio.fs.UnixNativeDispatcher.stat(UnixNativeDispatcher.java:301)
at sun.nio.fs.UnixFileAttributes.get(UnixFileAttributes.java:70)
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:52)
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:149)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.nio.file.Files.readAttributes(Files.java:1764)
at java.util.zip.ZipFile$Source.get(ZipFile.java:1259)
at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:733)
at java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:850)
at java.util.zip.ZipFile.<init>(ZipFile.java:248)
at java.util.zip.ZipFile.<init>(ZipFile.java:177)
at java.util.jar.JarFile.<init>(JarFile.java:350)
at jdk.internal.loader.URLClassPath$JarLoader.getJarFile(URLClassPath.java:814)
at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:759)
at jdk.internal.loader.URLClassPath$JarLoader$1.run(URLClassPath.java:752)
at java.security.AccessController.doPrivileged(Native Method)
at jdk.internal.loader.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:751)
at jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:726)
at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:494)
at jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:477)
at java.security.AccessController.doPrivileged(Native Method)
at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:476)
at jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:445)
at jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:314)
at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
Update: I turned off the "remote vm" thing and it seemed to optimize fine.
from recaf-3x-issues.
Optimizing isn't working everywhere where I want it to be but it's working good enough.
from recaf-3x-issues.
Related Issues (20)
- Improve suggestions menu HOT 2
- Problems running Recaf in enclosed networks HOT 3
- Allow export to skip creating directory entries HOT 1
- Allow ZIP parser strategy to be configurable HOT 1
- 3X TODO list for release
- ResourceSelectionList in open/close wizards prone to show horizontal scrollbars, occluding view
- Interface glitched out while renaming stuff HOT 2
- Analyzer thinking that [[I is an integer array, but it's actually an object array HOT 2
- Ensure renaming a class doesn't shadow existing class HOT 1
- Opening and saving assembly changes Disassembly HOT 2
- Using the Assembler on classes annotated with annotations (that are annotated with RetentionPolicy.RUNTIME) strips it HOT 4
- Recaf escapes newline when modifying bytecode HOT 3
- Throwing an exception when opening a jar package HOT 1
- Java app crashes after editing a method containing string concatenation HOT 1
- classes not shown & jphantom crash due to invalid class name HOT 6
- Multi-Release classes are not dispalyed HOT 2
- error in run program HOT 1
- Gui can dissappear HOT 1
- [Question] How to open the assembler in 3.x? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recaf-3x-issues.