-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Glide SDL2 segfault #2126
Comments
I tried Screamer Rally and could launch the game in both SDL1 and SDL2 versions on Windows (although there seems to be missing fonts), whereas I could reproduce the segfault on the Linux SDL2 build. I think the segfault is likely a bug of the OpenGlide library used in Linux. Perhaps OpenGlide (such as its grSstWinOpen function) is not quite compatible with the SDL2 calls or build. |
That's right openglide has a wrapper only for SDL1x. For me it works with SDL2, apart from the lack of 2D textures (important thing). edit: I also ran Screamer Rally under dosbox-ece (linux) with glide and all textures on 2D objects are displayed correctly. Of course, the game also doesn't work with dosbox-x's version of GLIDE2X.OVL. |
@Wengier With SDL2, nothing has changed (Screamer Rally). |
@grapeli Yes, I agree that the issue with Linux SDL2 is a limitation of OpenGlide. On the other hand, I tried it in Windows 32-bit SDL2 build with nGlide, and the 2D texture shows the same way as Windows 32-bit SDL1 build. |
@Wengier edit: It works with the Screamer Rally version of glide2x.ovl. No 2D textures. Confusing. |
@Wengier
I also tried sdl12-compat.
|
A new approach. Due to the fact that they improve a lot in sdl12-compat. I have removed SDL-1.2 from the system. I built the Openglide with sdl12-compat. A short video. Screamer Rally in Dosbox-X (SDL2) running under sway (wayland). Edit: |
@grapeli: Are this patches in v0.83.19 or do I need git or special branch for SDL2+Glide? I generally got very bad performance with SDL2/SDL1 and sdl12-compat under wayland in games (not DOSBox, but tardew Valley[sdl2], supertux[sdl1 and supertux2[sdl2]), until I enable native SDL2 wayland backend , by setting env var (SDL_VIDEODRIVER=wayland). I'm not talkign about DosBOX(researching which version to build), but Stardew Valley(sdl2), supertux(sdl1) and supertux2(sdl2), but it should apply to it too. |
@isopix The main problems with Configuring |
This could be of interest going forward: https://www.phoronix.com/scan.php?page=news_item&px=2022-Mesa-Grover Possibility of GLIDE support in Mesa on Linux. |
@rderooy edit: |
sdl12-comat is only needed if we intend to use |
Correct in principle. But since DOSBox-X uses a modified in-tree SDL1, I suspect you may have problems with sdl12-compat. |
@rderooy I will not recommend SDL1 to anyone in 2022. |
Just as a report it's basically impossible to build with SDL1 on Arch Linux now, SDL2 will be used at runtime and cause a crash with OpenGlide. The qemu-extra glide for seems to work with SDL2 though. |
I tested with this version of openglide with dosbox-x under archlinux. It works. Equally with SDL1 and SDL2 version. Far from perfect. For example, in Carmageddon, additional graphics are not displayed. They prefer the built-in 3DFx emulation. It works a bit better for me. Works for games with a static glide library (such as Battle Arena Toshinden). Dosbox-x has been built for a long time with the included version of the sdl1 library. The basic build script takes you to the appropriate sdl directory. |
Building on Arch Linux with that version of OpenGlide causes segfaults.
DOSBox-X uses the system SDL1 if it can't find the included SDL1 library.
Both of them still end up bringing in SDL2 unless I remove sdl12-compat.
The built-in 3DFx emulation is poor. The game I'm testing with is Carmageddon (GOG Edition).
…On Sat, May 28, 2022 at 12:59:27AM -0700, grapeli wrote:
I tested with this version of [openglide](https://github.com/voyageur/openglide) with dosbox-x under archlinux. It works. Equally with SDL1 and SDL2 version. Far from perfect. For example, in Carmageddon, additional graphics are not displayed.
They prefer the built-in 3DFx emulation. **It works a bit better for me.** Works for games with a static glide library (such as Battle Arena Toshinden).
Dosbox-x has been built for a long time with the included version of the sdl1 library. The [basic build script](https://github.com/joncampbell123/dosbox-x/blob/master/build#L13) takes you to the appropriate sdl directory.
If you would like to build with the system SDL1 you have to make some adjustments to the dosbox-x code (quite trivial). I assure you that it works and the system SDL1.
--
Reply to this email directly or view it on GitHub:
#2126 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
I have installed Archlinux for a long time. I decided not to replace sdl 1.2 with sdl12-compat. It is too early for such an experiment. I still have the last version of sdl1 installed. It works for me. Qemu-extra? You have in mind https://github.com/kjliew/qemu-xtra. |
Yes, you can no longer install SDL1, hence my comment.
|
I will explain to you again, because I can see that the previous posts did not work. DOSBox-X has been and is built for a very long time based solely on the slightly modified included SDL-1.x library. I won't be posting another video showing Openglide running smoothly with dosbox-x. It works for me. SDL1.x is not currently available in the archlinux repository. You can install the last archived version. You can build yourself with abs. You can compile yourself. The possibilities are across the spectrum. |
Yeah I did most of that afterwards. In the end Glide support is just too flaky on my system to the point I'm not bothering trying to run it in DOSBox-X. |
I agree. The built-in version of dosbox-x of 3DFX is much better. So much better. Openglide was created in the early 2000s. It has not changed almost since then. The full screen mode is completely archaic. In order not to use xrandr in 2022. Embarrassment. |
I find the built-in version worse, hence me no longer using 3dfx.
|
Describe the bug
When running Screamer Rally or GTA with the SDL1 binary (nightly build) on Linux 64bit, it runs fine in 3dfx Glide pass-through mode. But when using the SDL2 binary, I get a segfault when starting the game.
The last messages in the log:
The text was updated successfully, but these errors were encountered: