Skip to content

mplayer inside socket370/voodoo3 machine causes 86Box to segfault #4162

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

Closed
1 of 2 tasks
Randrianasulu opened this issue Feb 17, 2024 · 9 comments
Closed
1 of 2 tasks

Comments

@Randrianasulu
Copy link

What happened?

I downloaded Dynebolic 2.5.2:
https://distro.ibiblio.org/dynebolic/

And tried to run it in 86Box git compiled on i586 Slackware 15.0

It boots ok but if I try to use mplayer inside it like this:

mplayer -loop 0 -fixed-vo mf:///usr/share/backgrounds/dynebolic04.jpg

86Box on host segfaults.

Configuration file

[General]
vid_renderer = qt_opengl3
dpi_scale = 0
sound_gain = 18

[Machine]
machine = s370slm
cpu_family = celeron_mendocino
cpu_speed = 233333333
cpu_multi = 3,5
cpu_use_dynarec = 1
fpu_softfloat = 0
time_sync = local
fpu_type = internal
mem_size = 524288

[Video]
gfxcard = voodoo3_3k_agp

[Input devices]
mouse_type = ps2

[Sound]
fm_driver = nuked
sndcard = sb16

[Network]
net_01_link = 0
net_02_link = 0
net_03_link = 0
net_04_link = 0
net_01_card = ne2k
net_01_net_type = slirp

[Storage controllers]
hdc = ide_isa
cassette_mode = load

[NE2000 Compatible #1]
mac = c1:05:96

[Hard disks]
hdd_01_parameters = 63, 16, 1054, 0, ide
hdd_01_fn = QEMU/528mb_slackware-8.0.img
hdd_01_speed = 1994_4500rpm
hdd_01_ide_channel = 0:0

[Sound Blaster 16]
base = 0220
base401 = 0330
irq = 5
dma = 1
dma16 = 5
opl = 1
control_pc_speaker = 0
receive_input = 1
receive_input401 = 0

[Standard PS/2 Mouse]
buttons = 4

[Floppy and CD-ROM drives]
cdrom_01_parameters = 1, atapi
cdrom_01_ide_channel = 0:1
cdrom_01_host_drive = 200
cdrom_01_image_path = ISO/dyne-2.5.2.iso
cdrom_01_type = 86BOX_CD-ROM_1.00

Operating system

Slackware linux 15.0 i586

CPU

AMD FX(tm)-4300 Quad-Core Processor

86Box version

v4.1 git 80ed664

Build architecture

Linux - x86 (32-bit)

Build type

  • New recompiler
  • Debug build

Download source

I built 86Box myself (please tell us more about your build configuration)

Additional context

CMAKE_BUILD_TYPE                 Release
 CMAKE_INSTALL_PREFIX             /usr/local
 CPPTHREADS                       ON
 DEV_BRANCH                       OFF
 DINPUT                           OFF
 DISCORD                          OFF
 DYNAREC                          ON
 ECM_DIR                          ECM_DIR-NOTFOUND
 FLUIDSYNTH                       ON
 Freetype_DIR                     Freetype_DIR-NOTFOUND
 GDBSTUB                          OFF
 HAS_VDE                          HAS_VDE-NOTFOUND
 MINITRACE                        OFF
 MUNT                             ON
 NEW_DYNAREC                      ON
 OPENAL                           ON
 OpenAL_DIR                       OpenAL_DIR-NOTFOUND
 PNG_DIR                          PNG_DIR-NOTFOUND
 PkgConfig_DIR                    PkgConfig_DIR-NOTFOUND
 QT                               ON
 Qt5Core_DIR                      /usr/lib/cmake/Qt5Core
 Qt5Gui_DIR                       /usr/lib/cmake/Qt5Gui
 Qt5LinguistTools_DIR             /usr/lib/cmake/Qt5LinguistTools
 Qt5Network_DIR                   /usr/lib/cmake/Qt5Network
 Qt5OpenGL_DIR                    /usr/lib/cmake/Qt5OpenGL
 Qt5Widgets_DIR                   /usr/lib/cmake/Qt5Widgets
 Qt5_DIR                          /usr/lib/cmake/Qt5
 RELEASE                          ON
 RTMIDI                           OFF
 SDL2_DIR                         /usr/lib/cmake/SDL2
 STATIC_BUILD                     OFF
 USE_QT6                          OFF
 VNC                              OFF
 X11_xcb_icccm_INCLUDE_PATH       /usr/include
 X11_xcb_icccm_LIB                /usr/lib/libxcb-icccm.so
 X11_xcb_util_INCLUDE_PATH        /usr/include
 X11_xcb_util_LIB                 /usr/X11R7/lib/libxcb-util.so
 X11_xcb_xfixes_INCLUDE_PATH      /usr/include
 X11_xcb_xfixes_LIB               /usr/X11R7/lib/libxcb-xfixes.so
 ZLIB_DIR                         ZLIB_DIR-NOTFOUND

ccmake .. from build directory

@Randrianasulu
Copy link
Author

I recompiled 86Box wide build type RelWithDebInfo and it doesn't crash anymore BUT no video image inside vm (only green screen)

@Randrianasulu
Copy link
Author

dyne-mplayer-1
dyne-mplayer-2

screenshot while playing, screenshot right after

@Randrianasulu
Copy link
Author

By default this live CD starts at 16bpp, but switching it to 24bpp in /etc/X11/xorg.conf does not improve situation with video - still green screen.

@OBattler OBattler added this to the 86Box v4.2 milestone Feb 18, 2024
@cold-brewed
Copy link
Contributor

Could you retry this using the latest AppImage from our CI?

@Randrianasulu
Copy link
Author

Could you retry this using the latest AppImage from our CI?

~/Desktop/86Box-Linux-x86-b5668.AppImage
#
# 86Box v4.2 [build 5668] logfile, created 2024/04/02 20:34:14
#
# VM: guest
#
# Emulator path: /home/guest/Desktop/
# Userfiles path: /home/guest/
# ROM path: /home/guest/roms/
# ROM path: /home/guest/Desktop/roms/
# ROM path: /home/guest/.local/share/86Box/roms/
# ROM path: /tmp/.mount_86Box-ntMOsP/usr/local/share/86Box/roms/
# ROM path: /tmp/.mount_86Box-ntMOsP/usr/share/86Box/roms/
# ROM path: /usr/local/share/86Box/roms/
# ROM path: /usr/share/86Box/roms/
# Configuration file: /home/guest/86box.cfg
#

Qt: version 5.15.2, platform "xcb"
libpng warning: IDAT: Extra compressed data
libpng warning: IDAT: Extra compressed data
libpng warning: IDAT: Extra compressed data
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
vkDebug: ../src/nouveau/vulkan/nvk_physical_device.c:1107: 0: WARNING: NVK is not well-tested on GK208B, pass NVK_I_WANT_A_BROKEN_VULKAN_DRIVER=1 if you know what you're doing. (VK_ERROR_INCOMPATIBLE_DRIVER)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Falling back to using screens root_visual.
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
No XVisualInfo for format QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
Falling back to using screens root_visual.
[ALSOFT] (WW) Failed to load libpipewire-0.3.so.0
[ALSOFT] (WW) Failed to initialize backend "pipewire"
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile)
Could not initialize GLX
Аварийный останов

32-bit appimage ...

@cold-brewed
Copy link
Contributor

Thanks. One thing I noticed right away: The specs for your emulated system (Mendocino, 233MHz, Voodoo 3 video) are way too much for your host CPU. Emulating a PII 233 requires a very high-end host CPU. The voodoo 3 increases the host demands even further.

You can (and will) have all sorts of issues when you try to run a system that is faster than your host CPU can handle. To start, the best thing you could do is lower the specs on the emulated system.

Based on your host CPU, you would probably want to start around 486DX4 100 MHz. If that works out there's a chance you could push it to a Pentium 60.

As for the AppImage: it seems that it is failing when trying to initialize GL. After you've adjusted the vm specs, could you try again with software rendering enabled? To do that you'll need to remove the following line from your config file in the General section:

vid_renderer = qt_opengl3

and then launch 86Box again.

@Randrianasulu
Copy link
Author

yeah, commenting out vid_renderer = qt_opengl3 in 86Box.cfg fixed appimage start. Unfortunately, this specific disk (or at least some programs including X server) seems to require i686 - X server does not start if I try i586 based machine
`

@Randrianasulu
Copy link
Author

appimage (old dynarec) does not mplayer window with image (on xv video output), too. Only green screen with few lines like with self-compiled 86box screenshot above. No crash (this is good).

@OBattler OBattler mentioned this issue May 23, 2024
6 tasks
@OBattler
Copy link
Member

Closing because it's being tracked in #4483 .

@OBattler OBattler closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants