spreadsheet module eivindkvedalen C++

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
drei
Posts: 479
Joined: Sun May 11, 2014 7:47 pm
Location: Mexico
Contact:

Re: spreadsheet module eivindkvedalen C++

Post by drei »

Hello Eivind,
eivindkvedalen wrote:
sgrogan wrote:Ca someone give me examples with this simple file.
Attached is an example where some properties of the part are calculated.

Eivind
I wanted to begin using the Spreadsheet Module, but I get the following error when I open your file:

Code: Select all

cd Programs/Original/build/bin && ./FreeCAD
FreeCAD 0.16, Libs: 0.16R4783 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

*** Abort *** an exception was raised, but no catch was found.
        ... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
My FreeCAD info:

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.4783 (Git)
Branch: master
Hash: 6a6a3d3bd05144e910741c88491f86bf0142acea
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17


Steps to reproduce:
  1. Open FreeCAD from terminal or menu
  2. Open your file
Regards,
Isaac


EDIT

Running gdb, I get:

Code: Select all

#0  0x00007ffff639f47a in xercesc_3_1::ReaderMgr::peekNextChar() ()
   from /usr/lib/libxerces-c-3.1.so
Backtrace stopped: Cannot access memory at address 0x7fffffffb9e8
EDIT

issue#2048
Need help? Feel free to ask, but please read the guidelines first
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: spreadsheet module eivindkvedalen C++

Post by wmayer »

The file was created from a developer snapshot which didn't have the final implementation of the spreadsheet XML structure. Anyway, it's a bug that this is not handled properly. With git commit c62319d this is fixed.
Post Reply