I am writing an app that shows a 30 second video using QT and Phonon on ubuntu 10.10. The app has a main window and a mainform window.
The mainwindow launches the mainform window that has a stacked widget with several pages. on page 3 i show the phonon inside qa horizontal layout. then after the video is over i show a message on page4 then the mainform window is supposed to close.
This works fine but somehow the memory of the app keeps increasing until it crashes.
and when i try to delete the vidoe objects and then try to close the window i get segfaults.
I have been trying to debug this and find a solution for a week so please have a look and maybe someone can point an Obvious mistake.
i have attached a sample app that shows the problem.
I am running this on ubuntu [url removed, login to view] desktop with phonon xine.
i am have hard-coded the video path so please change that before testing.
to see the memory increase etc run top in a terminal.
The second part of this is to add a functionality to the program.
A crash recovery function.
The program will run on Linux, ubuntu [url removed, login to view] so the functionality will be:
A: if it crashes it must restart.
B: When it restarts it should return to the pre crash state example
main window will have 3-4 forms that the user will enter data too, so if the app crashed it will go back to the proper page and display the proper entered data so that the user does not have to redo his work.
This can be achieved by having page id's that the data is added to a database with that id and when the system crashes it checks the last id in the list. and opens the proper page and loads the proper data.
This must be generic so it can be applied on other pages
Also after N number of crashes the system must call a url
the test app is the source code that shows the problem please copy to ubuntu and compile and run with qt choose a large video size