[6.1 trunk] GTK client shuts down after successful login

Bug #881277 reported by Bogdan Stanciu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

hello,

After a painful upgrade to the latest code, I encounter the following issue: while I am trying to connect to an updated db, the client shuts down once the message (log) INFO:web-services:successful login from 'xx' using database 'xx'

while starting from a terminal, I get the following traceback:

Traceback (most recent call last):
  File "./openerp-client.py", line 134, in <module>
    win.sig_login()
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/gui/main.py", line 1011, in sig_login
    self.sig_home_new(quiet=True, except_id=id)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/gui/main.py", line 1166, in sig_home_new
    except_id=except_id)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/gui/main.py", line 1154, in sig_win_new
    obj.execute(act_id, {'window':self.window})
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/action/main.py", line 82, in execute
    self._exec_action(res,datas,context)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/action/main.py", line 143, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'], auto_search = datas['auto_search'], search_view = datas['search_view'])
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/gui/window/__init__.py", line 48, in create
    auto_refresh=auto_refresh, auto_search=auto_search, search_view=search_view)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/modules/gui/window/form.py", line 75, in __init__
    show_search=True, window=self.window, limit=limit, readonly=bool(auto_refresh), auto_search=auto_search, search_view=search_view)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/screen/screen.py", line 134, in __init__
    view = self.add_view_id(view_id, view_type[0], help=help)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/screen/screen.py", line 594, in add_view_id
    toolbar=view.get('toolbar', False), submenu=view.get('submenu', False), name=view.get('name',False), context=context)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/screen/screen.py", line 640, in add_view
    view = parser.parse(self, root_node, self.fields, toolbar=toolbar, submenu=submenu, name=name, help=help)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/view/widget_parse.py", line 56, in parse
    wid, child, buttons, on_write = widget.parse(screen.resource, node, fields)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/view/form_gtk/parser.py", line 541, in parse
    _, widgets, saws, on_write = self.parse(model, node, fields, paned=hp)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/view/form_gtk/parser.py", line 556, in parse
    widget, widgets, saws, on_write = self.parse(model, node, fields, paned=paned)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/view/form_gtk/parser.py", line 573, in parse
    widget_act = action(self.window, self.parent, model, attrs)
  File "/usr/local/lib/python2.7/dist-packages/openerp_client-6.1dev-py2.7.egg/openerp-client/widget/view/form_gtk/action.py", line 46, in __init__
    raise Exception, 'ActionNotFound'
Exception: ActionNotFound

I found that this is due to "old" settings in the user for home page and/or action, and once I changed them to something from the selection everything works.

I would suggest that this kind of exception should be escaped somehow with a message, the immediate client shutdown without any log info is at least annoying...

thank you,
Bogdan

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Bogdan,

I have tried with latest trunk but I didn't face any problem, I have checked with following revision.

Trunk :
=====
server - 3778
gtk - 1988
web(6.1)- 1401
addons - 5484

would you please try again with updated code and provide your end configuration so we can reproduce same at
my end.

Thanks and waiting for your reply.

Changed in openobject-client:
status: New → Incomplete
Revision history for this message
Bogdan Stanciu (bstanciu) wrote : Re: [Bug 881277] Re: [6.1 trunk] GTK client shuts down after successful login

On 01. 11. 11 07:01, Vishal Parmar(Open ERP) wrote:
> Hello Bogdan,
>
> I have tried with latest trunk but I didn't face any problem, I have
> checked with following revision.
>
> Trunk :
> =====
> server - 3778
> gtk - 1988
> web(6.1)- 1401
> addons - 5484
>
> would you please try again with updated code and provide your end configuration so we can reproduce same at
> my end.
>
> Thanks and waiting for your reply.
>
>
> ** Changed in: openobject-client
> Status: New => Incomplete
>
hello,

It actually happened again a few times after I reported, and I had open
another (recently created) db, and only AFTER I was able to open the
"old" db. But it did not happen lately, so maybe you could close the
bug, unless you recognise some problem.

thank you,
bogdan

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

I have checked again this issue with updated code and It is working fine. Currently I am closing this issue

If you still face the same problem then you can reopen this issue.

Thanks.

Changed in openobject-client:
status: Incomplete → Invalid
Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

On 02. 11. 11 06:49, Vishal Parmar(Open ERP) wrote:
> Hello,
>
> I have checked again this issue with updated code and It is working
> fine. Currently I am closing this issue
>
> If you still face the same problem then you can reopen this issue.
>
> Thanks.
>
>
> ** Changed in: openobject-client
> Status: Incomplete => Invalid
>
hello again,

I've just updated the client with the last rev.
Trying to start the client with one db (the which was ported from v 6.0)
gives me the same abrupt shutdown with the same traceback (which btw is
possible to see ONLY if you start the client from the terminal,
otherwise there is no trace!!!).
Starting other db (created in latest trunk) works as expected.
Starting the old db in the web client works as well.
AFTER deleting the user setting for 'action' (it was 'home page') the
client starts as expected.

While it is obviously linked to my db, I dare to say that this behaviour
is NOT normal...

thank you again!
b

Revision history for this message
Yaiza Bailen (ybailen) wrote :

Hi,

I have jus had this same error when logging into a database ported from v 6.0 in the web client 6.1.

server: 4040
client: 2046
addons: 6547
extra-addons: 5617

Traceback (most recent call last):
  File "./openerp-client.py", line 134, in <module>
    win.sig_login()
  File "/home/yaiza/Development/openerp61/client/bin/modules/gui/main.py", line 1011, in sig_login
    self.sig_home_new(quiet=True, except_id=id)
  File "/home/yaiza/Development/openerp61/client/bin/modules/gui/main.py", line 1166, in sig_home_new
    except_id=except_id)
  File "/home/yaiza/Development/openerp61/client/bin/modules/gui/main.py", line 1154, in sig_win_new
    obj.execute(act_id, {'window':self.window})
  File "/home/yaiza/Development/openerp61/client/bin/modules/action/main.py", line 87, in execute
    self._exec_action(res,datas,context)
  File "/home/yaiza/Development/openerp61/client/bin/modules/action/main.py", line 147, in _exec_action
    limit=datas['limit'], auto_refresh=datas['auto_refresh'], auto_search = datas['auto_search'], search_view = datas['search_view'])
  File "/home/yaiza/Development/openerp61/client/bin/modules/gui/window/__init__.py", line 48, in create
    auto_refresh=auto_refresh, auto_search=auto_search, search_view=search_view)
  File "/home/yaiza/Development/openerp61/client/bin/modules/gui/window/form.py", line 75, in __init__
    show_search=True, window=self.window, limit=limit, readonly=bool(auto_refresh), auto_search=auto_search, search_view=search_view)
  File "/home/yaiza/Development/openerp61/client/bin/widget/screen/screen.py", line 134, in __init__
    view = self.add_view_id(view_id, view_type[0], help=help)
  File "/home/yaiza/Development/openerp61/client/bin/widget/screen/screen.py", line 594, in add_view_id
    toolbar=view.get('toolbar', False), submenu=view.get('submenu', False), name=view.get('name',False), context=context)
  File "/home/yaiza/Development/openerp61/client/bin/widget/screen/screen.py", line 640, in add_view
    view = parser.parse(self, root_node, self.fields, toolbar=toolbar, submenu=submenu, name=name, help=help)
  File "/home/yaiza/Development/openerp61/client/bin/widget/view/widget_parse.py", line 53, in parse
    wid, child, buttons, on_write = widget.parse(screen.resource, node, fields)
  File "/home/yaiza/Development/openerp61/client/bin/widget/view/form_gtk/parser.py", line 581, in parse
    _, widgets, saws, on_write = self.parse(model, node, fields, paned=hp)
  File "/home/yaiza/Development/openerp61/client/bin/widget/view/form_gtk/parser.py", line 591, in parse
    widget, widgets, saws, on_write = self.parse(model, node, fields, paned=paned)
  File "/home/yaiza/Development/openerp61/client/bin/widget/view/form_gtk/parser.py", line 572, in parse
    widget_act = action(self.window, self.parent, model, attrs)
  File "/home/yaiza/Development/openerp61/client/bin/widget/view/form_gtk/action.py", line 46, in __init__
    raise Exception, 'ActionNotFound'
Exception: ActionNotFound

Thanks!
Yaiza

Revision history for this message
Yaiza Bailen (ybailen) wrote :

Sorry, instead of "...ported from v 6.0 in the web client 6.1." I wanted to say "...ported from v6.0 to 6.1"

Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

this is certainly not invalid. just difficult to reproduce...

Changed in openobject-client:
status: Invalid → New
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Bogdan,

Thanks for your reply.

May be it's difficult to reproduce. I have checked with following revision of trunk(6.1) but not face the problem.

server - 4043
gtk - 2047
addons - 6552

If possible then attached video what you did at your end ? would you provide us your end revision number.

Thanks and waiting for your reply.

Changed in openobject-client:
status: New → Incomplete
Revision history for this message
Dorin (dhongu) wrote :

remove action (Home Page) from user

Revision history for this message
William King (quentusrex) wrote :

Dorin,

How can you remove the action (Home Page) from the user if the client will not login?

Revision history for this message
William King (quentusrex) wrote :

The steps to fix the problem are:

Log into the web interface at http://theip:8069/
Go to Configuration->users
Select the user that is having the crash.
Click on the home action to edit it
Then delete the entry. (I had an error pop up, but the entry was still deleted.)

Then login as the user again, and it should work.

Thanks to ibeardslee on the freenode #openobject channel for the assistance.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Bogdan,

@ William King :

I have checked again this issue with the latest 6.1 and it's working as excepted at my end.

Also I have applied same scenario describe in #12 and it's working correctly and not face problem anymore.

The Problem may be occur with old revision at your end. Would you please tried one's again with the latest code of 6.1.

Currently , I am closing this issue . If you have still faced the same problem then you can reopen this issue with the reproducible steps with the video.

Thanks and waiting for your reply.

Changed in openobject-client:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.