Menu

#1538 x64 on Raspberry Pi crashes in configure keyset

v3.5
closed-fixed
nobody
None
GTK3
x64
2021-09-05
2021-09-04
No

Any attempt to define a keyset (Settings>settings...>results>input devices>Joystick>Configure keyset A) results in a core dump. I reproduced this with x64 in vice 3.5 on Manjaro for Raspberrypi (arm64), both the repository version and a self compiled version.
I got the following stacktrace with gdb:

0 0x0000ffffa74c34e4 in g_type_check_instance_cast () at /usr/lib/libgobject-2.0.so.0

1 0x0000aaaab51d7b88 in on_button_toggled (button=0xaaaaf3562360, data=<optimized out="">) at keysetdialog.c:152</optimized>

2 0x0000ffffa749e110 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0

3 0x0000ffffa74b3814 in () at /usr/lib/libgobject-2.0.so.0

4 0x0000ffffa74ba23c in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

5 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

6 0x0000ffffa7f67a18 in () at /usr/lib/libgtk-3.so.0

7 0x0000ffffa749c4f4 in () at /usr/lib/libgobject-2.0.so.0

8 0x0000ffffa749e378 in () at /usr/lib/libgobject-2.0.so.0

9 0x0000ffffa74ba684 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

10 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

11 0x0000ffffa7cd4774 in () at /usr/lib/libgtk-3.so.0

12 0x0000ffffa749e110 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0

13 0x0000ffffa74b3124 in () at /usr/lib/libgobject-2.0.so.0

14 0x0000ffffa74ba23c in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

15 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

16 0x0000ffffa7cd236c in () at /usr/lib/libgtk-3.so.0

17 0x0000ffffa7c7dfc0 in () at /usr/lib/libgtk-3.so.0

18 0x0000ffffa749e378 in () at /usr/lib/libgobject-2.0.so.0

19 0x0000ffffa74ba684 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

20 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

21 0x0000ffffa7dd36cc in () at /usr/lib/libgtk-3.so.0

22 0x0000ffffa74a1ab4 in g_cclosure_marshal_VOID__BOXEDv () at /usr/lib/libgobject-2.0.so.0

23 0x0000ffffa749c4f4 in () at /usr/lib/libgobject-2.0.so.0

24 0x0000ffffa749e378 in () at /usr/lib/libgobject-2.0.so.0

25 0x0000ffffa74ba684 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

26 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

27 0x0000ffffa7dcf874 in () at /usr/lib/libgtk-3.so.0

28 0x0000ffffa7dd1590 in () at /usr/lib/libgtk-3.so.0

29 0x0000ffffa7dd5594 in () at /usr/lib/libgtk-3.so.0

30 0x0000ffffa7d8857c in gtk_event_controller_handle_event () at /usr/lib/libgtk-3.so.0

31 0x0000ffffa7fcc814 in () at /usr/lib/libgtk-3.so.0

32 0x0000ffffa7c75e34 in () at /usr/lib/libgtk-3.so.0

33 0x0000ffffa749c4f4 in () at /usr/lib/libgobject-2.0.so.0

34 0x0000ffffa749e378 in () at /usr/lib/libgobject-2.0.so.0

35 0x0000ffffa74b9a24 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0

36 0x0000ffffa74ba8fc in g_signal_emit () at /usr/lib/libgobject-2.0.so.0

37 0x0000ffffa7fce9d0 in () at /usr/lib/libgtk-3.so.0

38 0x0000ffffa7e2ddf4 in () at /usr/lib/libgtk-3.so.0

39 0x0000ffffa7e3017c in gtk_main_do_event () at /usr/lib/libgtk-3.so.0

40 0x0000ffffa7adeaac in () at /usr/lib/libgdk-3.so.0

41 0x0000ffffa7b49370 in () at /usr/lib/libgdk-3.so.0

42 0x0000ffffa7384560 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0

43 0x0000ffffa73848ac in () at /usr/lib/libglib-2.0.so.0

44 0x0000ffffa7384cb8 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0

--Type <ret> for more, q to quit, c to continue without paging--c</ret>

45 0x0000ffffa7e2eed4 in gtk_main () at /usr/lib/libgtk-3.so.0

46 0x0000aaaab4fedf14 in main (argc=<optimized out="">, argv=0xffffe7836968) at gtk3main.c:90</optimized>

(gdb)

Stdout of x64:

$ x64
ffmpeg avformat lib has version 00003a, VICE expects 00003a: major matches
ffmpeg avcodec lib has version 00003a, VICE expects 00003a: major matches
ffmpeg avutil lib has version 000038, VICE expects 000038: major matches
ffmpeg swscale lib has version 000005, VICE expects 000005: major matches
ffmpeg swresample lib has version 000003, VICE expects 000003: major matches
Reading configuration file `/home/balthes/.config/vice/vicerc'.

*** VICE Version 3.5 ***

Welcome to x64, the free portable C64 Emulator.

Current VICE team members:
Martin Pottendorfer, Marco van den Heuvel, Fabrizio Gennari, Groepaz,
Errol Smith, Ingo Korb, Olaf Seibert, Marcus Sutton, Kajtar Zsolt, AreaScout,
Bas Wassink, Michael C. Martin, Christopher Phillips, David Hogan,
Empathic Qubit, Roberto Muscedere.

This is free software with ABSOLUTELY NO WARRANTY.
See the "About VICE" command for more info.

Loading system file /usr/share/vice/C64/kernal'. Loading system file/usr/share/vice/C64/basic'.
Loading system file /usr/share/vice/C64/chargen'. MPS-803: Error - Could not load MPS-803 charset 'mps803'. Palette: Error - Palette not found:mps803.vpl'.
MPS-803: Error - Cannot load palette file mps803.vpl'. NL10: Error - Could not load NL-10 ROM file 'nl10-cbm'. Palette: Error - Palette not found:1520.vpl'.
plot1520: Error - Cannot load palette file `1520.vpl'.
DriveROM: Error - 1540 ROM image not found. Hardware-level 1540 emulation is not available.
DriveROM: Error - 1541 ROM image not found. Hardware-level 1541 emulation is not available.
DriveROM: Error - 1541-II ROM image not found. Hardware-level 1541-II emulation is not available.
DriveROM: Error - 1570 ROM image not found. Hardware-level 1570 emulation is not available.
DriveROM: Error - 1571 ROM image not found. Hardware-level 1571 emulation is not available.
DriveROM: Error - 1581 ROM image not found. Hardware-level 1581 emulation is not available.
DriveROM: Error - 2000 ROM image not found. Hardware-level 2000 emulation is not available.
DriveROM: Error - 4000 ROM image not found. Hardware-level 4000 emulation is not available.
DriveROM: Error - CMDHD ROM image not found. Hardware-level CMDHD emulation is not available.
DriveROM: Error - 2031 ROM image not found. Hardware-level 2031 emulation is not available.
DriveROM: Error - 2040 ROM image not found. Hardware-level 2040 emulation is not available.
DriveROM: Error - 3040 ROM image not found. Hardware-level 3040 emulation is not available.
DriveROM: Error - 4040 ROM image not found. Hardware-level 4040 emulation is not available.
DriveROM: Error - 1001/8050/8250 ROM image not found. Hardware-level 1001/8050/8250 emulation is not available.
DriveROM: Error - D9090/9060 ROM image not found. Hardware-level D9090/9060 emulation is not available.
Drive: Finished loading ROM images.
using GTK3 backend: OpenGL
GLX version: 1.4
Getting matching framebuffer configs
Found 64 matching FB configs.
Error - Failed to obtain an OpenGL 3.2 context, requesting a legacy context

Obtained OpenGL 2.1 context
Vendor: Broadcom
Renderer: V3D 4.2
Version: 2.1 Mesa 21.1.6
Legacy: yes
Direct GLX rendering context obtained
Swap control support. glXSwapIntervalMESA: 1 glXSwapIntervalEXT: 1 glXSwapIntervalSGI: 1
Created render thread 0
Render thread initialised
Sound: Available sound devices: pulse alsa dummy fs dump wav voc iff aiff soundmovie
Joystick: Linux joystick interface initialization...
Joystick: Warning - Cannot open joystick device /dev/input/js0'. Joystick: Warning - Cannot open joystick device/dev/input/js1'.
Joystick: Warning - Cannot open joystick device /dev/input/js2'. Joystick: Warning - Cannot open joystick device/dev/input/js3'.
Joystick: Warning - Cannot open joystick device /dev/input/js4'. Joystick: Warning - Cannot open joystick device/dev/input/js5'.
Joystick: Warning - Cannot open joystick device /dev/input/js6'. Joystick: Warning - Cannot open joystick device/dev/input/js7'.
Keyboard: Loading keymap /usr/share/vice/C64/gtk3_sym_de.vkm'. Main CPU: starting at ($FFFC). Main CPU: RESET. Sound: Opened devicepulse', speed 44100Hz, fragment size 2,90ms, buffer size 26,12ms
reSID: MOS8580, filter on, sampling rate 44100Hz - resampling, pass to 19845Hz
Warning - sync is far too late, resetting sync
Speicherzugriffsfehler (Speicherabzug geschrieben)
$

Discussion

  • gpz

    gpz - 2021-09-04

    could you try compiling from svn head revision?

     
  • compyx

    compyx - 2021-09-04

    I tried x64 from svn trunk on my pi400, and cannot reproduce the bug. I suspect this bug was fixed some time ago.

     
  • Balthasar Nebel

    Balthasar Nebel - 2021-09-05

    I compiled from head and it solved the problem. You can close the ticket. Thanks a lot!

     
  • compyx

    compyx - 2021-09-05
    • status: open --> closed-fixed
     
  • compyx

    compyx - 2021-09-05

    Alright, good to hear. Closing.

     

Log in to post a comment.

MongoDB Logo MongoDB