Author Topic: Bug in Ares editor  (Read 136 times)

0 Members and 1 Guest are viewing this topic.

Offline Macafyc

  • VIP
  • Jr. Member
  • *
  • Posts: 6
    • View Profile
Bug in Ares editor
« on: April 01, 2019, 09:13:27 »
Hello.

I don't know if this is the right place to report a bug. If not I'm sorry for the inconvenience.
I have used the template form you provide:

Give us a summary of the bug: Different behaviour in Ares depending on the way you open the editor. Doing from view menu everything works correctly, but using the editor from Ares toolbar, an unexpected error is triggered when adding or editing in Parents & Siblings, Spouse(s) & Child(ren) or Gallery tabs. Same problem in Events-Gallery tab.

Which Operating System? : Both Windows and Linux

Which version of the O.S.? : Windows 10, Linux Ubuntu 14.04

Which version of Ancestris? : 0.10beta

What is your Java version? :  java 1.8.0_191-b12

What are the windows opened on your Ancestris application? : the Tree view

This bug is related to the application itself or a plugin? : a plugin

If it's about a plugin, which plugin? : Ares editor

If you use the beta version, do you update Ancestris each time a new version is available? : yes

This bug appeared right after an update (you didn't get it before, and right now, you have it) : yes

Which version of the module is concerned (check the "Help - About" dialog box) : Ares 0.10.0.9805. The last plugin version that worked right was 0.10.0.9797

What is the process that makes the bug to appear (the more details  you can give, the better it is) :
1. Fresh install of Ancestris 0.10.0.9801
2. Open, for instance, Kennedy genealogy.
3. From view menu, toolbars, activate Ares editor.
4. Select an individual in tree view.
5. From toolbar click "Edit current individual" icon. Ares editor window opens.
6. For instance go to Gallery tab and select an image.
7. Click "Edit the selected multimedia object" icon. An exception is triggered.

Backtrace in the log file :
java.lang.NullPointerException
   at ancestris.modules.editors.genealogyeditor.panels.MultimediaObjectCitationsTablePanel.editMMObjecButtonActionPerformed(MultimediaObjectCitationsTablePanel.java:251)
   at ancestris.modules.editors.genealogyeditor.panels.MultimediaObjectCitationsTablePanel.access$300(MultimediaObjectCitationsTablePanel.java:23)
   at ancestris.modules.editors.genealogyeditor.panels.MultimediaObjectCitationsTablePanel$3.actionPerformed(MultimediaObjectCitationsTablePanel.java:99)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.WaitDispatchSupport$2.run(Unknown Source)
   at java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.WaitDispatchSupport.enter(Unknown Source)
   at java.awt.Dialog.show(Unknown Source)
   at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1086)
   at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1136)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1108)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:131)
   at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138)
   at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98)
   at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94)
   at org.openide.util.Mutex.readAccess(Mutex.java:218)
   at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1093)
   at java.awt.Component.show(Unknown Source)
   at java.awt.Component.setVisible(Unknown Source)
   at java.awt.Window.setVisible(Unknown Source)
   at java.awt.Dialog.setVisible(Unknown Source)
   at ancestris.util.swing.DialogManager$ADialog.show(DialogManager.java:346)
   at ancestris.modules.editors.genealogyeditor.editors.EntityEditor.showPanel(EntityEditor.java:33)
   at ancestris.modules.editors.genealogyeditor.actions.GenealogyEditorEditAction.actionPerformed(GenealogyEditorEditAction.java:48)
   at org.openide.awt.InjectorExactlyOne.actionPerformed(InjectorExactlyOne.java:78)
   at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226)
   at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:260)
   at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:109)
   at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93)
   at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
   at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
   at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:234)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)

Offline Zurga

  • VIP
  • Hero Member
  • *
  • Posts: 188
    • View Profile
Re: Bug in Ares editor
« Reply #1 on: April 01, 2019, 13:01:46 »
Hi,

Thanks for your report.
We will give a look to it as soon a&s possible.

Zurga

Offline Zurga

  • VIP
  • Hero Member
  • *
  • Posts: 188
    • View Profile
Re: Bug in Ares editor
« Reply #2 on: April 01, 2019, 21:27:28 »
Sorry, I tried to reproduce your case and I was unable to get the exception you mentioned.
Normally, this exception occurred only if the Aries docked window is closed and with the 9805 plugin, this should be impossible to have a floating windows without a docked one.
I wait to any precision you can give to me.

Zurga

Offline Macafyc

  • VIP
  • Jr. Member
  • *
  • Posts: 6
    • View Profile
Re: Bug in Ares editor
« Reply #3 on: April 02, 2019, 07:26:32 »
I don't know what more to say.

I open ancestris without .ancestris folder in home location.
This is whay I get:



Then I open for instance Kennedy genealogy:



After that I activate Ares toolbar:



Then I select Joseph Patrick, and from Ares toolbar "Edit current individual":



Then I change, for instance, to Spouse(s) & Children tab and select Son(R3) and "Edit selected family":



Nothing happens but an unexpected exception in the right bottom corner of the main window. If I open it, this is the content:



And that's all.

Offline Zurga

  • VIP
  • Hero Member
  • *
  • Posts: 188
    • View Profile
ReĀ : Bug in Ares editor
« Reply #4 on: April 02, 2019, 09:34:40 »
I am really sorry to be unable to reproduce the bug.
I have done a fresh download from the site and launch exactly the same sequence you mentionned.
As I said, this bug should be tackled from the 9805 Aries plugin.

Could you put a screenshot of the installed plugins displaying Aries plugin version ?

Zurga

Offline Macafyc

  • VIP
  • Jr. Member
  • *
  • Posts: 6
    • View Profile
Re: Bug in Ares editor
« Reply #5 on: April 02, 2019, 13:22:59 »
Thank you very much for your interest!



As I mentioned this error only happens if you select an option from Aries editor toolbar so the floating window is opened. Selecting Aries editor from Menu View opens a docked window and everything works fine.
« Last Edit: April 02, 2019, 13:27:33 by Macafyc »

Offline Zurga

  • VIP
  • Hero Member
  • *
  • Posts: 188
    • View Profile
Re: Bug in Ares editor
« Reply #6 on: April 02, 2019, 14:45:18 »
I see there is no Aries docked windows.
I have to find why, my last modification should have prevented such a thing.
Meanwhile, I suggest you to keep an Aries editor docked.

Zurga

Offline Zurga

  • VIP
  • Hero Member
  • *
  • Posts: 188
    • View Profile
Re: Bug in Ares editor
« Reply #7 on: April 02, 2019, 17:27:31 »
OK. Found it and fixed it.
Should be OK in tomorrow version.
Now, it will always open a docked windows when use the editor buttons if there is none of them.
The docked windows is mandatory to have a correct commit/rollback of all windows you can open when you use Aries Editor. The stack of windows is a nightmare to be sure that all panels are correctly commited or rollbacked if there is no docked windows.
There were lot of bugs with this before (events details not saved under some conditions, null pointer exception in others cases,...)
I hope I got all the way to open the editor.
Keep me informed if anything is still wrong.

Zurga

Offline Macafyc

  • VIP
  • Jr. Member
  • *
  • Posts: 6
    • View Profile
Re: Bug in Ares editor
« Reply #8 on: April 03, 2019, 09:03:29 »
Aries 0.10.0.9807 version runs well: I can edit or add properties without problems.

In a fresh install (without .ancestris folder) the behaviour is exactly as you said: it will always open a docked window if there is none.
But with a previous version (an existing .ancestris folder) it continues opening a floating window probably related with .ancestris\trunk\config\Windows2Local\Modes\Ancestris-editor.wsmode and .ancestris\trunk\config\Preferences\ancestris\modules\editors\genealogyeditor.properties files

Thank you for fixing it.