Bwrap error

Hi everyone.
I always get a bwrap error when I launch the game.
Is there a way to disable this error so I don’t see the message?
Thanks.

Probably going to have to be somewhat more precise with the bwrap error message.

{   "signal": 31
,   "executable": "/usr/bin/bwrap"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 140376326040670
                ,   "build_id": "ff0267465bc3d76e21003b3bc5598fd5ee63e261"
                ,   "build_id_offset": 453726
                ,   "function_name": "__internal_syscall_cancel"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140376326040708
                ,   "build_id": "ff0267465bc3d76e21003b3bc5598fd5ee63e261"
                ,   "build_id_offset": 453764
                ,   "function_name": "__syscall_cancel"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140376326499215
                ,   "build_id": "ff0267465bc3d76e21003b3bc5598fd5ee63e261"
                ,   "build_id_offset": 912271
                ,   "function_name": "wait4"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 94515961735320
                ,   "build_id": "2a24855f56b62fc4e24688e54093f5f81e274c98"
                ,   "build_id_offset": 14488
                ,   "function_name": "main"
                ,   "file_name": "/usr/bin/bwrap"
                }
              , {   "address": 140376325600693
                ,   "build_id": "ff0267465bc3d76e21003b3bc5598fd5ee63e261"
                ,   "build_id_offset": 13749
                ,   "function_name": "__libc_start_call_main"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 140376325600872
                ,   "build_id": "ff0267465bc3d76e21003b3bc5598fd5ee63e261"
                ,   "build_id_offset": 13928
                ,   "function_name": "__libc_start_main@@GLIBC_2.34"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 94515961739381
                ,   "build_id": "2a24855f56b62fc4e24688e54093f5f81e274c98"
                ,   "build_id_offset": 18549
                ,   "function_name": "_start"
                ,   "file_name": "/usr/bin/bwrap"
                } ]
        } ]
}

Signame 31 is SIGSYS, which is usually thrown when the kernel denies the process the ability to do something - “permission denied” basically.

In this case, bwrap was waiting for a child process to do something and that something was denied.

How are you running this game? Is it already in a container like flatpak or toolbx or the equivalent If so, then I would guess (and I’m not a bwrap user) that the permissions on this outer container are preventing bwrap from doing its thing.

GOG game lutris (not Flatpak), Lutris Flatpak same error

I see - I guess we can quickly check if selinux is denying something by turning it off temporarily and seeing if the error persists. If it goes away, it’s selinux preventing something and if it persists then it’s something esle.

Open a terminal and execute sudo setenforce 0, then try running your problematic game.

Any different?

It doesn’t affect the game; it launches and runs fine. But this error is annoying. Even though it doesn’t happen every time.

This is a game called X3AP. It’s launched via a script. Could that be the problem?

#!/bin/bash 
# GOG.com (www.gog.com)
# Game

# Initialization 
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 
cd "${CURRENT_DIR}" 
source support/gog_com.shlib 

# Game info 
GAME_NAME="$(get_gameinfo 1)" 
VERSION="$(get_gameinfo 2)" 
VERSION_DEV="$(get_gameinfo 3)" 

# Actions
run_game() { 
echo "Running ${GAME_NAME}" 
cd "${CURRENT_DIR}/game" 
chmod +x * 
 ./"X3AP_config" 

}
default() { 
run_game
} 

# Options
define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@" 

# Defaults
standard_options "$@" 

OK - edit that script and append 2>/dev/null to the `./“X3AP_config” like so:

./"X3AP_config" 2>/dev/null

That should send any error messages produced on STDERR to the bin. If that still doesn’t get rid of it, upgrade it to

 ./"X3AP_config" >/dev/null 2>&1

which will send both STDOUT and STDERR to /dev/null, never to be seen again.

It didn’t help. I’ll just ignore it.
Thanks for your help.
I’ll wait for updates.