Error when running game on Ubuntu 20.04

Linux specific forum
ricardo_sdl
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 21, 2019 4:24 pm

Error when running game on Ubuntu 20.04

Post by ricardo_sdl »

Hi!
I'm trying to create a linux binary for my game (https://ricardo-sdl.itch.io/trial-dungeon). I installed Ubuntu 20.04 on a virtual machine using Hyper-V on windows 10. This is the PureBasic version used:
PureBasic 5.72 (Linux - x64)

The game compiles fine, but when I try to run it I get the following error message:

Code: Select all

(purebasic.out:2303): Gdk-ERROR **: 12:04:23.735: The program 'purebasic.out' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContextTag'.
  (Details: serial 334 error_code 162 request_code 151 (GLX) minor_code 16)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
Any ideas on how to solve it?
Thank you all!
You can check my games at:
https://ricardo-sdl.itch.io/
Fred
Administrator
Administrator
Posts: 16664
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Error when running game on Ubuntu 20.04

Post by Fred »

Virtual machines are not known to run OpenGL app very nicely. Could you try on a real linux ?
User avatar
mk-soft
Always Here
Always Here
Posts: 5387
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Error when running game on Ubuntu 20.04

Post by mk-soft »

Recompiled Linux PB v5.72 and running.

Hostsystem: Mac Mini 2018
Virtualization: Parallels V15
VM: Ubuntu 18.04.4 (X64)

VM: Ubuntu 20.04 - Download now
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 5387
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Error when running game on Ubuntu 20.04

Post by mk-soft »

VM Ubuntu 20.04 LTS installiert.

Game is running.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
ricardo_sdl
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 21, 2019 4:24 pm

Re: Error when running game on Ubuntu 20.04

Post by ricardo_sdl »

Thanks mk-soft. Since the game compiled fine and you reported that it worked I decided to upload the version created with the virtual machine, I hope it will work for most users.
You can check my games at:
https://ricardo-sdl.itch.io/
Post Reply