Many emulators reports "unexpected error occured. Received signal 11()"
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
Emulators (tested) x128, x64sc, xscpu64, xplus4 reports error "Unexpected error occured. Received signal 11()" - after confirm closes when they're calling with arguments containing file to mount or start. When running directly without arguments they're working correctly. VICE Nightly Build 32791 - first time appeared in Build 32788 (see ticket 870)
I created new ticket 'cause now it is not only with specific software - no matter of software type.
Please fix it 'cause VICE is unusable.
Miro
I forgot write important thing - in many I have drive 11 set as IEC device using folder.
Miro
how to exactly reproduce this? not that i could help, but i am just a bit nosy.
please attach the vice.ini you are using, and the logfile from when this crash is happening
In attachment is vice.ini.
Really is impossible to start Plus/4 - same error - I must to use YAPE, but what with C128?
Miro
your ini also fails in stable 3.0a
it's the joystick settings.
i get some weird entry then: JoyFire1Button=34361356
that value is always different but always absurdly high.
I was following your instructions, started default +4 and saved only your steps, then modified settings in main INI and started 3.0 and then revision 32792 : again the same!
Plus/4 works, but only with old VICE 2.4 config and works with released 3.0 - I'm testing nightly builds and with these works not since revision 32788.
INI files is used same for 3.0 and for nightly builds.
What now?
Miro
as always, start with NO config, then enable features one by one until you can reproduce the problem with least amount of changes to the default config. using random configs that have god knows what enabled doesnt help.
Miro, edit "vice.ini". Go to the "[PLUS4]" section. Change the "JoyDevice5=4" line. Change that "4" to "1". Then, you will be able to run xplus4.
Last edit: Greg King 2017-02-10
Hi Greg!
Really amazed, simple change to 1351 mouse?
I had there USB joystick... but no matter, except this Q: why it makes problem?
Thank you very much.
Miro
as soon as JoyDevice5 is set to an USB joystick and JoyFire1Button button is set, plus4 crashes.
i can leave JoyDevice5=4 if i delete JoyFire1Button=x
Run xplus4, open the "Settings" submenu, choose "Joystick settings", choose "Sidcart joystick settings...", then open the menu just under "Joystick in extra port #1". The first four lines in that menu are internal "devices". The other lines (Windows controllers) are external to VICE -- they can crash xplus4 when certain things happen. If one of the externals is saved to the settings file, then loading that settings file will crash xplus4. I managed to crash VICE also by choosing an external controller, then going back to the Sidcart joystick dialog, and choosing an internal device (that is, cancelling the external device).
I think that I found the bug. Two arrays have slots for only four devices; but, the Sidcart is a fifth device (other similar arrays have five slots). After I used this patch, I could not persuade xplus4 to crash:
thanks a lot mr. king, again.
after a quick test, it looks fine, no more signal 11, no more weird entries in the .ini
hopefully it does not break the other emus, but x64sc seems to work fine, too.
Fixes applied in r32827. Thanks!
When I wrote my patch, it didn't occur to me to look for a macro that defined that number (5). After seeing your patch, I looked. I found
in "joyport.h".
Really fixed, tested.
Thank you.
Miro
I didn't think to look for an already defined constant, I figured this was one of these cases where only integer literals are used.
Updated in r32844 to use the #define from joyport.h.
"src/arch/gtk3/joy-win32.c"
was copied from"src/arch/win32/joy.c"
after the first patch, but before the second patch. Therefore, it needs to get the second patch (macro constant from "joyport.h").Indeed, thanks for catching this.
Updated in r32856.