Memory not being freed

Bug #246780 reported by Justin Clift
4
Affects Status Importance Assigned to Milestone
Salasaga
Status tracked in Trunk
Trunk
Fix Released
Critical
Justin Clift

Bug Description

When you export your project many times to a SWF, Salasaga starts to consume a lot of RAM and finally the program crashes.

It seem a problem of freeing memory.

Reported by piponazo:

  http://www.salasaga.org/forum/index.php/topic,18.0.html

Changed in salasaga:
assignee: nobody → justin-salasaga
importance: Undecided → Medium
status: New → Confirmed
Changed in salasaga:
milestone: none → 0.8.0-alpha4
status: Confirmed → In Progress
Revision history for this message
Dilomo (ankere) wrote :

I think I experience this one too. Installed salasaga from add/remove

Revision history for this message
Justin Clift (justinclift) wrote :

Doesn't seem to be happening any more, and could be related to the fix for bug # 249182.

Needs wider testing by end users to confirm whether this is still occurring or not.

Revision history for this message
Dilomo (ankere) wrote :

I'll test it when I get home. Keep up the good work!

Revision history for this message
Justin Clift (justinclift) wrote :

Cool! Would you be ok to test the latest development snapshot?

They're here:

  http://www.salasaga.org/downloads/alpha6_dev/

A lot of work has been done since Alpha 5, mainly to make things more user friendly. There's a bad bug in the project crop function, so avoid doing that for now, but memory usage should be ok. :)

Also, it allows multiple fonts with the latest snapshots too.

Revision history for this message
Dilomo (ankere) wrote :
Download full text (12.7 KiB)

I tried to build it but it returns error:

In file included from create_menu_bar.c:36:
../salasaga_types.h:277: error: expected specifier-qualifier-list before ‘GdkRegion’
../salasaga_types.h:284: error: expected specifier-qualifier-list before ‘guint’
../salasaga_types.h:300: error: expected specifier-qualifier-list before ‘guint’
../salasaga_types.h:324: error: expected specifier-qualifier-list before ‘GdkColor’
../salasaga_types.h:330: error: expected specifier-qualifier-list before ‘gint’
../salasaga_types.h:341: error: expected specifier-qualifier-list before ‘gint’
../salasaga_types.h:351: error: expected specifier-qualifier-list before ‘gint’
../salasaga_types.h:359: error: expected specifier-qualifier-list before ‘guint’
../salasaga_types.h:373: error: expected specifier-qualifier-list before ‘guint’
../salasaga_types.h:380: error: expected specifier-qualifier-list before ‘GdkPixbuf’
../salasaga_types.h:393: error: expected specifier-qualifier-list before ‘gboolean’
../salasaga_types.h:411: error: expected specifier-qualifier-list before ‘guint’
In file included from ../externs.h:30,
                 from create_menu_bar.c:37:
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from create_menu_bar.c:37:
../externs.h:31:10: error: #include expects "FILENAME" or <FILENAME>
In file included from create_menu_bar.c:37:
../externs.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘capture_height’
../externs.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘capture_width’
../externs.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘capture_x’
../externs.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘capture_y’
../externs.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘changes_made’
../externs.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘debug_level’
../externs.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘end_behaviour’
../externs.h:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘end_point_status’
../externs.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘export_time_counter’
../externs.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘film_strip_being_resized’
../externs.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../externs.h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ft_font_face’
../externs.h:...

Revision history for this message
Justin Clift (justinclift) wrote :

Oh.

It looks like you're missing the Freetype development headers ("libfreetype6-dev");

And, at a guess you'll probably be missing the libnotify headers as well ("libnotify-dev");

Installing them should get things up and running:

  $ sudo apt-get install libfreetype6-dev libnotify-dev

The instructions on the wiki are known to work if that helps?

  http://www.salasaga.org/wiki/index.php/HowToInstallOnUbuntu

Also, the very latest development snapshot, from less than an hour ago, has good enhancements with text that are worthwhile:

  http://www.salasaga.org/downloads/alpha6_dev/salasaga_20090603.tar.bz2

Please let me know if it works for you, and you consider the memory usage a lot better? (ie bug is confirmed as fixed)

Revision history for this message
Dilomo (ankere) wrote :

Well call me stupid but I can't compile it. Here's a shor message I get:

export_swf_inner.o:/home/toni/Плот/salasaga/ide/functions/export/swf/export_swf_inner.c:464: more undefined references to `SWFMovie_add_internal' follow
collect2: ld returned 1 exit status
make[3]: *** [salasaga] Error 1
make[3]: Leaving directory `/home/toni/Плот/salasaga/ide/functions'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/toni/Плот/salasaga/ide'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/toni/Плот/salasaga'
make: *** [all] Error 2

Revision history for this message
Dilomo (ankere) wrote :

Things to note in f video:

- Translations are not updated or does not work
- Some errors on startup (maybe linked with the translations)
- Can't update object properties
- Can't export
- Hard to delete slides wit6h context menus

I know this is work in progress but problems should be noted and resolved in order not to be forgotten.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.