cant run terraria

Questions about Wine on Linux
Locked
inhki
Level 1
Level 1
Posts: 9
Joined: Sun Mar 05, 2023 2:24 am

cant run terraria

Post by inhki »

im want to lauch it normally but i hahve this error code

Code: Select all

0024:fixme:system:QueryDisplayConfig (00000002 0187ED48 064ED950 0187ED5C 02237920 00000000): semi-stub
0024:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0024:err:wgl:init_opengl OpenGL support is disabled.
0024:err:wgl:set_pixel_format Invalid format 0
0024:fixme:win:RegisterTouchWindow hwnd 00010064, flags 0x3 stub!
0024:err:wgl:set_pixel_format Invalid format 0
0024:err:wgl:set_pixel_format Invalid format 0
================
5/18/2023 10:04:18 AM: Unhandled Exception
Thread: 1 [Main Thread]
Culture: en-US
Exception: Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Invalid window
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x0016e] in <ac49f792d1924f2ca9e12200b1e6ae07>:0
  at Microsoft.Xna.Framework.Game..ctor () [0x0013b] in <ac49f792d1924f2ca9e12200b1e6ae07>:0
  at Terraria.Main..ctor () [0x0024f] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.Program.RunGame () [0x0003a] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00085] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.WindowsLaunch.Main (System.String[] args) [0x00029] in <cd1a926a53304a76abc1173fbebcc76b>:0
HResult: -2146233088
================
exception inside UnhandledException handler: (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:NullReferenceException member:(null)

[ERROR] FATAL UNHANDLED EXCEPTION: Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Invalid window
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x0016e] in <ac49f792d1924f2ca9e12200b1e6ae07>:0 
  at Microsoft.Xna.Framework.Game..ctor () [0x0013b] in <ac49f792d1924f2ca9e12200b1e6ae07>:0 
  at Terraria.Main..ctor () [0x0024f] in <cd1a926a53304a76abc1173fbebcc76b>:0 
  at Terraria.Program.RunGame () [0x0003a] in <cd1a926a53304a76abc1173fbebcc76b>:0 
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00085] in <cd1a926a53304a76abc1173fbebcc76b>:0 
and a try reinstalling my nvidia drivers because it says

Code: Select all

0024:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
and restart my computer and its still same
or i reinstalling xna but still same
what should i do to fix it?
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: cant run terraria

Post by invisible kid »

jkfloris will know for sure, but like you said, it's not finding that library. Did you also install the 32 bit drivers/libraries? If not, definitely do that when you do the nvidia driver install.
inhki
Level 1
Level 1
Posts: 9
Joined: Sun Mar 05, 2023 2:24 am

Re: cant run terraria

Post by inhki »

invisible kid wrote: Wed May 17, 2023 10:12 pm jkfloris will know for sure, but like you said, it's not finding that library. Did you also install the 32 bit drivers/libraries? If not, definitely do that when you do the nvidia driver install.
yes it is i already install wth 32 bit lib
inhki
Level 1
Level 1
Posts: 9
Joined: Sun Mar 05, 2023 2:24 am

Re: cant run terraria

Post by inhki »

inhki wrote: Wed May 17, 2023 10:09 pm im want to lauch it normally but i hahve this error code

Code: Select all

0024:fixme:system:QueryDisplayConfig (00000002 0187ED48 064ED950 0187ED5C 02237920 00000000): semi-stub
0024:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0024:err:wgl:init_opengl OpenGL support is disabled.
0024:err:wgl:set_pixel_format Invalid format 0
0024:fixme:win:RegisterTouchWindow hwnd 00010064, flags 0x3 stub!
0024:err:wgl:set_pixel_format Invalid format 0
0024:err:wgl:set_pixel_format Invalid format 0
================
5/18/2023 10:04:18 AM: Unhandled Exception
Thread: 1 [Main Thread]
Culture: en-US
Exception: Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Invalid window
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x0016e] in <ac49f792d1924f2ca9e12200b1e6ae07>:0
  at Microsoft.Xna.Framework.Game..ctor () [0x0013b] in <ac49f792d1924f2ca9e12200b1e6ae07>:0
  at Terraria.Main..ctor () [0x0024f] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.Program.RunGame () [0x0003a] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00085] in <cd1a926a53304a76abc1173fbebcc76b>:0
  at Terraria.WindowsLaunch.Main (System.String[] args) [0x00029] in <cd1a926a53304a76abc1173fbebcc76b>:0
HResult: -2146233088
================
exception inside UnhandledException handler: (null) assembly:C:\windows\mono\mono-2.0\lib\mono\4.5\mscorlib.dll type:NullReferenceException member:(null)

[ERROR] FATAL UNHANDLED EXCEPTION: Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Invalid window
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x0016e] in <ac49f792d1924f2ca9e12200b1e6ae07>:0 
  at Microsoft.Xna.Framework.Game..ctor () [0x0013b] in <ac49f792d1924f2ca9e12200b1e6ae07>:0 
  at Terraria.Main..ctor () [0x0024f] in <cd1a926a53304a76abc1173fbebcc76b>:0 
  at Terraria.Program.RunGame () [0x0003a] in <cd1a926a53304a76abc1173fbebcc76b>:0 
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00085] in <cd1a926a53304a76abc1173fbebcc76b>:0 
and a try reinstalling my nvidia drivers because it says

Code: Select all

0024:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
and restart my computer and its still same
or i reinstalling xna but still same
what should i do to fix it?
for more info that may be useful i already locate where my libGL.so.1 and here a output

# $whereis libGL.so.1

Code: Select all

libGL.so.1: /usr/lib/libGL.so.1
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: cant run terraria

Post by invisible kid »

You can try this:

Code: Select all

sudo find / -name libGL.so.1 2>/dev/null
I get these included in my results:

Code: Select all

/usr/lib32/libGL.so.1
/usr/lib/libGL.so.1
to verify:

Code: Select all

ls -l /usr/lib32/libGL.so.1 /usr/lib/libGL.so.1
If it shows those files as being pointers to other files, do the same command to those files:

Code: Select all

ls -l /usr/lib/libGL.so.1.7.0 /usr/lib32/libGL.so.1.7.0
Check bitness:

Code: Select all

file /usr/lib/libGL.so.1.7.0 /usr/lib32/libGL.so.1.7.0
/usr/lib/libGL.so.1.7.0:   ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=662caf079ad43c9457f8c336224b5eb796dcaa3d, stripped
/usr/lib32/libGL.so.1.7.0: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=9fd45c1aa14113056696cfe074b8b3b4f34ad341, stripped
You should have at least two versions, a 64 bit, and a 32 bit. Good luck!
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: cant run terraria

Post by jkfloris »

LibGL.so.1 is no longer part of the nvidia driver.
On Debian/ Ubuntu you can install it with:

Code: Select all

sudo apt install libgl1:{amd64,i386}
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: cant run terraria

Post by invisible kid »

Do you mean from nvidia's installers? It looks like version 525.78.01 still installs it. Well, as long as OP gets straightened out. Edited to add: Okay, not sure where OP got his/her nvidia drivers from.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: cant run terraria

Post by jkfloris »

I don't know how the official Nvidia installer does it, but since version 430 on Debian and Ubuntu, libgl1 is handled by the vendor-neutral dispatch layer.
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: cant run terraria

Post by invisible kid »

Ahh, Thx.
inhki
Level 1
Level 1
Posts: 9
Joined: Sun Mar 05, 2023 2:24 am

Re: cant run terraria

Post by inhki »

jkfloris wrote: Thu May 18, 2023 10:36 am LibGL.so.1 is no longer part of the nvidia driver.
On Debian/ Ubuntu you can install it with:

Code: Select all

sudo apt install libgl1:{amd64,i386}
how i install it in arch? XD ,i searching a package and AUR but i dont see they added libgl
inhki
Level 1
Level 1
Posts: 9
Joined: Sun Mar 05, 2023 2:24 am

Re: cant run terraria

Post by inhki »

nevermind i already found it

thanks you for helping me invisible kid and jkfloris
Locked