-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
ecj error: dalvikvm: Abort #18557
Comments
|
Yikes, I just noticed that this update took my phone from Android 13 to Android 14 ???? |
I think you should just do |
Thanks for the quick reply, I just tried pkg up and seems like no updates, |
|
Also could you please point me in the right direction to collect logcat data. I don't know how to do it. I tried setting the level to verbose on Termux and got a bunch of output, but honestly don't know what I'm doing, poking in the dark 😏 |
Huh ? How's that supposed to help. I only have a problem with running classes. Anyway to collect info on the Abort issue ? |
|
|
Any news on this? |
Thank you 🙏, I collected the data |
Post it and I will tell you why that happens. |
I think you are absolutely right. I read about the issue as you mentioned above. Will take a small break and try to make classes readonly |
Your error is |
|
Twaik can't thank you enough for guiding me through this. It worked |
We should patch ecj to do this automatically. |
I also use a copy of Sun's jar tool to produce my jar files. Experimenting now to see if Again thanks a million for pointing me in the right direction, I was already going down hell path getting a tar of dalvikvm and bin/lib64/javalib from my Android 13 phone, lol 😂 |
Ok, I experimented a bit. |
See above, I ran a few tests as I was modifying my build process and I had to ensure that all jar files (which contain .dex files) and individual.dex files that were in -cp argument or CLASSPATH as een by dalvikvm MUST be READ-ONLY. So I am not sure that ecj is culprit. dx --dex which used to transcode .class to dex or '.jar files contained .class files' to a dex-output is culprit. This is because it's the only way to prepare an object that is usable by dalvikvm. One could also include multiple.dex files in a jar and use that in -cp/CLASSPATH but also the jar utility must ensure that the produced output is READ-ONLY. So jar utilities are culprit I hope this helps.... ecj is only converting .java to .class which are unusable as is. |
It was no need to do that. #16255 |
They are talking about am utility. So I needed to modify my own java build environment which is a mix of jar and dex files |
Quote:
|
I agree 100%, but the question is what produces the artifacts that are in -cp or CLASSPATH. |
That is the problem: https://cs.android.com/android/platform/superproject/+/dd6fde63193fda968440fc0a4cd9ccee5d282ab0:art/runtime/native/dalvik_system_DexFile.cc;l=381 Android checks if current uid is |
Oh, so we should just create a library for that and add it to LD_PRELOAD, right? |
A recent software was installed on my Samsung SM-A546U.
I can compile java code using ecj as before.
Additionally, dx --dex output=myclasses.dex
Then either add classes.dex to CLASSPATH or using -cp myclasses.dex Abort(s)
dalvikvm -cp myclasses.dex com.me.HelloWorld
Aborted
added echo statement to dalvikvm
exec /apex/com.android.art/bin/dalvikvm -Xusejit:true -Xnoimage-dex2oat -Djava.io.tmpdir=/data/data/com.termux/files/usr/tmp -cp classes.dex com.me.HelloWorld
Aborted
Interesting that both ecj and dx use same dalvikvm, but difference is that -Xcompiler mode seems to work ??? Help
Please guide me to collect any info requested
termux-info.txt
The text was updated successfully, but these errors were encountered: