Skip to content
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

Chromecast not connecting successfully - bullhead, libgcastv2_base.so, maruos 0.6.7 #123

Open
darekdeo opened this issue Sep 26, 2019 · 6 comments

Comments

@darekdeo
Copy link

darekdeo commented Sep 26, 2019

Whenever I try to cast my Nexus 5X to either Chromecast or Android TV I am getting "Casting screen to ChromecastName has ended". Happens every time, both on Chromecast and Android TV. Problem exists only with "Cast" available from statusbar dropdown menu, I am still able to use Chromecast from YouTube app without issues.

Steps to reproduce:

  • installed twrp and rebooted phone then runned recovery
  • installed maruos 0.6.7 from recovery and rebooted phone then back to recovery
  • installed opengapps pico 20190926 from recovery and rebooted phone
  • finished gapps installation on phone (signed to google account, etc)
  • connected both devices to the same Wifi (also tried Wifi Direct from my TV)
  • click Cast icon from statusbar dropdown menu
  • dialog shows list of available Chromecast devices, select Chromecast or TV
  • TV blinks (dark screen), phone is showing "Connecting" message for couple of seconds
  • After couple of seconds toast with message "Casting screen to ChromecastName has ended" is presented on the phone. Android TV goes back to normal (from dark screen to showing Android TV dashboard with cards)

I've pulled logcat from Phone, looks like it is missing .so library (libgcastv2_base.so) or libraries. To me it looks like a problem with recent gapps, can someone confirm this? Anybody can suggest a fix? I could manually search over the web for needed .so files but there should be a better way? Also maybe maruos should display proper information message if something like this happens and provide instruction how to fix this? Below is cutted interesting part from logcat:

missing_libgcastv2_base.so_logcat.txt

@darekdeo darekdeo changed the title Chromecast not connecting successfully - Nexus 5X, libgcastv2_base.so, maruos 0.6.7 Chromecast not connecting successfully - bullhead, libgcastv2_base.so, maruos 0.6.7 Sep 26, 2019
@pdsouza
Copy link
Member

pdsouza commented Sep 26, 2019

Thanks for the detailed report.

Can you try open_gapps-arm64-8.1-pico-20190831.zip? That's what I have installed on my 5X with 0.6.7 and Chromecast is working fine.

@darekdeo
Copy link
Author

Hi and thanks for fast response,

Using twrp I have wiped everything except internal storage and installed again maruos with gapps you have provided. Same issue, unfortunatelly.

@darekdeo
Copy link
Author

Installed LineageOS 15.1, Cast works fine there.

Another thing to note is that during installation of Maru I couldn't add anything else to the installation queue - that's why after installing Maru I needed to reboot device to recovery again and install gapps separately. While installing LineageOS queue works fine and I am able to install both OS and gapps together.

@pdsouza
Copy link
Member

pdsouza commented Sep 27, 2019

OK, thanks for trying again and for your investigations.

Here is my testing procedure on my 5X:

  1. Reboot to recovery (TWRP v3.2.3-0)
  2. Install > select maru-v0.6.7-update-bullhead-33301e64.zip
  3. Add more Zips > select open_gapps-arm64-8.1-pico-20190926.zip
  4. Swipe to confirm Flash
  5. Hit back until home screen > Wipe > Swipe to Factory Reset
  6. Reboot System (I tapped do not install when prompted to install the TWRP app)
  7. Go through the Google setup wizard to connect to WiFi and sign in to my Google account
  8. Select Cast from Quick Settings dropdown and connect to my Chromecast (1st gen)
  9. Verify that Maru Desktop automatically boots and is displayed on my Chromecast display

Noticing that my TWRP was outdated, I repeated the same procedure with TWRP v3.3.1-0 and had the exact same results. I did not run into the zip queue issue you mentioned with installing both Maru and gapps together. Which version of TWRP are you running?

If you could shasum your Maru package to make sure you don't have a corrupted file that would be good too, because this is very strange.

@darekdeo
Copy link
Author

darekdeo commented Sep 27, 2019

twrp is the same as yours: 3.3.1-0-bullhead
maru-v0.6.7-update-bullhead-33301e64.zip sha256 looks fine: 33301e64529f768ace748ed50de140750e65f2cdd9e79b6170fc5dcf47ddf046 (checked ofc on phone)

I will try different versions of Maru: 0.6.5 and 0.6.6 (never tried these before) to confirm if it's just related to 0.6.7

@darekdeo
Copy link
Author

darekdeo commented Sep 27, 2019

My bad (I think), the installation process was incorrect on my side. While describing steps to reproduce here I did not noted that I was performing wipe before installing Maru (I mentioned it later after your first reply). So actually begining should be as follows:

  • installed twrp and rebooted phone then runned recovery
  • wiped previous system (everything except internal storage)
  • installed maruos 0.6.7 from recovery and rebooted phone then back to recovery
  • ...

Similar way I've installed LineageOS 15.1 - wipe everything first, then install system. And it worked, both zip queue and Cast/Chromecast service. There was no need to reboot phone and go back to recovery as described in my first attempt of Maru installation.

Today I've followed your steps, first for Maru 0.6.6 and later for Maru 0.6.7, both worked fine this time. I was able to add gapps zip to queue and Cast/Chromecast is working. The only thing I did different today was that I haven't wiped previous system (LineageOS 15.1) before installing Maru. I've later did factory reset wipe as in the steps you have described.

I am not sure if this solved the issue as Lineage OS 15.1 was able to install successfully even if everything (except internal storage) was wiped before installing it.To me it looks like Maru needs some files from previous system installation to work correctly, but I am not as familiar with ROM flashing process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants