processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Problems with the emulator across platforms?

Open codeanticode opened this issue 7 years ago • 6 comments

Testing the emulator with the latest release (4.0.2) and also the previous one, it seems that the emulator hangs during startup on Linux, Windows, and Mac. Need to do further testing.

codeanticode avatar Jun 19 '18 20:06 codeanticode

If it helps, I offer myself as a tester.

I use Processing Android 4.0.2 in Fedora 28 x86-64 with Android SDK installed by default options (that is, I haven't touched anything by hand; everything has installed through popups offered by Processing). My problem is "Lost connection with emulator while launching. Try again". I'm using x86 emulator instead of ARM's one.

q2dg avatar Jun 26 '18 11:06 q2dg

@q2dg Thanks a lot! Yes, need to look into that "Lost connection" error, I have seen it popping up from time to time.

codeanticode avatar Jun 27 '18 16:06 codeanticode

The situation might not be as hopeless as I originally thought. Tested the emulator on Mac, Windows, and Linux using the most recent versions of Processing and the Android mode (3.5.3 and 4.0.4, respectively) and I was able to install and the sketch in the emulator on the first two. Installation fails on Linux with the following error:

Emulator process exited with status 1.
EmulatorController: Emulator never booted. NOT_RUNNING
Error while starting the emulator. (NOT_RUNNING)

codeanticode avatar Mar 19 '19 19:03 codeanticode

Tested emulator with latest version of the mode, 4.2.1. It works on Linux (Ubuntu 20.04) and macOS Catalina (although HAXM authorization fails in the latter). It doesn't work on Windows 10 (with the error EmulatorController: Emulator never booted. NOT_RUNNING, Error while starting the emulator. (NOT_RUNNING))

codeanticode avatar Apr 29 '21 23:04 codeanticode

Tested emulator with latest version of the mode, 4.2.1. It works on Linux (Ubuntu 20.04) and macOS Catalina (although HAXM authorization fails in the latter). It doesn't work on Windows 10 (with the error EmulatorController: Emulator never booted. NOT_RUNNING, Error while starting the emulator. (NOT_RUNNING))

Running Processing with Admin rights seems to fix this issue for me, not sure if it's the same case with you.

BUZDOLAPCI avatar May 16 '21 20:05 BUZDOLAPCI

Ok, thanks for the info. I'd say that running as admin could be useful as a workaround, but the emulator should run without requiring it :-)

codeanticode avatar May 18 '21 01:05 codeanticode

Using the --skin argument (https://github.com/processing/processing-android/commit/806def28a1dfe4bdba9d1714f4bab04dc493450b) and with recent device art pulled from Android Studio (https://github.com/processing/processing-android/commit/e254f20063265ca6646692a887bb1d2b8e51cbcd, https://github.com/processing/processing-android/commit/2ad6507e2e81179fb4c7ddf23f2caae2e5d30bce) seems to solve most of the issues with the emulator

codeanticode avatar Jan 09 '23 04:01 codeanticode