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

“Return to Crankshaft-NG” button in AA not working #357

Closed
abraha2d opened this issue Jul 8, 2019 · 6 comments · Fixed by opencardev/aasdk#2
Closed

“Return to Crankshaft-NG” button in AA not working #357

abraha2d opened this issue Jul 8, 2019 · 6 comments · Fixed by opencardev/aasdk#2

Comments

@abraha2d
Copy link
Member

abraha2d commented Jul 8, 2019

  • What phone do you have?

OnePlus 6T

  • What OS version?

OxygenOS Beta 13

  • What crankshaft version?

Alpha-5, with fixes for #352. Cannot test with unmodified Alpha-5, due to #352.

Changes to aasdk: opencardev/aasdk@development...abraha2d:development
Changes to openauto: opencardev/openauto@crankshaft-ng...abraha2d:crankshaft-ng

  • Steps to reproduce the bug, if you're planning to report a bug. Please indicate whether the bug is always repoducible.

Connect phone, and wait for Android Auto to launch. Press the rightmost button on the toolbar. Click "Return to Crankshaft-NG". Screen freezes. This bug is always reproducible.

  • Please provide any further information that you might find helpful if available.

If the phone is disconnected after the screen freezes, AA goes away and the crankshaft UI is visible. If the phone is connected again, AA launches just fine.

This is the only line that is output to /tmp/openauto.log when "Return to Crankshaft-NG" is pressed:
[2019-07-08 11:27:55.174485] [0x6f8fd300] [error] [OpenAuto] [VideoService] channel error: AaSdk error code: 32, native code: 0

  • Starting with pre4: Boot into dev mode (can be selected in settings).
    Reproduce the possible bug. Create the debug logs by pushing the grey button on bottom of screen.
    Add the created file (/boot/debug.zip) to the issue.
@tompeel
Copy link

tompeel commented Jul 12, 2019

Yea i see this too, fortunately a way around this is in the notifications bar in your phone there is a disconnect from car notification which you can tap and it will return back to the CrankShaftNG menu.
It doesn't seem to actually crash the app, rather send a command with no response so everything is still running in the background.

@abraha2d
Copy link
Member Author

Huh, never noticed that before. I'll have to look out for it next time I drive.
I'm also looking into fixing the return functionality in OpenAuto.

@abraha2d
Copy link
Member Author

abraha2d commented Jul 12, 2019

My initial guess at what the issue might be:

  • The "Return to..." button tells the phone "hey i don't want to see AA anymore"
  • Phone says "ok, i'm stopping the video feed"
  • [what should happen] OpenAuto says "hey the video feed stopped, let's hide AA"
  • [what's happening] OpenAuto says "what?! why did the video feed stop?!?!"

Now to figure out where in code this is handled...

@abraha2d
Copy link
Member Author

@abraha2d
Copy link
Member Author

Found another log message. It's erroring with:
Can't parse message of type "f1x.aasdk.proto.messages.VideoFocusRequest" because it is missing required fields: disp_index
Saw this when I ran systemctl status openauto. Why are all the logs not in 1 place?
Anyway I know where to fix this!

abraha2d added a commit to abraha2d/aasdk that referenced this issue Jul 12, 2019
@abraha2d
Copy link
Member Author

Cool, that works! PR coming soon...

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

Successfully merging a pull request may close this issue.

2 participants