Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[zeditor] Freeze when selecting MIDI

0 replies · 886 views · Started 19 February 2024

Steps to recreate:

[LIST=1]
[*]Quest->Audio->MIDIs
[*]Click 'Edit' in Select music window
[*]Select music window is dismissed and editor becomes unresponsive
[/LIST]

ZC Editor
Version: 2.55 Nightly (Alpha 119/120)
Tag: 2.55.0 Nightly (Alpha 119/120)
Build Date: 19th February, 2024 at @ 14:57:04 EST
Dev Signoff: UNSIGNED
QR:##B343AFAF01C281A00DA58A4211A608DFDF080001362A0410FC5306FE2A274100381B02044031300000065824C00000000000D0032301090000000000000000000000000000000000000000000000000034866C3140320200000000000000000000000000##

onMidis() in zquest.cpp runs when clicking MIDIs in step 1. Then the call to do_zqdialog immediately following the call to go() creates the "Select music" window.

The button labels on the Select music window come from the selectmidi_dlg array in zquest.cpp

This while loop appears to be degenerating into an infinite loop:


while(update_dialog(p))
{
custom_vsync();
// text_mode(vc(1));
textprintf_ex(screen,get_zc_font(font_lfont_l),editmidi_dlg[0].x+int32_t(193*1.5),editmidi_dlg[0].y+int32_t(58*1.5),jwin_pal[jcBOXFG],jwin_pal[jcBOX],"%-5ld",midi_pos);
}

control never seems to flow down to the rest of edit_tune(int32_t i), the next non-blank line of which is:


ret = shutdown_dialog(p);