Asbru-cm: edit connection dialog not showed

Created on 14 Apr 2020  路  30Comments  路  Source: asbru-cm/asbru-cm

Describe the bug
Edit connection dialog not showed
stdout:
* unhandled exception in callback:
undefined value for mandatory argument 'text' encountered at /opt/asbru/lib/PACEdit.pm line 703.
*
* ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.30/Glib/Object/Introspection.pm line 67.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Connections'
  2. Click on 'Edit Connection'
  3. See error

Expected behavior
Open Dialog Box

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Debian
  • Version: 10
  • Desktop: i3

Additional context
Add any other context about the problem here.

bug

Most helpful comment

The last commit should have fixed the issue.

It was actually a very old bug. The way David was retrieving the selected node was indeed depending on the position of the tab ! I changed the logic, it should now work as expected.

The change is available in loki and in the latest snapshot that will be released as 6.1.3 soon.

Thanks again for your help on this !

All 30 comments

I have the same problem on Ubuntu 19.10

I would assume 6.1.1 but can you confirm the 脕sbr煤 version you are using ?

yes, 6.1.1

Tried on a live CD of Debian 10.3 Gnome and Ubuntu 19.10 but could not reproduce the issue.

Can you let me know:

  • If you have proxy ip in your connection setting ?
  • Does it help if you delete the "cache" file .config/pac/pac.nfreeze ?
  • How/why did you get perl 5.30 installed on Debian 10 ?

proxy? no
delete cache file not fix this issue.
i use i3 with debian but asbru detect xfce

INFO: 脕sbr煤 Connection Manager 6.1.1 (asbru-cm) started with PID 53291
INFO: Desktop environment detected : xfce
INFO: VTE version is 0.60
INFO: Using config directory '/home/user/.config/pac'
GLib-LOG **: unsetenv() is not thread-safe and should not be used after threads are created at /usr/lib/x86_64-linux-gnu/perl5/5.30/Glib/Object/Introspection.pm line 67.
INFO: Used config file '/home/user/.config/pac/pac.yml'
INFO: Using Gnome tray icon

On my workstation the output is

nico@A7ES-004:~$ asbru-cm
INFO: 脕sbr煤 Connection Manager 6.1.1 (asbru-cm) started with PID 7660
INFO: Desktop environment detected : gnome-shell
INFO: VTE version is 0.58
INFO: Using config directory '/home/nico/.config/pac'
INFO: Used config file '/home/nico/.config/pac/pac.nfreeze'
INFO: Using Gnome tray icon
* unhandled exception in callback:
undefined value for mandatory argument 'text' encountered at /opt/asbru/lib/PACEdit.pm line 703.
*
* ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.28/Glib/Object/Introspection.pm line 67.

hack: in terminal screen if press alt + e edit dialog opened
i set proxy but not fixed

debian 10 and perl 5:30? why not?

hack: in terminal screen if press alt + e edit dialog opened
i set proxy but not fixed

I can confirm, Alt + E if focus is in connection tree not works, if the focus is in the terminal works.

debian 10 and perl 5:30? why not?

I mean: when I start Debian 10.3 ; I get 5.28 so I was wondering how you got this... to be be able to reproduce on the same environment. If I got it correctly, you're on a Debian Sid, aren't you ?

I can confirm, Alt + E if focus is in connection tree not works, if the focus is in the terminal works.

Interesting ! I still cannot reproduce this ; sorry :(

Can you try from a "clean" configuration file, you can do this by creating a temporary configuration directory (in /tmp/asbru-test in this example):

```
asbru-cm --config-dir /tmp/asbru-test
````

Thanks.

rm .config/pac/pac* will fix this issue

rm .config/pac/pac*

Ok but very extreme! You basically remove everything and you'll need to recreate all your entries !

i exported it before.

Ok so I still cannot reproduce with any of my existing connections.

But I suspect some non initialized variable ; I made a commit that should hopefully fix this.

If you revert to your backup ; can you try with the latest 6.1.2 that was just published a few minutes ago ?

perl 5.30 from unstable branch

i switched back to buggy mode.
when i remove only pac.yml.tree file issue fixed

@nikuzz
please backup pac.yml.tree file and remove it , if fixed, compare contents

pac.yml.tree content in buggy mode:




tree_page_3:scroll1
tree_page_1:scroll2
tree_page_0:scroll3
tree_page_2:vboxclu

pac.yml.tree content in fixed mode:



tree_page_0:scroll1
tree_page_1:scroll2
tree_page_2:scroll3
tree_page_3:vboxclu

this can help you? @gfrenoy

@gfrenoy I upgraded asbru-cm to 6.1.2 and by my side (Ubuntu 19.10 upgraded 2020-04-15) all works correctly now.

@khodadadi Sorry but I don't see why it would be related to pac.yml.tree ; can you give it a try with 6.1.2 ; the fix I made would match better what you reported :)

@khodadadi

Could you confirm to me if the lines in PACEdit.pm, of your current install are this (/opt/asbru-cm/lib/PACEdit.pm)

imagen

If so could you edit them to look like this and test if it works with the config files that cause you the error?

imagen

If so could you edit them to look like this and test if it works with the config files that cause you the error?

That's what has been done in 6.1.2 so testing 6.1.2 is the same :)

mmh? I get confused with version that is not master then? is loki? sorry. I do not know where the versions come from.

mmh? I get confused with version that is not master then? is loki? sorry.
I do not know where the versions come from.

master = 6.1.2

6.1.2 was released yesterday
was previously 6.1.1, what was used when this issue has been created

@gfrenoy This morning I had the same problem with the 6.1.2, so not solved. Here the same output:

nico@A7ES-004:~$ asbru-cm
INFO: 脕sbr煤 Connection Manager 6.1.2 (asbru-cm) started with PID 16158
INFO: Desktop environment detected : gnome-shell
INFO: VTE version is 0.58
INFO: Using config directory '/home/nico/.config/pac'
INFO: Used config file '/home/nico/.config/pac/pac.nfreeze'
INFO: Using Gnome tray icon
* unhandled exception in callback:
undefined value for mandatory argument 'text' encountered at /opt/asbru/lib/PACEdit.pm line 726.
*
* ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.28/Glib/Object/Introspection.pm line 67.

I try also with a completely clean config and I finally found why it happens:

If I keep the order of the left sidebar tabs like installed ("Connections" is the first tabs) all works correctly, If I "drag&drop" the tabs in another order (so that "Connections" is not at the first place), this break the "Edit Connection" function in the connection tree (right click menu option or Atl + E stops works). So what @khodadadi suggested is correct, the order of the tabs (pac.yml.tree) is the problem. (probably a hard coded "0" position somewhere in searching connection tree in the left side bar)

Here 2 screenshot to better explain what I wrote:
Captura de pantalla de 2020-04-16 12-55-27
Captura de pantalla de 2020-04-16 12-56-56
Captura de pantalla de 2020-04-16 12-57-16

Waw, didn't even know it was possible to change the order of those tabs! Thanks everybody for the good troubleshooting session ! I can easily reproduce it now.

Hopefully I can provide a fix soon ; stay tuned.

The last commit should have fixed the issue.

It was actually a very old bug. The way David was retrieving the selected node was indeed depending on the position of the tab ! I changed the logic, it should now work as expected.

The change is available in loki and in the latest snapshot that will be released as 6.1.3 soon.

Thanks again for your help on this !

Fixed in 6.1.3. Closed #572

Was this page helpful?
0 / 5 - 0 ratings

Related issues

popxunga picture popxunga  路  14Comments

rmueck picture rmueck  路  6Comments

Croydon picture Croydon  路  3Comments

dakorpar picture dakorpar  路  9Comments

Frankstar picture Frankstar  路  8Comments