Bug 32182 - Incomplete OpenGL support with old GPUs, i.e Blender show no text in menus and dialogues, nouveau [INVALID_OPCODE] in journal
Summary: Incomplete OpenGL support with old GPUs, i.e Blender show no text in menus an...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2023-08-19 01:07 CEST by Morgan Leijström
Modified: 2024-07-31 09:36 CEST (History)
5 users (show)

See Also:
Source RPM: blender-3.3.8-1.mga9.src.rpm, xorg modesetting, kernel...
CVE:
Status comment:


Attachments
Screenshot (515.19 KB, image/png)
2023-08-19 01:07 CEST, Morgan Leijström
Details

Description Morgan Leijström 2023-08-19 01:07:04 CEST
Description of problem:
Blender show no text in menus and dialogues, nouveau errors in journal

(wanted to learn it a bit but got no further...)

Version-Release number of selected component (if applicable):
blender-3.3.8-1.mga9.src.rpm
Cauldron near Megeia 9 release

How reproducible:
Always on this system, a Thinkpad T510;
$ inxi -G
Graphics:
  Device-1: NVIDIA GT218M [NVS 3100M] driver: nouveau v: kernel
  Device-2: Lenovo Integrated Webcam [R5U877] type: USB driver: uvcvideo
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: modesetting,v4l dri: nouveau gpu: nouveau resolution: 1920x1080~60Hz
  API: OpenGL v: 3.3 Mesa 23.1.5 renderer: NVA8

I have tried with both plain nouveau, and with modeseting, same result.
nvidia470 is not compatible.


Steps to Reproduce:
1.  Up to date Cauldron / mga9 near release. Plasma, sddm, x86_64
2.  Install Blender
3.  Launch Blender; 
4.  It looks OK except there is no text in menus or dialogues

$ blender --factory-startup --debug-all

  Reveals several identical errors like this:

Received X11 Error:
        error code:   167
        request code: 152
        minor code:   0
        error text:   GLXBadFBConfig

No error nor warning in /var/log/Xorg.0.log

In journal:

aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: DATA_ERROR 00000004 [INVALID_VALUE]
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: 00100000 [] ch 37 [001cb60000 blender[225155]] subc 4 class 502d mthd 0838 data 000121b0
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: TRAP_MP_EXEC - TP 0 MP 0: 00000010 [INVALID_OPCODE] at 06e68c warp 28, opcode fff0f0f0 fff4f4f4
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: TRAP_MP_EXEC - TP 0 MP 1: 00000010 [INVALID_OPCODE] at 06e68c warp 27, opcode fff0f0f0 fff4f4f4
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: 00200000 [] ch 37 [001cb60000 blender[225155]] subc 3 class 8597 mthd 0d78 data 00000004
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: TRAP_MP_EXEC - TP 0 MP 0: 00000010 [INVALID_OPCODE] at 06e68c warp 28, opcode fff0f0f0 fff4f4f4
aug 19 00:52:59 localhost kernel: nouveau 0000:01:00.0: gr: TRAP_MP_EXEC - TP 0 MP 1: 00000010 [INVALID_OPCODE] at 06e68c warp 27, opcode fff0f0f0 fff4f4f4

Last three lines repeated many times
Comment 1 Morgan Leijström 2023-08-19 01:07:46 CEST
Created attachment 13944 [details]
Screenshot
Comment 2 Morgan Leijström 2023-08-19 01:09:40 CEST
CC blender packager, and driver maintainers

CC: (none) => ghibomgx, kernel

Comment 3 Morgan Leijström 2023-08-19 01:26:15 CEST
WORKAROUND: disabling hardware acceleration "works" meaning menues etc appear correctly but with the drawback it is really painfully slow....

(only tested with modesetting)

 "Mageia Control Center" -> "Set up the graphical server" -> "Options" -> Checkmark "Disable Hardware Acceleration", and reboot.
Comment 4 Giuseppe Ghibò 2023-08-19 08:30:15 CEST
Pretty weird it happens on nvidia470 as the GL levels there should be complete.

Does the same occurs in nvidia-current-535.xx (at least for the time it stays up before kernel resuming crashes)?

Does the same occurs using blender-3.3.11, e.g. here:

https://copr-be.cloud.fedoraproject.org/results/ghibo/mageia9-bonus/mageia-cauldron-x86_64/06318015-blender/
Comment 5 sturmvogel 2023-08-19 08:56:16 CEST
(In reply to Giuseppe Ghibò from comment #4)
> Pretty weird it happens on nvidia470 as the GL levels there should be
> complete.
> 
> Does the same occurs in nvidia-current-535.xx (at least for the time it
> stays up before kernel resuming crashes)?
Morgan is using nouveau as this card is so old that it is no longer supported by any driver (needs 340)…
Comment 6 Giuseppe Ghibò 2023-08-19 09:42:38 CEST
(In reply to sturmvogel from comment #5)
> (In reply to Giuseppe Ghibò from comment #4)
> > Pretty weird it happens on nvidia470 as the GL levels there should be
> > complete.
> > 
> > Does the same occurs in nvidia-current-535.xx (at least for the time it
> > stays up before kernel resuming crashes)?
> Morgan is using nouveau as this card is so old that it is no longer
> supported by any driver (needs 340)…

Ah, I missed the newer card report that changed, so the card is not the GTX 750Ti anymore...
Comment 7 Morgan Leijström 2023-08-19 12:35:38 CEST
Yes this is another machine than I normally report on. This is my newest laptop.  As said in description i also tried nvidia470 but as expected it is not compatible.

On my machine with GTX 750Ti, Blender works now currently on modesetting OK (for less suspend-resume problems than the nvidia driver, and Giuseppe's lowlatency kernel.)
Comment 8 Giuseppe Ghibò 2023-08-19 13:20:53 CEST
(In reply to Morgan Leijström from comment #7)

> Yes this is another machine than I normally report on. This is my newest
> laptop.  As said in description i also tried nvidia470 but as expected it is
> not compatible.
> 
> On my machine with GTX 750Ti, Blender works now currently on modesetting OK
> (for less suspend-resume problems than the nvidia driver, and Giuseppe's
> lowlatency kernel.)

I think this is not a bug of blender, but rather of nouveau (or to be precise modesetting+nouvau). Probably it has some flaw on some opengl level. We might check it's compatibility with 'piglit':

https://gitlab.freedesktop.org/mesa/piglit

but we don't have it yet packaged for mga.

As for your old laptop and blender, I think you can still "squeeze" something from it using the nvidia340.xx proprietary drivers (of course unsupported for security). You should have received the instructions on how to use it.
Comment 9 Morgan Leijström 2023-08-19 16:36:03 CEST
(In reply to Giuseppe Ghibò from comment #8)
> (In reply to Morgan Leijström from comment #7)
> > 
> > On my machine with GTX 750Ti, Blender works now currently on modesetting

 
> I think this is not a bug of blender, but rather of nouveau (or to be
> precise modesetting+nouvau).

Plus it depends on GPU capability i presume, as it works on my workstation with GTX 750Ti

---

> As for your old laptop and blender, I think you can still "squeeze"
> something from it using the nvidia340.xx proprietary drivers (of course
> unsupported for security). You should have received the instructions on how
> to use it.

Thank you i got that mail.  Might try that.  
However easiest is dual boot it to Windows 10, and blender works correctly there.
Comment 10 Morgan Leijström 2023-08-19 23:08:15 CEST
I guess we probably have more software with similar issues, (using higher level OpenGL than provided by modesetting+nouveau with actual GPU)...

We have to keep eyes open for reports.
Comment 11 Lewis Smith 2023-08-20 20:36:46 CEST
Just trying blender on my system:
$ inxi -G
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 600] driver: i915 v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: intel,v4l dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel UHD Graphics 600 (GLK
    2)
and as expected it does not show Morgan's problem.

This looks good for ERRATA.
@Morgan, you say comment 3 how to disable h/w acceleration, which fixes the issue at a price. I was unsure whether 'modesetting' helped; and if so, how to do that.

Keywords: (none) => FOR_ERRATA9
CC: (none) => lewyssmith

Comment 12 Morgan Leijström 2023-08-20 22:11:44 CEST
Added in
https://wiki.mageia.org/en/Mageia_9_Errata#Graphics

Keywords: FOR_ERRATA9 => IN_ERRATA9
Summary: Blender show no text in menus and dialogues, nouveau [INVALID_OPCODE] in journal => Incomplete OpenGL support with old GPUs, i.e Blender show no text in menus and dialogues, nouveau [INVALID_OPCODE] in journal
Source RPM: blender-3.3.8-1.mga9.src.rpm => blender-3.3.8-1.mga9.src.rpm, xorg modesetting, kernel...

Comment 13 psyca 2023-08-21 20:24:46 CEST
Is this option in Comment #3 depending on the grafic card or desktop environment? I dont have this checkbox.

CC: (none) => linux

Comment 14 Giuseppe Ghibò 2023-08-21 20:33:35 CEST
(In reply to psyca from comment #13)

> Is this option in Comment #3 depending on the grafic card or desktop
> environment? I dont have this checkbox.

Yes, it's depending on graphic card driver. Available only for intel, amdgpu, nvidia proprietary, nouveau and modesetting.
Comment 15 Morgan Leijström 2023-08-21 22:21:50 CEST
Thanks, added to Errata.
Comment 16 Marja Van Waes 2024-06-22 20:05:22 CEST
Is this issue still present in current Cauldron? It is almost a year later and most of Cauldron has changed.

CC: (none) => marja11
Status: NEW => NEEDINFO

Comment 17 Morgan Leijström 2024-06-22 22:50:38 CEST
Tested now on that same system in comment 0:
Problem gone on this system.


Tested while using kernel desktop 6.6.28-1:

Used drakx11 to select nouveau, leaved checkbox disable hardware acceleration unselected. reboot, blender menus OK.

Used drakx11 to select modesetting, leaved checkbox disable hardware acceleration unselected. reboot, blender menus OK.

Nothing bad in journal.


I am reluctant to close the bug unless we know what fixed it and if still no other system or application is showing this problem still.

Status: NEEDINFO => NEW

Comment 18 Morgan Leijström 2024-07-31 09:36:13 CEST
Setting this as fixed.
If someone see the same again, please reopen.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.