Bug 151186 - [UI] Create form wizard does not go back to subform screen (skips over it)
Summary: [UI] Create form wizard does not go back to subform screen (skips over it)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Forms
  Show dependency treegraph
 
Reported: 2022-09-26 11:23 UTC by Faisal
Modified: 2023-02-20 08:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Faisal 2022-09-26 11:23:29 UTC
Description:
Dialog screen gets stuck when pressing back button in create form wizard.

Steps to Reproduce:
1. Create a new database
2. Create two tables (it does not matter what they are called and what columns they have)
3. Click on Forms on the left sidebar
4. Click on "Use Wizard to Create Form..."
5. Click on ">>" button to put all fields into the form
6. Press Next
7. Check "Add subform"
8. Press Next
9. Select second table in the "Tables or queries" dropdown
10. Click on ">>" button to put all fields into the form
11. Press Next
12. Press Back
13. Press Back again

Actual Results:
The dialog screen stays at "Select the fields of your subform"

Expected Results:
The dialog screen should return to "Decide if you want to set up a subform" screen


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_US); UI: en-US
Calc: CL
Comment 1 Buovjaga 2023-02-20 08:56:01 UTC
I reproduce, also tried with older versions back to 5.2.

If you click Back a third time, it takes you to the first screen of the wizard, skipping over the subforms.

With a debug build, I see this in the console:

warn:toolkit:71609:71609:toolkit/source/helper/listenermultiplexer.cxx:128: ActionListenerMultiplexer::actionPerformed: caught an exception! com.sun.star.uno.RuntimeException message: "[jni_uno bridge error] UNO calling Java method actionPerformed: non-UNO exception occurred: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
java stack trace:
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        at com.sun.star.wizards.common.JavaTools.removeOutdatedFields(JavaTools.java:316)
        at com.sun.star.wizards.form.FormWizard.leaveStep(FormWizard.java:195)
        at com.sun.star.wizards.ui.WizardDialog.switchToStep(WizardDialog.java:300)
        at com.sun.star.wizards.ui.WizardDialog.gotoPreviousAvailableStep(WizardDialog.java:537)
        at com.sun.star.wizards.ui.WizardDialog.access$400(WizardDialog.java:46)
        at com.sun.star.wizards.ui.WizardDialog$3.actionPerformed(WizardDialog.java:394)
        at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
        at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
        at com.sun.proxy.$Proxy71.execute(Unknown Source)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:541)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:555)
        at com.sun.star.wizards.form.FormWizard.start(FormWizard.java:349)
        at com.sun.star.wizards.form.CallFormWizard$FormWizardImplementation.trigger(CallFormWizard.java:75)
        at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
        at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
        at com.sun.proxy.$Proxy71.execute(Unknown Source)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:541)
        at com.sun.star.wizards.ui.UnoDialog.executeDialog(UnoDialog.java:555)
        at com.sun.star.wizards.form.FormWizard.start(FormWizard.java:349)
        at com.sun.star.wizards.form.CallFormWizard$FormWizardImplementation.trigger(CallFormWizard.java:75)
        at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
        at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
        at com.sun.proxy.$Proxy33.setValue(Unknown Source)
        at com.sun.star.wizards.text.TextDocument.showStatusIndicator(TextDocument.java:179)
        at com.sun.star.wizards.text.TextDocument.<init>(TextDocument.java:132)
        at com.sun.star.wizards.form.FormDocument.<init>(FormDocument.java:64)
        at com.sun.star.wizards.form.FormWizard.start(FormWizard.java:336)
        at com.sun.star.wizards.form.CallFormWizard$FormWizardImplementation.trigger(CallFormWizard.java:75)
 at /home/tonttu/libreoffice/bridges/source/jni_uno/jni_uno2java.cxx:781"
warn:toolkit.helper:71609:71609:toolkit/source/helper/unowrapper.cxx:183: UnoWrapper::SetWindowInterface: there is already a WindowPeer/ComponentInterface for this VCL window
warn:vcl.schedule.deinit:71609:71609:vcl/source/app/scheduler.cxx:177: DeInit task: Timer a: 1 p: 1 drawinglayer ImpTimedRefDev destroy mpVirDev 180000ms (0x55a0abca42a0)
warn:vcl.schedule.deinit:71609:71609:vcl/source/app/scheduler.cxx:177: DeInit task: Timer a: 1 p: 1 graphic::Manager maSwapOutTimer 10000ms (0x7f010184a220)
warn:vcl.schedule.deinit:71609:71609:vcl/source/app/scheduler.cxx:198: DeInit active tasks: 2 (ignored: 0)

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e55713dffbe8d8eba18068f6c2af14c10b787220
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 20 February 2023