Jack : Sudden Bus Error when starting

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
retnev
Established Member
Posts: 157
Joined: Sat Mar 25, 2017 2:13 am
Has thanked: 4 times
Been thanked: 3 times

Jack : Sudden Bus Error when starting

Post by retnev »

Anyone know how to resolve the sudden buss error.
Nothing at all was done to this system, and all worked fine.
After a reboot jack suddenly doesnt want to load and exits with a shm error, which when resolves exits with a buss error.

Code: Select all

jackd: no process found                                                                                                                                                     
jackdmp 1.9.17
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create shm registry segment (Permission denied)
No access to shm registry
Failed to open server

It clearly cannot create the /dev/shm/jack-shm-registry

Why did it stop to or unable to do that ?
What must the permissions be on /dev/shm ?

So as root
touch /dev/shm/jack-shm-registry
chmod 777 /dev/shm/jack-shm-registry

After which the "permission denied" error disappears

Then jack exits with a new error "Bus Error"

Code: Select all

jackdmp 1.9.17
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Bus error

It seems like Jack uses Dbus and that the jack dbus procedure stopped working, or am I wrong
I started

Code: Select all

jackdbus auto

But the problem remains the same

Thanks

User avatar
RyanH
Established Member
Posts: 206
Joined: Fri Jul 08, 2022 7:58 am
Has thanked: 137 times
Been thanked: 43 times

Re: Jack : Sudden Bus Error when starting

Post by RyanH »

I'm not sure if it's related, but I also started getting an error with Jack without changing anything I was doing (that I know of). It seems to only happen when I have QjackCtl set to use my audio interface as "Interface." And it seems to happen after a reboot, or after I have previously used the laptop's sound card as "Interface." After Jack fails to start and I get the error, I can then try again and Jack starts normally.

Sorry to pollute your thread with my own issue, but I'll leave my error message here in case our issues are connected and it helps someone suggest a fix. Both of our issues involve jack-shm.

(I changed the ~ in the message to the word "tilde" because this forum uses that symbol for something specific.)

The initial error box says...

Could not connect to JACK server as client.

  • Overall operation failed.
  • Unable to connect to server.
    Please check the messages window for more info.

Then, in the Message/Status box I get...

23:13:24.445 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::(tilde)JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::(tilde)JackShmReadWritePtr - Init not done for -1, skipping unlock
23:13:46.017 JACK is stopping...

Then, once I dismiss the first error box, the following is added to the Message/Status box...

Jack main caught signal 15
Released audio card Audio1
audio_reservation_finish
23:13:46.193 JACK was stopped

ForrestH
Established Member
Posts: 47
Joined: Fri Feb 12, 2021 7:07 am
Been thanked: 15 times

Re: Jack : Sudden Bus Error when starting

Post by ForrestH »

How much free space is there on /dev/shm?

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: Jack : Sudden Bus Error when starting

Post by khz »

ForrestH wrote: Thu Dec 08, 2022 4:08 pm

How much free space is there on /dev/shm?

This depends on the installed RAM.

khz wrote: Fri May 18, 2018 6:28 am

https://www.cyberciti.biz/tips/what-is- ... usage.html

Code: Select all

┌───────────┬──────────────┬────────────────┐
│ /dev/shm  │ always tmpfs │ Linux specific │
├───────────┼──────────────┼────────────────┤
│ /tmp      │ can be tmpfs │ FHS 1.0        │
├───────────┼──────────────┼────────────────┤
│ /var/tmp  │ never tmpfs  │ FHS 1.0        │
└───────────┴──────────────┴────────────────┘

https://superuser.com/a/1030777

<EDIT>

I had a total of 8 GB RAM installed in the computer.

With the shm entry in the fstab [1] he shows me this:

khz wrote: Wed Jan 02, 2019 5:48 pm

Code: Select all

 ~ $ df -h
shm             7,4G    155M  7,2G    3% /dev/shm
tmpfs           7,4G     12K  7,4G    1% /tmp

Without the shm entry in the fstab [1] he shows me this:

khz wrote: Wed Jan 02, 2019 8:21 pm

Code: Select all

 ~ $ df -h
shm             5,9G    102M  5,8G    2% /dev/shm

[1]

Code: Select all

shm           /dev/shm     tmpfs         nodev,nosuid,noexec,size=7500M      0 0

</EDIT>

. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
ForrestH
Established Member
Posts: 47
Joined: Fri Feb 12, 2021 7:07 am
Been thanked: 15 times

Re: Jack : Sudden Bus Error when starting

Post by ForrestH »

(Lost between my brain and my keyboard: there was an issue where running out of space on /dev/shm would lead to a jackd bus error; not the case here.)

retnev
Established Member
Posts: 157
Joined: Sat Mar 25, 2017 2:13 am
Has thanked: 4 times
Been thanked: 3 times

Re: Jack : Sudden Bus Error when starting

Post by retnev »

Not a secure solution, but I had to do it as the problem persists.
Jack always have no permissions to /dev/shm after a reboot.
So since I do not use systemD, my rc.local works, and I added
chmod -R 777 /dev/shm
to rc.local
which temporarily solves the problem for user account starting jack, until I can figure out the permission issue.
It works fine after that.

Last edited by retnev on Sat Dec 24, 2022 6:57 am, edited 1 time in total.
retnev
Established Member
Posts: 157
Joined: Sat Mar 25, 2017 2:13 am
Has thanked: 4 times
Been thanked: 3 times

Re: Jack : Sudden Bus Error when starting

Post by retnev »

RyanH wrote: Mon Dec 05, 2022 1:57 am

Sorry to pollute your thread with my own issue, but I'll leave my error message here in case our issues are connected and it helps someone suggest a fix. Both of our issues involve jack-shm.

I am glad that you post a related issue, as sometimes it helps to figure out the original.
No problem
thanks.

Post Reply