← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 838864] Re: clear_cache provokes crash during new db installation

 

yes..with trunk server revison no:3575 a new error arises with the same
procedure of reproducing...

[2011-09-08 17:33:29,508][test] INFO:i18n:loading /home/nch/workspace/OpenERP2011/Trunk/openobject-addons/account/i18n/fr_BE.po
[2011-09-08 17:33:29,680][test] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/addons/base/res/res_config.py", line 142, in action_next
    next = self.execute(cr, uid, ids, context=context)
  File "/home/nch/workspace/OpenERP2011/Trunk/openobject-addons/base_setup/base_setup.py", line 138, in execute
    self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1]
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/pooler.py", line 44, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/modules/registry.py", line 136, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/modules/loading.py", line 329, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/modules/loading.py", line 244, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/modules/loading.py", line 208, in load_module_graph
    modobj.update_translations(cr, 1, [module_id], None)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/addons/base/module/module.py", line 536, in update_translations
    tools.trans_load(cr, f, lang, verbose=False, context=context2)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/tools/translate.py", line 847, in trans_load
    r = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, context=context)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/tools/translate.py", line 935, in trans_load_data
    trans_obj.write(cr, uid, ids, {'value': dic['value']})
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/addons/base/ir/ir_translation.py", line 192, in write
    self._get_ids.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], [trans_obj['res_id']])
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/tools/cache.py", line 59, in clear
    del d[key]
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/tools/func.py", line 93, in wrapper
    return func(self, *args, **kwargs)
  File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/tools/lru.py", line 66, in __delitem__
    nobj = self.d[obj]
TypeError: unhashable type: 'list'

Thus reopening it


** Changed in: openobject-server
       Status: Fix Released => Fix Committed

** Changed in: openobject-server
       Status: Fix Committed => In Progress

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/838864

Title:
  clear_cache provokes crash during new db installation

Status in OpenERP Server:
  In Progress

Bug description:
  Hi!

  In fact just after having created a new db with "french - belgium" as
  default language, I try to install sales management. It crashes in the
  middle of the process with the following traceback:

  Traceback (most recent call last):
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/res/res_config.py", line 142, in action_next
      next = self.execute(cr, uid, ids, context=context)
    File "/home/fde/repository/openobject-addons_trunk/base_setup/base_setup.py", line 138, in execute
      self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1]
    File "/home/fde/repository/openobject-server_trunk/openerp/pooler.py", line 44, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/registry.py", line 136, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 329, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 244, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 208, in load_module_graph
      modobj.update_translations(cr, 1, [module_id], None)
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/module/module.py", line 536, in update_translations
      tools.trans_load(cr, f, lang, verbose=False, context=context2)
    File "/home/fde/repository/openobject-server_trunk/openerp/tools/translate.py", line 847, in trans_load
      r = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, context=context)
    File "/home/fde/repository/openobject-server_trunk/openerp/tools/translate.py", line 935, in trans_load_data
      trans_obj.write(cr, uid, ids, {'value': dic['value']})
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/ir/ir_translation.py", line 189, in write
      self._get_source.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])
  UnboundLocalError: local variable 'trans_obj' referenced before assignment
  > /home/fde/repository/openobject-server_trunk/openerp/addons/base/ir/ir_translation.py(189)write()
  -> self._get_source.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])



  
  revno: 3566

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/838864/+subscriptions


References