For around a week we have again some tricky failures on travis.
The Linux versions seem to compile and run fine but then they stop with an error at the end
--------------------------------------------------------------------
Ran 367 tests in 25.925s
OK
double free or corruption (!prev)
/home/travis/.travis/functions: line 136: 2302 Aborted (core dumped) ${INSTALLED_APP_PATH} --console --run-test 0
The Qt4 Linux version seem to lack of pivy and aborts earlier.
The Windows build seems to suffer from a different problem:
======================================================================
ERROR: test_5_Flow1D_thermomech_analysis (femtest.app.test_ccxtools.TestCcxTools
)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\app\test_ccx
tools.py", line 448, in test_5_Flow1D_thermomech_analysis
flow1d(self.active_doc, "ccxtools")
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femexamples\thermome
ch_flow1d.py", line 76, in setup
from Draft import makeWire
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Draft\Draft.py", line 83
, in <module>
import draftutils.gui_utils
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Draft\draftutils\gui_uti
ls.py", line 37, in <module>
import FreeCADGui
ImportError: DLL load failed: The specified module could not be found.
======================================================================
ERROR: TestPathApp (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: TestPathApp
Traceback (most recent call last):
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\bin\lib\unittest\loader.py",
line 153, in loadTestsFromName
module = __import__(module_name)
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Path\TestPathApp.py", li
ne 34, in <module>
from PathTests.TestPathDepthParams import depthTestCases
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Path\PathTests\TestPathD
epthParams.py", line 25, in <module>
import PathScripts.PathUtils as PU
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Path\PathScripts\PathUti
ls.py", line 36, in <module>
from PathScripts import PathJob
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Path\PathScripts\PathJob
.py", line 25, in <module>
import ArchPanel
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Arch\ArchPanel.py", line
22, in <module>
import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands,math, Part, Ar
chNesting
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Draft\Draft.py", line 83
, in <module>
import draftutils.gui_utils
File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Draft\draftutils\gui_uti
ls.py", line 37, in <module>
import FreeCADGui
ImportError: DLL load failed: The specified module could not be found.
----------------------------------------------------------------------
Ran 231 tests in 28.095s
FAILED (errors=2)
QWaitCondition: Destroyed while threads are still waiting
Tests failed!
I guess it fails to load FreeCADGui.pyd because of an resolved dependency, i.e. a 3rd party dll it cannot find any more. Were there any recent changes that possibly removed some files from the libpack there?
Btw when I ran the gcc/clang builds locally everything works fine and I don't get that error message at the end. Is it maybe possible that something on the travis environment is wrong?
However, when I ran the tests on a Windows machine I get two failures. The tests are testInsertRows (from the Spreadsheet module) and testBalloonCase (from the TechDraw module).
Here is some test code to reproduce the issues:
Code: Select all
import Spreadsheet
doc=FreeCAD.newDocument()
sheet = doc.addObject('Spreadsheet::Sheet','Spreadsheet')
sheet.set('B1', '=B2')
sheet.set('B2', '124')
sheet.getContents("B1"),"=B2"
sheet.insertRows('2', 1)
sheet.getContents("B1"),"=B3"
sheet.getContents("B1"),"=B3" # the returned value is =B2, not =B3
Code: Select all
from FreeCAD import Units
path = FreeCAD.getHomePath() + 'Mod/TechDraw/TDTest'
templateFileSpec = path + '/TestTemplate.svg'
doc = FreeCAD.newDocument("TDBalloon")
box = doc.addObject("Part::Box","Box")
sphere = doc.addObject("Part::Sphere","Sphere")
page = doc.addObject('TechDraw::DrawPage','Page')
template = doc.addObject('TechDraw::DrawSVGTemplate','Template')
template.Template = templateFileSpec
page.Template = template
page.Scale = 5.0
view1 = doc.addObject('TechDraw::DrawViewPart','View')
doc.View.Source = [box]
rc = page.addView(view1)
view1.X = Units.Quantity(30.0,Units.Length) # raises an exception because it doesn't accept a quantity but an int or float
EDIT:
The local test failure on Windows were false alarm. After rebuilding everything from scratch it works without problems now.