FET Forum

Discussions and Chat => Programming and other Technical Help => Topic started by: Andrés Chandía on March 31, 2011, 02:33:33 PM

Title: Error when exporting to csv
Post by: Andrés Chandía on March 31, 2011, 02:33:33 PM
Hi Liviu,
I probably have an error on my fet file, which causes the error when exporting it to csv
I'm migrating my data from 2010-2011 timetable to 2011-2012, doing some major changes, I guess there is where the problem was originated, but as you know we work with huge files, so is difficult to find the "bit". My question is if there is a way to find this kind of problems to solve them.

Any way I give you the facts:
File opens with no problem and generates the same, but when exporting to csv, in linux just do not creates the fet_timetable.csv file.
In windows gives more info: (I attach the error images and the fet file at compressed file)

Thanks again Liviu.

Title: Re: Error when exporting to csv
Post by: Liviu Lalescu on March 31, 2011, 03:05:06 PM
Id 257, duration 2, total duration 6, single activity (not divided into subactivities). I guess total duration should be 2.

I found by examining the code. Under GNU/Linux, run FET in console and you get line with assertion failed. This line is identical with one on Windows you reported. See C++ code in reported file/line and try to deduct the error. A C++ programmer can probably deduce the information.

assert(x) means that if x is false, FET crashes in this line. This is a check that I prefer to add whenever possible, so I detect errors in FET.

This is not exactly a FET error, but an input file error (yes, I could make a test when opening the file, but there are too many errors to check like that. Maybe in the future).
Title: Re: Error when exporting to csv
Post by: Andrés Chandía on March 31, 2011, 03:08:37 PM
Ok Liviu,
Thanks again, with your teaching information I know now where the error comes from.

Sorry, I should have taken into account.
Title: Re: Error when exporting to csv
Post by: Liviu Lalescu on March 31, 2011, 03:19:17 PM
No problem :-)

You are welcome to post other problems, if you need help or just want to discuss them.

Usually, I advise anyone to use the latest FET version. I know 5.14.3->5.14.4 does not affect you (only French and Serbian translations, with an upgrade to Qt 4.7.2 which may only affect a bit your Windows FET), but if it is easy, you could update FET.
Title: Re: Error when exporting to csv
Post by: Andrés Chandía on March 31, 2011, 03:25:00 PM
Yes, that's my next step, actually in windows I have 5.14.4, but I haven't update my linux version because now that I have to share the files with some other people I mainly use the Windows one. Except in the work I'm doing now because I'm preparing the data for a future timetable which I don't have to share. :)
Title: Re: Error when exporting to csv
Post by: Liviu Lalescu on March 31, 2011, 03:33:24 PM
OK, I have a request if and when you compile FET-5.14.4 for GNU/Linux: please confirm that compilation went well, you can run the executable and everything OK. Maybe check that as other user, you can run this same FET from the same directory. Also, check permissions of the main fet-5.14.4 directory, should be 40755=read, write, execute owner, read, execute group, read execute others. It was the first time I played a bit with these and I want to check that I restored them correctly.

Only if you have a bit of time for that :-)
Title: Re: Error when exporting to csv
Post by: Andrés Chandía on April 01, 2011, 02:37:15 PM
Sorry for not answering before, I was wanting to compile FET since early this morning but work always knock at the door.

Well, compilation went well, and execution too.  I do it this way.
I expand the the tat.bz2 file as normal user, then as root:

cd /usr/local/
mv /home/user/Downloads/FET/fet-5.14.4 fet
cd fet
qmake fet.pro
make

done
exit

Then as the normal user I run FET.

File:      fet
Mode:      -rwxr-xr-x (0755)
Owner:      root/root

Directory:      fet
Mode:            drwxr-xr-x (0755)
Owner:            root/root
Title: Re: Error when exporting to csv
Post by: Liviu Lalescu on April 01, 2011, 02:42:23 PM
Thank you!