Hey guys I am having issue with eclipse. Every time when I want to import some library lets say org.opencv eclipse crashes. It crashes in the moment when I write dot org(dot)opencv. Have you seen somthing like this? Can you help me to fix it please?
I am using Ubuntu 14.04,
adt-bundle-linux-x86_64-20140702.
I also recorded a video [http://tinypic.com/r/2nm15ip/8][1].
Thank you for your help.
I tried it open in terminal and of course it crashed but i got some answer:
libEGL warning: DRI2: failed to authenticate
NOT SANDBOXED
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc79f6052a1, pid=9886, tid=140499127801600
#
# JRE version: Java(TM) SE Runtime Environment (7.0_72-b14) (build 1.7.0_72-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.72-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libsoup-2.4.so.1+0x6c2a1] soup_session_feature_detach+0x11
#
# Failed to write core dump. 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/nemesis/NEW_Android_Development_Enviroment/adt-bundle-linux-x86_64-20140702/eclipse/hs_err_pid9886.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
And also I found out that in my eclispe folder has been created error report.
I uploaded it here:
http://www.filedropper.com/hserrpid32252
After 6 hours I have found solution....
To solve this issue, try to put this line (slightly different from -Dorg...)
org.eclipse.swt.browser.DefaultType=mozilla
at the end of this file
eclipse/configuration/config.ini
I am so happy and angry at the same time.
Thanks for help to everyone :)
Related
I just updated from Monterey 12.5 to 12.5.1.
However, after that Android Studio (android-studio-2021.2.1.16-mac_arm.dmg) no longer starts.
I get the following error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000107d72e38, pid=92768, tid=259
#
# JRE version: OpenJDK Runtime Environment (11.0.12) (build 11.0.12+0-b1504.28-7817840)
# Java VM: OpenJDK 64-Bit Server VM (11.0.12+0-b1504.28-7817840, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x6d2e38] AccessInternal::PostRuntimeDispatch<G1BarrierSet::AccessBarrier<1097844ull, G1BarrierSet>, (AccessInternal::BarrierType)2, 1097844ull>::oop_access_barrier(void*)+0x8
#
# 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:
# /Users/Tom/java_error_in_studio_92768.log
[thread 74759 also had an error]
[thread 91395 also had an error]
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
The content of /Users/Tom/java_error_in_studio_92768.log is a little long to post here, but does not give any deeper insights (at least for me).
Anybody having the same problem?
I updated to the release candidate of the next version called "Dolphin" which is the file "android-studio-2021.3.1.15-mac_arm.dmg".
Now it works again as it should.
i'm using linux mint. now i'm facing this problem i can't even find solution.
hope someone help me here.
System configuration.
*Operating System : Linux Mint 19 Cinnamon
Cinnamon Version : 3.8.7
Linux Kernal : 4.15
Processor : AMD FX(tm)-8150
RAM : 8GB*
here is crash details.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8550bde9ca, pid=20860, tid=0x00007f84cb8ce700
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b01) (build 1.8.0_152-release-1024-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J 46464 C1 com.intellij.openapi.editor.impl.view.LineLayout$SingleChunk.getChunksInLogicalOrder()Ljava/util/stream/Stream; (21 bytes) # 0x00007f8550bde9ca [0x00007f8550bde4c0+0x50a]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Hi i have faced the same problem,And finally i found the solution for it.Actually in my case while i am try to checkout the subversion in android studio fully crashed.I mean it was closed unexpectedly.I spend the lot of time of it.
Go to your home directory like home/vijay(your path) then Ctrl + H.It will show your all hidden files in there just delete the following files.
.android
.java
.subversion
.gradle
Note : Do these stuffs before open android studio.
Then open android studio it will work sure.
Don't worry if you delete also it will create automatically.
I have an apk with native .so libs, compiled for all architectures: armabi, mips, x86 and x86_64. I want to use these libs in my java app.
As i suppose, for building app on desktop i need to copy .so file from x86_64 folder anywhere on my PC, i've copied it to ~/IdeaProjects/ecg/lib/x86_64. After that i provided to VM path to this file as follows: -Djava.library.path=/home/user/IdeaProjects/ecg/lib/x86_64
Then i wrote wrapper for using this library on my project. In static initializer of wrapper i trying to load the library like that (my library file named libnative-lib.so):
static
{
System.loadLibrary("native-lib");
}
And during loading library i receive this exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/user/IdeaProjects/ecg/lib/x86_64/libnative-lib.so: liblog.so: cannot open shared object file: no such file or directory
So what is liblog.so? Where can i get it? I tried to dig and all what i found was compiled liblog.so for different arches on github. I've found one for x86_64 there, put it near my native lib file, but the exception didn't disappear.
What can i do for achieving my goal?
UPD
sudo apt install android-liblog && android-liblog-dev and provide LD_LIBRARY_PATH=/usr/lib/android resolve this issue. But now i'm received next error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/user/IdeaProjects/ecg/lib/x86_64/libnative-lib.so: /usr/lib/x86_64-linux-gnu/libm.so: invalid ELF header
UPDUPD finally i've copied all dependent libs from android sdk folder (Sdk/ndk-bundle/platforms/android-24/arch-x86_64/usr/lib64) and exceptions has gone. Now app simply falls with this report:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=11338, tid=0x00007ffaccb05700
#
# JRE version: OpenJDK Runtime Environment (8.0_131-b11) (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
# Java VM: OpenJDK 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. 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/user/IdeaProjects/ecg/hs_err_pid11338.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
I'm trying to compile a Android Kernel from source and I have downloaded all the right packages to do it but for some reason I get this error:
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
/home/livlogik/android/kernel/H901BK_L_Kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:858: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I have the latest NDK and I'm using Ubuntu 15.10 64bit if this helps.
Here is where I have the NDK and kernel:
NDK ---- /home/livlogik/android/ndk/
Kernel ---- /home/livlogik/android/kernel/H901bk_L_Kernel/
If someone could help me that would be great. Sorry if this was already posted I could find a answer to it.
Thanks,
Zach
As it can be seen from build error message:
drivers/media/platform/msm/camera_v2/sensor/msm_sensor.c:20:27: fatal error: ./mh1/msm_mh1.h: No such file or directory
#include <./mh1/msm_mh1.h>
compiler just can't find msm_mh1.h file. This is because the path specified for #include directive isn't correct. Most probably it's typo: instead ./ there should be ../.
To fix that error, in drivers/media/platform/msm/camera_v2/sensor/msm_sensor.c file change this line:
#include <./mh1/msm_mh1.h>
to this line
#include "../mh1/msm_mh1.h"
After this make command should work fine. Also, kernel image file will be available at arch/arm64/boot, and it's not zImage as stated in documentation, it's actually Image.gz. Uncompressed kernel image is Image file.
Update
Answering your question in comments:
Is there any way to make it compress into a zImage?
From Documentation/arm64/booting.txt:
The AArch64 kernel does not currently provide a decompressor and
therefore requires decompression (gzip etc.) to be performed by the boot
loader if a compressed Image target (e.g. Image.gz) is used. For
bootloaders that do not implement this requirement, the uncompressed
Image target is available instead.
Basically zImage is just gzipped and self-extracted Image. So zImage file consists of program for unpacking gzip archive in the beginning, followed by gzipped Image, and when kernel is run by bootloader its unpacking itself (hense "self-extracted" term) and then start running.
...So I can make it flashable
In case of arm64, you don't have zImage, so most likely you need to use Image file (which acts in the same way, but only its size is bigger). You can create boot.img from Image file and built AFS ramdisk (using mkbootimg tool) and then just do fastboot flash boot boot.img. Refer to this documentation for example. Of course for your platform some things can be different, so try to find instructions for your platform.
You have to install the right toolchain:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
And configure the Makefile appropriately
The wrong toolchain is at
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-android-4.9
I am on trying to move a python/kivy app from a virtual machine to android device. Here is what I did:
git clone https://github.com/kivy/buildozer.git
cd buildozer
sudo python2.7 setup.py install
to get buidozer. Then change the project directory from the shared folder to code/kivy/examples/demo and then type buildozer init to get buildozer spec and finally type buildozer android debug deploy run to build the apk.
I got the following error message:
Run prebuild
Call prebuild_hostpython
Call prebuild_python
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN Python-2.7.2/configure ltib/rpm/BUILD/Python-2.7.2/configure
|--- Python-2.7.2/configure 2011-06-11 11:46:28.000000000 -0400
|+++ ltib/rpm/BUILD/Python-2.7.2/configure 2011-11-14 12:10:41.011373524 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN Python-2.7.2/Makefile.pre.in ltib/rpm/BUILD/Python-2.7.2/Makefile.pre.in
|--- Python-2.7.2/Makefile.pre.in 2011-06-11 11:46:26.000000000 -0400
|+++ ltib/rpm/BUILD/Python-2.7.2/Makefile.pre.in 2011-11-14 12:10:41.013373444 -0500
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
6 out of 6 hunks ignored
patching file setup.py
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file setup.py.rej
# Command failed: ./distribute.sh -m "kivy" -d "myapp"
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
Thanks in advance for any help.
To fix this issue run this command buildozer android clean
and then rebuild it using buildozer android debug or automatically run using buildozer android debug deploy run.
And also this link might help.
Looks like you've just made a new ios/apk package. It is persisent with buildozer... All you need to do though is
buildozer android update
buildozer android release