P.S. Is there any timeline for getting the code rewritten? Using CFLAGS="-Werror=strict-aliasing" finds a bunch of issues, and could be incrementally fixed.
Important compiler safety options are only used if CFLAGS isn't set
Great news! Thank you so much for continuing to maintain it. Ciao! pinHP http://pinhp-image.com
AdvanceMAME v3.10 has been released at : http://www.advancemame.it AdvanceMAME/MESS are unofficial MAME/MESS versions with an advanced video support for helping the use with TVs, Arcade monitors, PC monitors and LCD screens. AdvanceMENU is a frontend for the AdvanceMAME, AdvanceMESS, MAME, MESS and any other emulator. They run in Linux, Mac OS X, DOS, Windows and in all the other platforms supported by the SDL library. This is the list of changes: * Alcon / Slap Fight MCU hookup (#116) [arcadez2003]...
https://sourceforge.net/p/advancemame/patches/24/ Andrea fixed the issue
thank you very much Andrea. Problem solved ! Grazie mille
Advmame crashes with Nvidia drivers (linux)
Finally I tried with a NVidea board and I can replicate the issue. You can workaround it with the -nosmp option when starting advmame.
what pins of the VGA connector https://en.wikipedia.org/wiki/VGA_connector AdvanceMame uses for 15KHz ? In particular for sync: only pin 13 is used as composite sync? or 14 (vsync) + 13 (hsync)? If both are possible (my arcade monitor supports both) see video connector in attachment. is best separated vsync hsync? or only 13 (composite) is used anyways?
It sounds like this would be your perfect match: http://pinhp-image.com
I'm about to start a new build with a 15KHz 28" arcade monitor, ad I've some questions: 1) in past (20 year ago :-) ) I made a cab with AdvMame/Menu, but today does it still makes sense? Everybody is using Batocera with 15KHz script. If I'm ok with only mame and 0.106 roms, AdvMame has someting more than Batocera? 2) which linux kernel / distro is advisable to use for a new AdvMame build? I usually work with debian 3) on hardware side I could use: - an Athlon K7 with AGP video card Geforce2 32Mb...
Support using system libdeflate [patch]
New versions of 7zip compress better than zopfli for test for %%i in (*.gba) do ( "7za.exe" a -tzip -mm=Deflate -mfb=258 -mpass=15 "%%~ni.zip" "%%i" )
New versions of 7zip compress better than zopfli for test for %%i in (*.nes) do ( "7za.exe" a -tzip -mm=Deflate -mfb=258 -mpass=15 "%%~ni.zip" "%%i" )
New versions of 7zip compress better than zopfli
tested zip archive (contains advzip itself)
Hi, I have tried to use the DOS build of advzip v2.5 to repack an archive but the tool stopped on an assert. Screenshot and archive attached.
I can confirm that it doesn't concern Nvidia drivers because it is the same with Nouveau drivers and that it doesn't concern Xorg because it happens with wayland too. The games work normally the crash occurs only if you press TAB and start OSD
I have a problem, if I lock the menu I can't close the advmenu. I already edited the misc_exit with all possible options, but it didn't solve it. Is there any alternative to close the emulator even with the menu locked? Or is there any way I can change the key that opens the menu, to make it difficult to access?
I can confirm that I also have exactly the same issue. Slightly diff os as well. Edit(This was on an intel computer with intel integrated graphics 4400) Operating System: Ubuntu 23.04 Kernel: Linux 6.2.0-20-generic Architecture: x86-64 Edit: Tried on a separate amd computer with a rx 580. The amd computer is on a different kernel as well. Operating System: Linux Mint 21.1 Kernel: Linux 5.15.0-73-generic Architecture: x86-64 Same issue.
I can confirm that I also have exactly the same issue. Slightly diff os as well. Operating System: Ubuntu 23.04 Kernel: Linux 6.2.0-20-generic Architecture: x86-64
Windows binary does not have "vector_aux_renderer"
I tried to force SDL_VIDEODRIVER="wayland" (as per sdl2 doc) and advmame says it is not supported, so wondering if it is set to use older sdl version? Still doesn't explain why sdl is working for actual game play but not OSD. Might have to wait for Andrea to chime in
Yes, I can confirm that it concerns the OSD because I also have the same problem with the esc key. I know the error encountered by the Arch guys and I can confirm that it is most likely the same, but that it is not related to Xorg because even using wayland the problem remains the same
Interesting..... I am dealing with an issue that whenever the (OSD) ON DISPLAY MENU is visible no input is accepted so the reason for the crash is possibly just due to rendering the menu. This OSD is visible with the terms agreement if you just launch a game via command line and is bypassed when you launch it through advmenu... does it crash if you just hit ESC in game too? willing to bet it does and with the same message. You may have saved me some time... and even though I am not getting that error...
I updated the drivers to version 530 but even removing the library you told me nothing changed and I still get the same error. if I start AdvanceMame from the terminal it gives me this error: advmame gberet AdvanceMAME - Copyright (C) 1999-2018 by Andrea Mazzoleni MAME - Copyright (C) 1997-2003 by Nicola Salmoria and the MAME Team X Error of failed request: GLXBadContextTag Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request:...
funny, I just removed the libnvidia-gl-530:i386 and I do not get that error anymore...so it has to be something else I did... let me know if the above works for you
so I know that the Nvidia driver absolutely trashes the GL libs, The only other thing I did was updated to 530, I updated to 530 tried and still got that same error I then reinstalled some of the libglxxx packages still didn't work I then installed libnvidia-gl-530:i386 and it worked.... Maybe try these in order then 1. update to 530 2. reinstall libgl packages ie libgl1, libgl-mesa-glx, libglfw3-wayland etc. 3. then reinstall libnvidia-gl-530 as well as the server.... I am running latest version...
Sorry. The library is already installed and doesn't work
advmame not accepting inpu/hangs on submenu
you can fix this error by installing i386 version of GLX sudo apt install libnvidia-gl-xxx:i386 replace the xxx with your version of nvidia driver. this will only get you so far though as I have to post another issue
Advmame crashes with Nvidia drivers (linux)
bug still present,please tell me how to fix it
Advmame crashes with Nvidia drivers (linux)
Crash still occurs with "display_restore no" added to the .rc file in my case, but I was still able to get a log with -logsync, attached below. The log appears to end normally in spite of the crash, but you can see for yourself whether there's anything unexpected. Just to see what would happen, I then rebuilt with --disable-fb (in addition to --enable-debug, --enable-sdl2, --disable-sdl, --disable-vc. After removing a couple of now "unknown options" in the .rc, the emulator still runs in SMP albeit...
Hi Andy, With the --disable-vc I'm able to replicate the issue. I'm able to work around it using the option -nodisplay_restore that tells AdvanceMAME to not restore the video mode at the exit. But take care that AdvanceMAME still uses the framebuffer, unless you build with --disable-fb. It just uses it without the VideoCore interface. So, I'm not sure that you are really using the SDL. If even with -nodisplay_restore you have problem, try also with -logsync that writes the advmame.log file. Attach...
Spent some time reproducin the bug again today. Here's what I encountered: When retropie determines that you're running on a Pi4 it compiles the git version with the following configure flags: --enable-sdl2 --disable-sdl --disable-vc because it expects the PI4 to use the DRM/KMS video driver, not videocore. So I built from the github master with those options plus --enable-debug. (Without those options you get an error from advmame when running from the command line that you need to run under a window...
The situation is that if Advmame is started in SMP mode on the Pi4 in the RetroPie environment (I.e. launched by command line via EmulationStation) then when you go to exit the emulator it crashes during exit at some point before any config file changes made during the session are are written out. Any ROM, doesn't matter which one. RetroPie does not use any windowing system, it relies on the DRM/KMS drivers as the bug states to run EmulationStation, and the Advmame config must use SDL. Happy to provide...
Yes, I’ve used the git version and enabled debug but for some reason that SIGSEV is all that is reported if I remember correctly. Stack corrupted? I did try to debug it further but didn't get very far. I'll try again and make sure.
Yes, I’ve used the git version and enabled debug but for some reason that SIGSEV is all that is reported if I remember correctly. Stack corrupted? I did try to debug it further but didn't get very far. I'll try again and make sure. Andy Silverman Principal Program Manager, Azure Hardware Strategic Planning From: bugs@advancemame.p.re.sourceforge.net bugs@advancemame.p.re.sourceforge.net on behalf of Andrea Mazzoleni amadvance@users.sourceforge.net Sent: Thursday, March 23, 2023 11:05:45 PM To: [advancemame:bugs]...
Hi Andy, Have you tried the git version of AdvanceMAME ? It has changes specific for the Raspberry 4. You have to build if from source. Also, try to run AdvanceMAME directly from the command line and not from EmulationStation, and check if the problem is still here. When building AdvanceMAME, you can also use the ./configure --enable-debug, that will report more information after a crash. That info will help to get an understanding of the problem. Ciao, Andrea
The situation is that if Advmame is started in SMP mode on the Pi4 in the RetroPie environment (I.e. launched by command line via EmulationStation) then when you go to exit the emulator it crashes during exit at some point before any config file changes made during the session are are written out. Any ROM, doesn't matter which one. RetroPie does not use any windowing system, it relies on the DRM/KMS drivers as the bug states to run EmulationStation, and the Advmame config must use SDL. Happy to provide...
Hi Andy I tried on my Raspberry 4, and it looks like working well. Can you replicate the issue with the git version of AdvanceMAME on a standard Raspbian ? If yes, in what condition exactly ? I tried from both cmdline, window environment fullscreen, and also in a window (-output window), but everything looks like working. Ciao, Andrea
Hi Andy I tried on my Raspberry 4, and it looks like working well. Can you replicate the issue with the git version of AdvanceMAME on a standard Raspbian ? If yes, in what condition exactly ? I tried from both cmdline, window environment fullscreen, and also in a windows, but everything looks like working. Ciao, Andrea
advzip doesn't offer option to recompress with `store` only when it's smaller without trying another compression
The following is the case of running errors on Manjaro Linux 22.0.0, Sikaris: root / usr local bin advmame wof AdvanceMAME - Copyright (C) 1999-2018 by Andrea Mazzoleni MAME - Copyright (C) 1997-2003 by Nicola Salmoria and the MAME Team advmame: ../mesa-22.3.3/src/util/u_queue.h:92: util_queue_fence_signal: Assertion `val != 0' failed.
Hi guys, I don't have time to add new features or handle minor issues in the project, and opening the Gihub issue will give a wrong message. Ciao, Andrea
Finally got it : F10 is not to go to a specific game type category but to assign the current game to a different type 😅 So I saw that there is ins and supp to go to previous/next category but is there a way to go directly to a specific category thank to a menu ? A workaround : to display only one type of game, press start to display the menu -> Listing -> Types , here unselect all types then press A on the type you want to display. But I would like to make the same without removing all my selected...
Feature Request : restore Game History - history.dat in AdvanceMAME ?
I agree , this repo is not updated anymore, please open issues on github ;)
Little AdvanceMenu bug with "Select Game Type" feature
It seems that history.dat is not used since AdvanceMAME Version 0.100.0 2005/10 but the file is still present in releases. There are odl questions about it : https://sourceforge.net/p/advancemame/discussion/313511/thread/beea7185/ https://sourceforge.net/p/advancemame/discussion/313511/thread/2af94de2/ ... but no answers. I see in release notes : "Removed the misc_historyfile' andmisc_infofile' like the official version. " I think it's really a shame because this feature is really interesting. Can't...
Hi, Little AdvanceMenu bug with "Select Game Type" feature, to reproduce : "Select Sort Mode" -> Type Then change the current type with "Select Game Type" option : each time the current selected game is moved to the selected game type. For example you are Tetris , you select Race games type and now you'll see Tetris in Race game type. To illustrate : https://www.dropbox.com/s/p4labbx0ct35vpj/AdvanceMenu%20bug.mp4 Thank you.
Hi, I use AdvanceMenu on Miyoo Mini : a little linux handheld with SDL . The results are impressive ! I've been very surprised to see that AdvanceMenu is able to manage any emulator thanks to the emulator "generic" option and I was a lot surprised to see how much simultaneous video preview it can display on this low power device. I have a problem due to the fact that the Miyoo Mini can display only one SDL application at time : so when AdvanceMenu run AdvanceMame it creates a black screen. Do you...
Hi, I use AdvanceMenu on Miyoo Mini : a little linux handheld with SDL . The results are impressive ! I've been very surprised to see that AdvanceMenu is able to manage any emulator thanks to the emulator "generic" option and I was a lot surprised to see how much simultaneous video preview it can display on this low power device. I have a problem due to the fact that the Miyoo Mini can display only one SDL application at time : so when AdvanceMenu run AdvanceMame it creates a black screen. Do you...
Hi, I have created a Windows script (powershell) to create a mng file from a mp4 video. I think that I'm not able to have as good compression than advancesnap-1.0-pack but at least it should allow you to automate the conversion quite easily ;) it requires ffmpeg.exe and advmng.exe to works. $video_folder = "videos" $done_folder = "videos\done" New-Item -ItemType Directory -Path $done_folder -Force New-Item -ItemType Directory -Path mng -Force # Downloading ffmpeg if necessary if (-not (Test-Path...
Hi, I'm running advancemame-3.9 on Gentoo, built with the USE flags ncurses truetype -alsa -fbcon -oss -slang When my rumblepad is plugged in, advmenu crashes. When the rumblepad is NOT plugged in, the program starts as normal advmenu --log AdvanceMENU - Copyright (C) 1999-2018 by Andrea Mazzoleni stack smashing detected : terminated Signal SIGABRT[fffffffah], from code at (nil) Compiled Nov 3 2022, 16:44:24 Stack backtrace: [(nil)] advmenu(+0x1ac7b1) [0x558d7e55a7b1] /lib64/libc.so.6(+0x378c0) [0x7fbd47d5b8c0]...
Thank you for the quick investigation and fix.
Thank you for the quick investigation and fix.
Thank you for the quick investigation and fix.
Thank you for the quick investigation and fix.
Thank you for the quick investigation and fix.
AdvanceCOMP v2.4 has been released at : http://advancemame.sourceforge.net AdvanceCOMP is a collection of recompression utilities for your .ZIP archives, .PNG snapshots, .MNG video clips and .GZ files. It runs in Linux, Mac OS X, DOS, Windows and in all the other Unix like platforms. This is the list of changes: Fix CVE-2022-35014, CVE-2022-35015, CVE-2022-35016, CVE-2022-35017, CVE-2022-35018, CVE-2022-35019, CVE-2022-35020 Update libdeflate to 1.14
CVE-2022-35020 advancecomp: heap buffer overflow via the component inflate()
Fixed in github with the commit "Check size of the delta buffer" Here the check of all bugs: am@redstar:/mnt/bag/home/am/data/src/advancecomp/FIXED (master)$ ../advmng -z id0_command_advmng_-z_SEGV_sample_No.1 Corrupt compressed data on id0_command_advmng_-z_SEGV_sample_No.1 [at void throw_png_error():pngex.h:37] am@redstar:/mnt/bag/home/am/data/src/advancecomp/FIXED (master)$ ../advmng -z id2_command_advmng_-z_heap-buffer-overflow_sample_No.1 Corrupt compressed data in IDAT chunk on id2_command_advmng_-z_heap-buffer-overflow_sample_No.1...
CVE-2022-35018 advancecomp: SEGV via invalid read memory access
Fixed in github with the commit "Check move chunk"
CVE-2022-35019 advancecomp: SEGV via invalid write memory access
Fixed in github with the commit "Check move chunk"
CVE-2022-35017 advancecomp: heap-buffer-overflow in mng_delta_addition() in mng.c
Fixed in github with commit "Check move chunk"
CVE-2022-35016 advancecomp: heap buffer overflow in data_dup() in data.cc
Fixed in github with commit "Check for truncated end of central directory"
CVE-2022-35015 advancecomp: heap-buffer-overflow in le_uint32_read() in lib/endianrw.h
Fixed in github with commit "Check for truncated end of central directory"
CVE-2022-35014 advancecomp: SEGV via invalid read address
Fixed in github with commit "Fix not initialized pointer"
CVE-2022-35014 advancecomp: SEGV via invalid read address
CVE-2022-35015 advancecomp: heap-buffer-overflow in le_uint32_read() in lib/endianrw.h
CVE-2022-35016 advancecomp: heap buffer overflow in data_dup() in data.cc
CVE-2022-35017 advancecomp: heap-buffer-overflow in mng_delta_addition() in mng.c
CVE-2022-35019 advancecomp: SEGV via invalid write memory access
CVE-2022-35018 advancecomp: SEGV via invalid read memory access
CVE-2022-35020 advancecomp: heap buffer overflow via the component inflate()
sudo apt-get install libncurses5-dev libncursesw5-dev ./configure
A long while ago I remember adjusting at least the positions in-game, like done in the advv test screen. Have found nothing in the docs...perhaps I have a memory of using the arrow keys to advance through the available modes for that game ?
It has no 'black bars'. It has space not displayed in the field. Given your unknown resolution, and given your unknowing of what resolution means regarding the games and your display, and your apparent inability to read the docs...or even play around in the tab menu>video......it seems you will have to suffer with it. I will tell you this: MAME and AdvanceMAME default to full screen display, regardless of orientation. (73 words - fnord)
That worked!! Thanks a bunch! :)
It's something that should be fixed in the git code. You can get it from: https://github.com/amadvance/advancemame/ Ciao, Andrea
gcc 11.2.0
Which gcc version is used ? You can get it with gcc --version
I got the following when trying to compile AdvanceMAME on a fresh install of Linux Mint 21 (beta): obj/mame/linux/blend/machine/pit8253.o obj/mame/linux/blend/machine/scsicd.o obj/mame/linux/blend/machine/scsihd.o obj/mame/linux/blend/machine/segacrpt.o obj/mame/linux/blend/machine/smc91c9x.o obj/mame/linux/blend/machine/ticket.o obj/mame/linux/blend/machine/timekpr.o obj/mame/linux/blend/machine/tmp68301.o obj/mame/linux/blend/machine/z80ctc.o obj/mame/linux/blend/machine/z80pio.o obj/mame/linux/blend/machine/z80sio.o...
The same happens if the only file in the archive is a directory: advzip fails and the to-be-recompressed zip is deleted: $ mkdir d $ zip d.zip d $ ls -1 d d.zip $ zipinfo -1 d.zip d/ $ advzip -z d.zip Failed stat file d.zip on d.zip [at unsigned int file_size(const string&):file.cc:199] $ ls -1 d
The same happens when re-compressing an archive if the archive only stores one empty file, it even deletes the to-be-compressed archive: $ touch a $ zip z.zip a adding: a (stored 0%) $ ls -1 a z.zip $ advzip -z z.zip Failed stat file z.zip on z.zip [at unsigned int file_size(const string&):file.cc:199] $ ls -1 a $ touch a $ echo b > b $ zip z.zip a b adding: a (stored 0%) adding: b (stored 0%) $ ls -1 a b z.zip $ advzip -z z.zip 284 180 63% z.zip 284 180 63% $ ls -1 a b z.zip $ zipinfo -1 z.zip a...
The bug isn't entirely fixed. Empty file is still not added to the archive if that's the only file to add to the archive: $ touch a $ advzip -a z.zip a a $ ls -1 a $ touch a $ echo b > b $ advzip -a z.zip a b a b $ ls -1 a b z.zip $ zipinfo -1 z.zip a b
The bug isn't entirely fixed. Empty file is still not added to the archive if that's the only file to add to the archive: $ touch a $ advzip -a z.zip a a $ ls -1 a $ touch a $ echo b > b $ advzip -a z.zip a b a b $ ls -1 a b z.zip
This may be related to: https://sourceforge.net/p/advancemame/bugs/258/
No bites? Here is some more info which hopefully may ring some bells. When AdvanceMAME starts up, we get this error: Jul 03 03:19:51 imx7dsabresd systemd[1]: Started Autostart MAME arcade emulator startup script. Jul 03 03:19:52 imx7dsabresd advmame[624]: Error creating the $home directory /data_store/stuart/personal/imx7-yocto-mame/build/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/advancemame/3.9+gitAUTOINC+384e646234-r0/image/usr/share/advance. As you can see, the executable is trying to...
I have recently built a Linux distribution with Yocto and integrated the meta-game-emulators layer (https://github.com/sergioprado/meta-game-emulators). It builds and runs fine, except for one small detail. It seems like somehow the "home" directory gets compiled-into the build. So when advmame runs, it tries to put the settings, etc. , into what it thinks is the home or base folder based on the build system (which is a very long path deep inside the Yocto build environment), and not a reasonable...
advancecomp fails to build with GCC 11