Re: JNI_CreateJavaVM failed errors. porting on s3c6410

by fadden » Tue, 08 Mar 2011 06:32:44 GMT


Sponsored Links
 

 ...

The zygote process is trying to start the Dalvik VM, but for some
reason it's failing.  The failure isn't resulting in a log message, so
the cause is unclear.

Does "dalvikvm -help" work?  Can you run it on a simple command-line
"hello, world" app?

It might be easier to debug the stand-alone dalvikvm...

-- 



Re: Re: JNI_CreateJavaVM failed errors. porting on s3c6410

by Nate H » Tue, 08 Mar 2011 22:37:02 GMT


 Hi fadden:
     Thanks for your reply. I found out that ashmem doesn't work. After I
fixed that, zygote works fine.







-- 


Sponsored Links


Other Threads

1. Suddenly getting "Error opening zip file" compiling in Eclipse

Hi

I've been working on this app for a couple of days, but I've suddenly
started getting weird errors compiling in Eclipse (3.3.1.1).

At first I was getting an error signing my APK using jarsigner, it was
complaining about a zip error, but now when I try to build or run my
solution in Eclipse I get the following error:


[2008-11-13 15:24:06 - Andrum]
UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.open(Native
Method)
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.<init>
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.<init>
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processArchive
(ClassPathOpener.java:205)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:130)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
108)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.processOne(Main.java:245)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.run(Main.java:139)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at java.lang.reflect.Method.invoke
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
624)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:166)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:197)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
246)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:214)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
353)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
494)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.Project.build(Project.java:75)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
194)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
141)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.WorkspaceAction$1.runInWorkspace
(WorkspaceAction.java:460)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[2008-11-13 15:24:06 - Andrum]
UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.open(Native
Method)
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.<init>
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at java.util.zip.ZipFile.<init>
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processArchive
(ClassPathOpener.java:205)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:130)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
108)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.processOne(Main.java:245)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[2008-11-13 15:24:06 - Andrum]  at
com.android.dx.command.dexer.Main.run(Main.java:139)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at java.lang.reflect.Method.invoke
(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
624)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:166)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:197)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
246)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:249)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:214)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
353)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
494)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.Project.build(Project.java:75)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:
194)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:
141)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.ui.actions.WorkspaceAction$1.runInWorkspace
(WorkspaceAction.java:460)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
[2008-11-13 15:24:06 - Andrum]  at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[2008-11-13 15:24:06 - Andrum] 2 errors; aborting
[2008-11-13 15:24:06 - Andrum] Conversion to Dalvik format failed with
error 1


I don't think I changed anything before it broke, except maybe
removing some whitespace from my layout xml. I've checked for updates
to the ADT and I've re-installed the JDK to no effect.

Any ideas?

Thanks
Andy


--~--~---------~--~----~------------~-------~--~----~

2. startActivity(), Browser, and windows

In an app, I am launching the built-in Browser activity via:

startActivity(new Intent(Intent.ACTION_VIEW, 
Uri.parse("http://www.google.com")));

The first time you do this, it starts another "window". This doesn't 
faze me.

However, if you back-arrow out of the browser back into my application, 
and trigger startActivity() again, it creates a third window. Back-arrow 
and trigger startActivity() again, it creates a fourth window. And so on.

I don't mind adding one more window to the Browser, but adding one per 
startActivity() call seems evil.

My guess is that I need to use a FLAG_ACTIVITY_*, or combination of 
same, with my Intent to stop this behavior. However, I've tried a few, 
and nothing has worked.

Any thoughts?

Thanks in advance!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~

3. how to access file system

4. Landscape w/o opening keyboard?

5. Question about service life cycle for GOOGLE engineers

6. Question about service life cycle for GOOGLE engineers

7. How to install APK file on Android handset