Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.io.base bob.io.base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.io.basebob.io.base
  • Issues
  • #9
Closed
Open
Issue created Apr 08, 2016 by André Anjos@andre.anjos💬Owner

Bob nightlies are failling

Created by: tiagofrepereira2012

As you can see here, our nightlies is broken (just one example). https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2355

Follow bellow a short example on how to reproduce the error

import numpy
from bob.io.base import File

a3 = numpy.random.normal(size=(3,4)).astype('complex128') #not supported
File("xuxu.bindata",'w').write(a3)

Debugging a bit (With André's help), I found that a runtime error is raised here (https://github.com/bioidiap/bob.io.base/blob/master/bob/io/base/file.cpp#L412) and we have a catch here (https://github.com/bioidiap/bob.io.base/blob/master/bob/io/base/file.cpp#L415) ready to catch the std::runtime_error, but for some reason this macro is not working (the macro is defined at this point of the code).

If you explicitly set do try{}catch(...){} in (https://github.com/bioidiap/bob.io.base/blob/master/bob/io/base/file.cpp#L412) and raise a PyExc_RuntimeError (which is exactly the macro does) the code just work nice.

I don't know what is going on here.

Assignee
Assign to
Time tracking