Several errors when trying to run the Pixel 2 Emulator on Ubuntu. - android-emulator

I followed the steps on this website (I am a beginner):
https://developer.android.com/training/basics/firstapp/running-app.html
Here are the errors:
21:11 Emulator: libGL error: unable to load driver: r600_dri.so
21:11 Emulator: libGL error: driver pointer missing
21:11 Emulator: libGL error: failed to load driver: r600
21:11 Emulator: libGL error: unable to load driver: r600_dri.so
21:11 Emulator: libGL error: driver pointer missing
21:11 Emulator: libGL error: failed to load driver: r600
21:11 Emulator: libGL error: unable to load driver: swrast_dri.so
21:11 Emulator: libGL error: failed to load driver: swrast
21:11 Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
21:11 Emulator: Major opcode of failed request: 156 (GLX)
21:11 Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
21:11 Emulator: Value in failed request: 0x0
21:11 Emulator: Serial number of failed request: 64
21:11 Emulator: Current serial number in output stream: 65
21:11 Emulator: emulator: ERROR: Missing initial data partition file: /home/usuario/.android/avd/Pixel_2_API_27.avd/userdata.img
21:11 Emulator: Process finished with exit code 1
The emulator I tried using was Pixel 2.
Thanks everyone!

Related

vs code romote ssh failure

0 [main] ssh 1927 D:\Program Files\Git\usr\bin\ssh.exe: *** fatal error -
console device allocation failure - too many consoles in use, max consoles is 32
enter image description here

Using OpenOCD with Cypress EZ USB Suite (Eclipse) for FX3

I have followed the instructions given in "CYUSB3KIT-003 SuperSpeed Explorer Kit User Guide" on how to configure the Cypress EZ USB Suite Eclipse to work with the USB-JTAG provided via the USB-Serial IC (CY7C65215) present on the FX3 Superspeed Explorer Kit. The instructions start on page 36 in section 3.7.2.
After following the steps I am getting this output in the console window:
Open On-Chip Debugger 0.8.0 (2014-12-03-15:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'cy7c65215' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
adapter speed: 1000 kHz
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
RCLK - adaptive
adapter speed: 1000 kHz
Info : clock speed 1000 kHz
Error: CyJTAGRead returned: 11
Error: CyJTAGRead returned: 11
Error: CyJTAGRead returned: 11
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: CyJTAGRead returned: 11
Error: fx3.cpu: IR capture error; saw 0x0f not 0x01
Error: CyJTAGRead returned: 11
Warn : Bypassing JTAG setup events due to errors
Error: CyJTAGRead returned: 11
Info : Embedded ICE version 0
Error: unknown EmbeddedICE version (comms ctrl: 0x00000000)
Info : fx3.cpu: hardware has 2 breakpoint/watchpoint units
Error: CyJTAGRead returned: 11
Error: CyJTAGRead returned: 11
Error: CyJTAGRead returned: 11
Error: CyJTAGRead returned: 11
...
I had to stop the console since it keeps printing the "Error: CyJTAGRead returned: 11" message again and again.
The explorer board is new and I have connected the USB cable into both ports.
What do the above messages mean?

emulator stop and close before complete boot

my problem is the emulator in Android Studio stops a few seconds after I run it. the emulator is Nexus 4 API 25 with 768MB RAM.
in first time i start it in cold boot mode but it stop.
The error in EventLog is this:
10:14 PM Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
10:14 PM Emulator: none.xml:3: parser error : AttValue: " or ' expected
10:14 PM Emulator:
10:14 PM Emulator: ^
10:14 PM Emulator: none.xml:3: parser error : attributes construct error
10:14 PM Emulator:
10:14 PM Emulator: ^
10:14 PM Emulator: none.xml:3: parser error : Couldn't find end of Start Tag html line 3
10:14 PM Emulator:
10:14 PM Emulator: ^
10:14 PM Emulator: none.xml:3: parser error : Extra content at the end of the document
10:14 PM Emulator:
10:14 PM Emulator: ^
10:14 PM Emulator: emulator: WARNING: UpdateCheck: Failure: No error
10:14 PM Emulator: Process finished with exit code -1073741819 (0xC0000005)
i search too much about it but none of the solutions solved my problem.
VTx is enable and HAXM is installed up to date.
what can i do?

Protractor: setSize() failing with "WebDriverError: disconnected: unable to connect to renderer"

Starting October 18th upon upgrading to Chrome 62 my protractor suite started failing with:
WebDriverError: disconnected: unable to connect to renderer
when I called
WebDriver.manage().window().setSize(1280, 1480)
Full stack trace:
Stack Trace:
Running "protractor:default" (protractor) task
[10:48:23] I/launcher - Running 1 instances of WebDriver
[10:48:23] I/direct - Using ChromeDriver directly...
protractor startup failure: WebDriverError: disconnected: unable to connect to renderer
(Session info: chrome=62.0.3202.62)
(Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.12.6 x86_64)
[10:48:24] E/launcher - Error: WebDriverError: disconnected: unable to connect to renderer
(Session info: chrome=62.0.3202.62)
(Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.12.6 x86_64)
at process._tickCallback (internal/process/next_tick.js:103:7)
From: Task: WebDriver.manage().window().setSize(1280, 1480)
at setWindowDimensions (/Users/kyle/projects/c/web/build/config/protractor-conf.js:95:43)
at onPrepare (/Users/kyle/projects/c/web/build/config/protractor-conf.js:71:12)
at Function.promise (/Users/kyle/projects/c/web/node_modules/q/q.js:682:9)
at _fulfilled (/Users/kyle/projects/c/web/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Users/kyle/projects/c/web/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/Users/kyle/projects/c/web/node_modules/q/q.js:796:13)
at /Users/kyle/projects/c/web/node_modules/q/q.js:556:49
at runSingle (/Users/kyle/projects/c/web/node_modules/q/q.js:137:13)
at flush (/Users/kyle/projects/c/web/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[10:48:24] E/launcher - Process exited with error code 100
Env Info:
ChromeDriver: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061), platform=Mac OS X 10.12.6 x86_64
Chrome : 62.0.3202.62
Protractor: 5.1.2 (connecting directly to chromedriver)
Node: v6.9.5
Upgrading to chromedriver 2.33 fixed my issue.
To specify a version when running webdriver-manager :
webdriver-manager update --versions.chrome 2.33

Pushnotification issue while sending from browser

while i am using push notification in my application shows an error like below :
APNCRON: Started at 2012-02-08 00:32:42
3904
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
[1] Initiating push for UDID:a7fa910aef49a17bbd59ccf5c4487d9856b5b36e DevToken:20e05c55435094c84d27b2f5b9c217b5924fcb91e582388cc5fe9c9231d15c11 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
[2] Initiating push for UDID:828ee672c35c99fe8c106ddd2439495aed2fff00 DevToken:b6eb618c8bee91f19561be8b3554823822036d121faac2f7a0d5cc1362c31e96 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
close and reconnect the Apple server with 5 sec delay at 100
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Error with SSL. Please help...
APNS ssl://gateway.sandbox.push.apple.com:2195 connection fails
Chances are you don't have your .pem configured correctly, or at all.