View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001138||FreeCAD||Bug||public||2013-05-25 02:17||2013-06-17 11:10|
|Fixed in Version||0.14|
|Summary||0001138: DeprecationWarning: Use 'TypeId' instead|
|Description||Steps to reproduce:|
1) Import an STL file into current document.
2) Select the STL object in the document
3) See a line after line of "DeprecationWarning: Use 'TypeId' instead" in Report View for as long as the object is selected.
This does not crash freecad, but for some reason this causes Ubuntu 13.04 to think that FreeCAD has crashed, creating an annoying crash report window, and starting another instance of FreeCAD when you click to report the error. As far as I know the crash report doesn't do anything since its from a PPA.
|Additional Information||OS: Ubuntu 13.04|
Version: 0.14.2127 (Git)
Python version: 2.7.4
Qt version: 4.8.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0
|Tags||No tags attached.|
I doubt that this happens for an STL file (and for me it doesn't!).
This message is intended to replace the Python code in the Draft (and/or Arch) module because "Type" is only used there. The change is necessary because in the Sketch the property "Type" is used in a different context and thus could cause problems with Draft objects.
But I don't see why this should affect Ubuntu in a way that it thinks that FreeCAD has crashed. IMO that's a bug in Ubuntu and not in FreeCAD.
||Hey, Yorik can you please check the Draft (and/or Arch) sources where you use the property "Type" (it's from BaseClassPy) where you get the C++ class name, e.g. "Part::Feature"? "Type" is marked as deprecated and you should use "TypeId" now. This is because for a more consistent naming (to the C++ method) and because "Type" is used in the Sketcher in a different context.|
Hi, I just got this same message and Apport dialog _once_ from build 2128, with exactly the same OS and lib versions as peepsalot. I haven't lost control of FreeCAD either.
In my case,
* the Report view only says "Unknown OCC exception"
* it happened just once, and I wasn't changing anything (I was either selecting a part or rotating the view)
* I didn't import anything,and my doc consists of padded sketches, polygons, planes, ellipses, etc. I've never touched the Arch module and I'm not sure whether the Draft workbench has any relation to the "parametric geometric primitives".
Ok I think I changed all the remaining Type attributes in Draft & Arch (commit 6a88bcd)
I think the message have no relation with the problems you guys describe here, and hopefully the Deprecation warning will not appear anymore.
I'll leave this bug report open a little more in case someone still finds problems...
I once had this behaviour too which peepsalot described. When selecting a certain type of object there was raised an Python exception all the time and maybe this caused Ubuntu to open the crash report. But the latter is definitely not a FreeCAD bug.
Anyway, in commit 6a9594d I removed the attribute 'Type' from the call tips.
||Just got the latest daily build and verified that this message no longer occurs for me.|
||Okay, then let's close this report (one bug less is always welcome :) ). Reopen if needed...|
|2013-05-25 02:17||peepsalot||New Issue|
|2013-05-25 13:39||wmayer||Note Added: 0003180|
|2013-05-25 13:40||wmayer||Status||new => assigned|
|2013-05-25 13:40||wmayer||Assigned To||=> yorik|
|2013-05-25 13:44||wmayer||Note Added: 0003181|
|2013-05-28 02:13||ariel-co||Note Added: 0003183|
|2013-06-14 12:16||yorik||Note Added: 0003202|
|2013-06-14 12:21||yorik||Status||assigned => feedback|
|2013-06-15 11:38||wmayer||Note Added: 0003204|
|2013-06-17 01:40||peepsalot||Note Added: 0003228|
|2013-06-17 11:10||yorik||Note Added: 0003230|
|2013-06-17 11:10||yorik||Status||feedback => closed|
|2013-06-17 11:10||yorik||Resolution||open => fixed|
|2013-06-17 11:10||yorik||Fixed in Version||=> 0.14|