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

CRAS setup fails with can't read tests/cras_test_client.c #5055

Open
powerCord154 opened this issue Mar 5, 2024 · 3 comments
Open

CRAS setup fails with can't read tests/cras_test_client.c #5055

powerCord154 opened this issue Mar 5, 2024 · 3 comments

Comments

@powerCord154
Copy link

name: linuxvm
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/linuxvm...
/usr/local/bin/crash_reporter_wrapper: 119: exec: /var/run/crw/crw: Permission denied
WARNING: Unable to register core dump handler.
crouton: version 1-20221126232257~master:ae594340
release: xenial
architecture: amd64
xmethod: xorg
targets: xorg,xiwi,extension,xfce,x11,touch,keyboard,core
host: version 15786.10.0 (Official Build) dev-channel snappy 
kernel: Linux localhost 5.10.209-24416-g7cbcf826ea21 #1 SMP PREEMPT Tue, 27 Feb 2024 07:07:20 +0000 x86_64 x86_64 x86_64 GNU/Linux
freon: yes

Please describe your issue:

CRAS setup fails when installing audio target

If known, describe the steps to reproduce the issue:

Install the crouton audio target

Installation messages:

Installing target audio...
Fetching CRAS (branch d71aee362a0252a1312396f5501fba3f7e0ae354)...
--2024-03-05 13:19:45--  https://chromium.googlesource.com/chromiumos/third_party/adhd/+archive/d71aee362a0252a1312396f5501fba3f7e0ae354.tar.gz
Resolving chromium.googlesource.com (chromium.googlesource.com)... 74.125.24.82, 2404:6800:4003:c1a::52
Connecting to chromium.googlesource.com (chromium.googlesource.com)|74.125.24.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: '/tmp/crouton-cras.uZIm2F/adhd.tar.gz'

     0K .......... .......... .......... .......... ..........  653K
    50K .......... .......... .......... .......... ..........  202K
   100K .......... .......... .......... .......... .......... 50.7M
   150K .......... .......... .......... .......... .......... 46.7M
   200K .......... .......... .......... .......... .......... 52.9M
   250K .......... .......... .......... .......... ..........  421K
   300K .......... .......... .......... .......... .......... 56.0M
   350K .......... .......... .......... .......... .......... 3.64M
   400K .......... .......... .......... .......... .......... 8.46M
   450K .......... .......... .......... .......... ..........  787K
   500K .......... .......... .......... .......... .......... 15.5M
   550K .......... .......... .......... .......... .......... 7.12M
   600K .......... .......... .......... .......... .......... 4.69M
   650K .......... .......... .......... .......... .......... 53.2M
   700K .......... .......... .......... .......... .......... 16.7M
   750K .......... .......... .......... .......... .......... 20.7M
   800K .......... .......... .......... .......... .......... 13.0M
   850K .......... .......... .......... .......... .......... 16.8M
   900K .......... .......... .......... .......... .......... 16.9M
   950K .......... .......... .......... .......... .......... 27.5M
  1000K .......... .......... .......... .......... .......... 65.1M
  1050K .......... .......... .......... .......... ..........  173M
  1100K .......... .......... .......... .......... .......... 7.66M
  1150K .......... .......... .......... .......... ..........  703K
  1200K .......... .......... .......... .......... ..........  160M
  1250K .......... .......... .......... .......... .......... 6.74M
  1300K .......... .......... .......... .......... .......... 8.67M
  1350K .......... .......... .......... .......... ..........  130M
  1400K .......... .......... ....                             70.9M=0.7s

2024-03-05 13:19:47 (2.11 MB/s) - '/tmp/crouton-cras.uZIm2F/adhd.tar.gz' saved [1458647]

Reading package lists... Done
Building dependency tree       
Reading state information... Done
alsa-utils is already the newest version (1.1.0-0ubuntu5).
libasound2:i386 is already the newest version (1.1.0-0ubuntu1).
libasound2-plugins:i386 is already the newest version (1.1.0-0ubuntu1).
libspeexdsp1:i386 is already the newest version (1.2~rc1.2-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version (4:5.3.1-1ubuntu1).
gcc-multilib is already the newest version (4:5.3.1-1ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu1).
libspeexdsp-dev:i386 is already the newest version (1.2~rc1.2-1ubuntu1).
libc6-dev:i386 is already the newest version (2.23-0ubuntu11.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libasound2-dev:i386 is already the newest version (1.1.0-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
patch is already the newest version (2.7.5-1ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sed: can't read tests/cras_test_client.c: No such file or directory
Failed to complete chroot setup.
@AlphaGameDeveloper
Copy link

I got the same error... I am using Lenovo 100e - treeya-rev2

@jessyfal04
Copy link

Same here on dragonair-rev4

@mfx04
Copy link

mfx04 commented Aug 13, 2024

I have meet the same problem on my PixelBook 2017. And I solved this problem by a temporary solution according to summary on some pages on Internet, without audio problem.(only test in xfce4)
It seems that Google remove something so that the program cann't run properly.(#4968 I just follow the comments below the page to reinstall cras.

  1. Install ChromeBrew
    You can refer to the install guide on the project page
  2. Run
brew install cras
  1. Delete the chroot you created before and then reexcute crouton you should find the program no longer failed.
    (I failed to instll kde and gnome envirment but the xfce4 successed)

But when I enter the Xfce4 I found the audio did not works. And I find that solution https://askubuntu.com/questions/879037/pavucontrol-stuck-at-establishing-connection-to-pulseaudio-please-wait.
Just excute

pulseaudio --check
pulseaudio -D

But it will lose effectiveness when I reboot.So I had to put the commands into a .sh file and add it to Xfce4's startup program list.

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

No branches or pull requests

4 participants