Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeline object, method GetFrame: Problem of memory leak #61

Closed
OussKal opened this issue Aug 2, 2017 · 1 comment
Closed

Timeline object, method GetFrame: Problem of memory leak #61

OussKal opened this issue Aug 2, 2017 · 1 comment
Labels
stale This issue has not had any activity in 90 days :(

Comments

@OussKal
Copy link

OussKal commented Aug 2, 2017

Hi,

I am using the version 0.1.7 of libopenshot and having an issue with the class Timeline.

I've add three clips to my Timeline then done the following code in order to export the Timeline in a writer:

tr1::shared_ptr<Frame> fOne;
for (long int frame = 1; frame <= 250; frame++)
//int frame = 1;
//while (true)
{
	//int frame_number = (rand() % 750) + 1;
	int frame_number = frame;
            // t is my timeline
	cout << "get " << frame << " (frame: " << frame_number << ") " << endl;
	cout << "get " << frame << " (t.info.video_length: " << t.info.video_length << ") " << endl;
	fOne = t.GetFrame(frame_number);
	cout << "After get frame " << frame << " After get frame" << endl;
	w.WriteFrame(fOne);

}

I have a problem (probably a memory leak) that I am not able to reproduce every time when it comes to the line "fOne =t.GetFrame(frame_number);"

The error is:

---- Unhandled Exception: Stack Trace ----
[3] RtlUnicodeStringToInteger, address 0x76FD5B90
---- End of Stack Trace ----

Other traces :

[libvpx @ 13c2c4c0] v1.3.0
[libvpx @ 13c2c4c0] v1.3.0
get 73 (frame: 73)
get 73 (t.info.video_length: 45000)
After get frame 73 After get frame
get 74 (frame: 74)
get 74 (t.info.video_length: 45000)
After get frame 74 After get frame
get 75 (frame: 75)
get 75 (t.info.video_length: 45000)
After get frame 75 After get frame
get 76 (frame: 76)
get 76 (t.info.video_length: 45000)
After get frame 76 After get frame
get 77 (frame: 77)
get 77 (t.info.video_length: 45000)
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
[3] RtlUnicodeStringToInteger, address 0x76FD5B90
---- End of Stack Trace ----

Could you please help me?

Thank you

@stale
Copy link

stale bot commented Mar 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale This issue has not had any activity in 90 days :( label Mar 12, 2020
@stale stale bot closed this as completed Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue has not had any activity in 90 days :(
Projects
None yet
Development

No branches or pull requests

1 participant