Skip to contentSkip to conversation

New: Full system crash when running a custom OpenGL 4.3 graphic engine

Bug 102337 [email protected] 1 participant 6 messages Aug 21, 2017 – Sep 18, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=102337

Bug ID: 102337
Summary: Full system crash when running a custom OpenGL 4.3
graphic engine
Product: Mesa
Version: 17.1
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: critical
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 133645
--> https://bugs.freedesktop.org/attachment.cgi?id=133645&action=edit
glxinfo output

I wrote a custom graphic engine as a school project and tested it on different platforms; it works everywhere (both nVidia and AMD) with binary drivers but triggers a whole system crash (only the mouse cursor remains responsive) on MESA + Nouveau.

I am testing it with Ubuntu 17.10 daily build (kernel version 4.12) that supports OpenGL 4.3 (which is required) on my nVidia card, a GT 740. The full source code is available at https://github.com/TheBrokenGod/OmegaEngine and includes a makefile for simple compilation.

The engine executes some complicated shaders (contained in Source.cpp) in order to allow order-independent transparency through linked lists of fragments.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 102337] Full system crash when running a custom OpenGL 4.3 graphic engine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=102337

--- Comment #1 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- A few things:

1. Does the engine do threaded GL calls? If so, nouveau will crash and burn.
2. Does this still happen with the latest code from mesa git?
3. Can you see what's in dmesg when things go south? (Perhaps by ssh'ing in or using netconsole, depending on how bad things get.)

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 102337] Full system crash when running a custom OpenGL 4.3 graphic engine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=102337

--- Comment #2 from TheBrokenGod <[email protected]> ---
1. I make no use of threads; I don't know for sure if GLFW does it with OpenGL
but I don't think so.

2. I am using Ubuntu 17.10 as LiveCD, unfortunately I cannot install it to hard drive and recompile MESA, plus I wouldn't know how to do it ;) However the included version should be very recent.

3. https://pastebin.com/HE7rTetG

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 102337] Full system crash when running a custom OpenGL 4.3 graphic engine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=102337

--- Comment #3 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- You can try a more up-to-date stack from https://nouveau.pmoreau.org/

Your dmesg does not include any errors, which is surprising given that the system hangs. Can happen though.

What are the steps to reproduce this? (i.e. how does one operate your program)

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 102337] Full system crash when running a custom OpenGL 4.3 graphic engine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=102337

--- Comment #4 from TheBrokenGod <[email protected]> --- I tried the 08/21 image but I'm having trouble installing the needed packages.
I managed to install and run LXDE but when trying to install the rest it says
there is no enough space, which is strange because with 8GB of RAM there should
be plenty of it. Unfortunately I have no free partition on which perform the installation.

Anyway, it is very simple to reproduce the problem:

1) Download the whole project from https://github.com/TheBrokenGod/OmegaEngine
and unzip it
2) Install the following packages and libraries: make, g++, glfw, glew, assimp, freeimage
3) Run 'make -f makefile' in the root directory of the project
4) Launch the test scene with './omega Scene/scene.dae'

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 102337] Full system crash when running a custom OpenGL 4.3 graphic engine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=102337

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #5 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1138.

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau