Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-11654

unable to start game if run with optirun (discrete nvidia card)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 2.1.5963-2.1.5969 (Stable)
    • None
    • None
    • Intel(R) Core(TM) i7-3537U
      Asus S46CB
      Opensuse Leap 15.1
      GeForce GT 740M (discrete)
      Mesa DRI Intel Ivybridge Mobile (integrated)
    • Unconfirmed

      While I was writing the bug report I found a workaround. I choose to report it anyway as it uses a rather obscure prime-select tool that I never knew about it even though I used optirun for years.

      I had already played a few times on this setup using optirun to trigger the discrete card. Now it doesn't work anymore and I don't know what changed. Without optirun it runs fine on Intel but it's way slower.
      If I try to run minecraft through optirun in either launchers (2.1.5965 or 1.6 jar version) I get the following error, before the game window shows up:

      17:44:23.692 Checking installations.
      17:44:23.693 Minecraft client 1.14.4 is ready to start.
      17:44:23.693 Starting!
      17:44:23.693 Nothing to download!
      17:44:23.693 Extracting 7 files!
      17:44:23.717 Using default game log configuration client-1.12.xml (outputs XML)
      17:44:23.717 Installing versions!
      17:44:25.837 Setting user: rber
      17:44:32.047 LWJGL Version: 3.2.2 build 10
      17:44:33.001 X Error of failed request:  BadMatch (invalid parameter attributes)
        Major opcode of failed request:  72 (X_PutImage)
        Serial number of failed request:  46
        Current serial number in output stream:  54
      17:44:33.001 Process crashed with exit code 1

      The workaround I found was to explicitly select the nvidia card through the "prime-select" tool. I just ran prime-select nvidia and the game was able to run again.

      I'll say again that prime-select is an obscure tool I've never heard of. Also after rebooting it broke the graphical terminal which rendered the system at least seemingly broken until I ran prime-select unset
      I would love If I'm able to help making the game work out of the box in opensuse even in laptops with two graphic cards

      Please close this bug.

            Unassigned Unassigned
            rber Raphael Bertoche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: