Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2023 23:32:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 257255] graphics/rawtherapee: Crashes in rtengine::Color::rgb2lab01 when editing a picture; nullptr dereference related to color profile
Message-ID:  <bug-257255-6497-RtUKO3I5eg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257255-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257255-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257255

merritt.draney@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |merritt.draney@gmail.com

--- Comment #22 from merritt.draney@gmail.com ---
Try this in your .xinitrc.  I think it is something in the session startup =
and
environmental variables.  This is the way I have to start it up using start=
x.=20
I am not sure what needs to be changed to get lightdm to startup correctly.

#!/bin/sh
export LANG=3D"en_US.UTF-8"=20=20
export LC_CTYPE=3D"en_US.UTF-8"=20=20
export LC_MESSAGES=3D"en_US.UTF-8"=20=20
export XDG_SESSION_TYPE=3Dx11=20=20
export WINDOWPATH=3D9=20=20
export COLORTERM=3Dtruecolor

# fix broken $UID on some system...
if test "x$UID" =3D "x"; then
  if test -x /usr/xpg4/bin/id; then
    UID=3D`/usr/xpg4/bin/id -u`;
  else
    UID=3D`id -u`;
  fi
fi

# set $XDG_MENU_PREFIX to "xfce-" so that "xfce-applications.menu" is picked
# over "applications.menu" in all Xfce applications.
if test "x$XDG_MENU_PREFIX" =3D "x"; then
  XDG_MENU_PREFIX=3D"xfce-"
  export XDG_MENU_PREFIX
fi

# set DESKTOP_SESSION so that one can detect easily if an Xfce session is
running
if test "x$DESKTOP_SESSION" =3D "x"; then
  DESKTOP_SESSION=3D"xfce"
  export DESKTOP_SESSION
fi

# set XDG_CURRENT_DESKTOP so that Qt 5 applications can identify user set X=
fce
theme
if test "x$XDG_CURRENT_DESKTOP" =3D "x"; then
  XDG_CURRENT_DESKTOP=3D"XFCE"
  export XDG_CURRENT_DESKTOP
fi

# $XDG_CONFIG_HOME defines the base directory relative to which user specif=
ic
# configuration files should be stored. If $XDG_CONFIG_HOME is either not s=
et
# or empty, a default equal to $HOME/.config should be used.
if test "x$XDG_CONFIG_HOME" =3D "x" ; then
  XDG_CONFIG_HOME=3D$HOME/.config
fi
[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"

# $XDG_CACHE_HOME defines the base directory relative to which user specific
# non-essential data files should be stored. If $XDG_CACHE_HOME is either n=
ot
# set or empty, a default equal to $HOME/.cache should be used.
if test "x$XDG_CACHE_HOME" =3D "x" ; then
  XDG_CACHE_HOME=3D$HOME/.cache
fi
[ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME"

# set up XDG user directores.  see
# http://freedesktop.org/wiki/Software/xdg-user-dirs
if command -v xdg-user-dirs-update >/dev/null 2>&1; then
    xdg-user-dirs-update
fi

# For now, start with an empty list
XRESOURCES=3D""

# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
test -r "/usr/local/etc/xdg/xfce4/Xft.xrdb" && XRESOURCES=3D"$XRESOURCES
/usr/local/etc/xdg/xfce4/Xft.xrdb"
test -r $HOME/.Xdefaults && XRESOURCES=3D"$XRESOURCES $HOME/.Xdefaults"

BASEDIR=3D$XDG_CONFIG_HOME/xfce4
if test -r "$BASEDIR/Xft.xrdb"; then
  XRESOURCES=3D"$XRESOURCES $BASEDIR/Xft.xrdb"
elif test -r "$XFCE4HOME/Xft.xrdb"; then
  mkdir -p "$BASEDIR"
  cp "$XFCE4HOME/Xft.xrdb" "$BASEDIR"/
  XRESOURCES=3D"$XRESOURCES $BASEDIR/Xft.xrdb"
fi

# merge in X cursor settings
test -r "$BASEDIR/Xcursor.xrdb" && XRESOURCES=3D"$XRESOURCES
$BASEDIR/Xcursor.xrdb"

# ~/.Xresources contains overrides to the above
test -r "$HOME/.Xresources" && XRESOURCES=3D"$XRESOURCES $HOME/.Xresources"

# load all X resources (adds /dev/null to avoid an empty list that would ha=
ng
the process)
cat /dev/null $XRESOURCES | xrdb -merge -

# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap

# if XAUTHLOCALHOSTNAME is not set in systemd user session, starting of
xfce4-notifyd, DISPLAY etc. will fail
if command -v systemctl >/dev/null 2>&1 && systemctl --user list-jobs
>/dev/null 2>&1; then # user session is running
  dbus-update-activation-environment --systemd
XAUTHLOCALHOSTNAME=3D$XAUTHLOCALHOSTNAME
fi


# check if we start xfce4-session with ck-launch-session. this is only
# required for starting from a console, not a login manager
if test "x$XFCE4_SESSION_WITH_CK" =3D "x1"; then
  if command -v ck-launch-session >/dev/null 2>&1; then
    exec ck-launch-session xfce4-session
  else
    echo
    echo "You have tried to start Xfce with consolekit support, but"
    echo "ck-launch-session is not installed."
    echo "Aborted startup..."
    echo
    exit 1
  fi
else
  # start xfce4-session normally
  exec xfce4-session
fi

# if we got here, then exec failed
exit 1

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257255-6497-RtUKO3I5eg>