<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Euro Truck Simulator 2 crashes when changing graphics settings with mesa 17.3.0, but not with 17.0.7"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102316">102316</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Euro Truck Simulator 2 crashes when changing graphics settings with mesa 17.3.0, but not with 17.0.7
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>leozinho29_eu@hotmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi

In the game Euro Truck Simulator 2 version 1.28 it is not possible to change
the graphics settings because when doing so the game crashes. On dmesg the
following messages appear:

[ 6921.008079] eurotrucks2[7098]: segfault at 0 ip 0000000000a3ff90 sp
00007fff0c1028b0 error 4 in eurotrucks2[400000+1549000]

In multiple times the crash looks very similar:

[ 7016.877901] eurotrucks2[7503]: segfault at 0 ip 0000000000a3ff90 sp
00007ffe4a807860 error 4 in eurotrucks2[400000+1549000]
[ 9652.424350] eurotrucks2[6492]: segfault at 0 ip 0000000000a3ff90 sp
00007ffd508b7c60 error 4 in eurotrucks2[400000+1549000]

The game log may no be very useful here, but it is available in:
<a href="https://pastebin.com/7m1SV1QN">https://pastebin.com/7m1SV1QN</a>

Expected behavior: I am able to change graphics settings in the game.

Observed behavior: The game crashes when changing graphics settings.

While I have reported this problem to the game developers on their forum, I
believe the problem is with mesa. I was using mesa version 17.3.0 from git
(git-494f86bbe5 and a later version I built 30 minutes ago, which I uninstalled
to test).

I am now using mesa version 17.0.7 from Xubuntu 17.04 amd64 and with this mesa
version there is no crash when changing graphics settings. I am unsure if this
is a regression or I have built mesa with some wrong configuration.

My system hardware:
Processor: Intel Core i3-6100U
Graphics Card: Intel HD Graphics 520
RAM: 8 GB

The configuration I use to build mesa:

./autogen.sh --prefix=/usr/local --with-vulkan-drivers="intel"
--with-dri-drivers="i915 i965 swrast" --with-dri-driverdir=/usr/local/lib/dri
--with-gallium-drivers="i915,svga,swrast" --enable-gles1 --enable-gles2
--enable-opencl --enable-va --enable-nine --enable-llvm --enable-xa
--enable-osmesa --enable-shared-glapi --with-egl-platforms=x11,drm
--enable-texture-float  --enable-gbm --enable-glx-tls  --enable-dri3

I build both 32-bit and 64-bit mesa. The configuration files I have are in
/etc/profile.d and /etc/ld.so.conf.

Content from the file in /etc/profile.d/minhamesa.sh

mesa_installation_dir=/usr/local
LIBGL_DRIVERS_PATH=$mesa_installation_dir/lib/dri:/home/usuario/mesa/install32/lib/dri

export mesa_installation_dir
export LIBGL_DRIVERS_PATH

------------------------------------------

Content from the file in /etc/ld.so.conf/minhamesa32.conf

/home/usuario/mesa/install32/lib
/home/usuario/mesa/install32/lib/dri
/home/usuario/mesa/install32/lib/d3d
/home/usuario/mesa/install32/lib/gallium-pipe

------------------------------------------

The 32-bits mesa install is at the user folder and is owned by root.

As I have told before, I am unsure this is a regression, but the fact it works
with 17.0.7 but not with 17.3.0 it is suspect.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>