Project

General

Profile

Actions

Bug #8534

closed

Strange exception during uploading verification unknown report

Added by Evgeny Novikov about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Immediate
Category:
Bridge
Target version:
Start date:
10/31/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

For attached report and its archive Bridge raised the following exception:

Uploading report failed: int() argument must be a string, a bytes-like object or a number, not 'tuple'
Traceback (most recent call last):
  File "/home/novikov/work/klever/bridge/reports/UploadReport.py", line 70, in __init__
    self.__upload()
  File "/home/novikov/work/klever/bridge/reports/UploadReport.py", line 287, in __upload
    actions[self.data['type']](identifier)
  File "/home/novikov/work/klever/bridge/reports/UploadReport.py", line 549, in __create_report_unknown
    report.add_problem_desc(REPORT_ARCHIVE['problem desc'], self.archives[self.data['problem desc']], True)
  File "/home/novikov/work/klever/bridge/reports/models.py", line 219, in add_problem_desc
    self.problem_description.save(fname, File(fp), save)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/fields/files.py", line 101, in save
    self.instance.save()
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/base.py", line 806, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/base.py", line 836, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/base.py", line 903, in _save_table
    forced_update)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/base.py", line 953, in _do_update
    return filtered._update(values) > 0
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/query.py", line 661, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1191, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 863, in execute_sql
    sql, params = self.as_sql()
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1157, in as_sql
    val = field.get_db_prep_save(val, connection=self.connection)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 766, in get_db_prep_save
    prepared=False)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 758, in get_db_prep_value
    value = self.get_prep_value(value)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 1849, in get_prep_value
    return int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'
Stack (most recent call last):
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 884, in _bootstrap
    self._bootstrap_inner()
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/socketserver.py", line 639, in process_request_thread
    self.finish_request(request, client_address)
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/socketserver.py", line 696, in __init__
    self.handle()
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 155, in handle
    handler.run(self.server.get_app())
  File "/home/novikov/.pyenv/versions/3.6.1/lib/python3.6/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 157, in __call__
    response = self.get_response(request)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/handlers/base.py", line 124, in get_response
    response = self._middleware_chain(request)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/novikov/.pyenv/versions/virtual-env-3.6.1/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/novikov/work/klever/bridge/tools/profiling.py", line 133, in wait
    res = f(*args, **kwargs)
  File "/home/novikov/work/klever/bridge/reports/views.py", line 582, in upload_report
    err = UploadReport(job, data, archives).error
  File "/home/novikov/work/klever/bridge/reports/UploadReport.py", line 75, in __init__
    logger.exception('Uploading report failed: %s' % str(e), stack_info=True)

In addition, I attached the corresponding parent verification report and its archives.


Files

unknown report files ftwrkavw.zip (2.17 KB) unknown report files ftwrkavw.zip Evgeny Novikov, 10/31/2017 10:42 AM
unknown report.json (308 Bytes) unknown report.json Evgeny Novikov, 10/31/2017 10:42 AM
verification report files _ssbswy6.zip (2.15 KB) verification report files _ssbswy6.zip Evgeny Novikov, 10/31/2017 10:42 AM
verification report.json (494 Bytes) verification report.json Evgeny Novikov, 10/31/2017 10:42 AM
verification finish report.json (142 Bytes) verification finish report.json Evgeny Novikov, 10/31/2017 10:42 AM
verification report files o31zgv4v.zip (3.04 KB) verification report files o31zgv4v.zip Evgeny Novikov, 10/31/2017 10:42 AM

Related issues 1 (0 open1 closed)

Related to Klever - Feature #8489: Show computational resources consumed by verifier in tables with safes/unsafes/verification unknownsClosedVladimir Gratinskiy10/10/201710/27/2017

Actions
Actions #1

Updated by Vladimir Gratinskiy about 7 years ago

It is fixed already in branch feature_8489.

Actions #2

Updated by Evgeny Novikov about 7 years ago

  • Status changed from New to Closed

This issue was introduced and fixed together with #8489.

Actions

Also available in: Atom PDF