Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Memory leaks when upgrading to 2.4.0 from 2.3.2  (Read 2015 times)

0 Members and 1 Guest are viewing this topic.

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Memory leaks when upgrading to 2.4.0 from 2.3.2
« on: August 20, 2016, 11:36:14 am »
Have anyone had memory leaks when upgrading from 2.3.2 to 2.4.0?

2.3.2
http://pastebin.com/vU0iXxBg
==8625== LEAK SUMMARY:
==8625==    definitely lost: 60 bytes in 1 blocks
==8625==    indirectly lost: 0 bytes in 0 blocks
==8625==      possibly lost: 0 bytes in 0 blocks
==8625==    still reachable: 66,350 bytes in 545 blocks
==8625==         suppressed: 0 bytes in 0 blocks
 

2.4.0
http://pastebin.com/wiakFQNT
==9871== LEAK SUMMARY:
==9871==    definitely lost: 2,580,736 bytes in 152 blocks
==9871==    indirectly lost: 2,720 bytes in 18 blocks
==9871==      possibly lost: 42,897,582 bytes in 7,444 blocks
==9871==    still reachable: 155,318 bytes in 774 blocks
==9871==         suppressed: 0 bytes in 0 blocks
 

My OS is Ubuntu 14.04 and I dont have any minimal code.

Its my first post, so sorry if is not the right place to post it or is not formatted well.

Pinkii
« Last Edit: August 20, 2016, 11:39:39 am by Pinkii »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
AW: Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #1 on: August 20, 2016, 11:57:12 am »
I dont have any minimal code.
Why not?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #2 on: August 20, 2016, 02:08:39 pm »
Didnt have at that moment.

I have tried the sfml pong example https://github.com/SFML/SFML/tree/master/examples/pong and the result of valgrind:

==4716== LEAK SUMMARY:
==4716==    definitely lost: 578,736 bytes in 19 blocks
==4716==    indirectly lost: 0 bytes in 0 blocks
==4716==      possibly lost: 42,878,414 bytes in 7,325 blocks
==4716==    still reachable: 155,291 bytes in 785 blocks
==4716==         suppressed: 0 bytes in 0 blocks
 

I was just asking if anyone had the same problem or was that I'm derp or something.
« Last Edit: August 20, 2016, 06:31:35 pm by Pinkii »

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #3 on: August 20, 2016, 02:23:07 pm »
Try out PR #1135.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #4 on: August 20, 2016, 02:48:11 pm »
Try out PR #1135.

Tried and didnt fix it. The pong still has memory leaks.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #5 on: August 20, 2016, 02:49:41 pm »
Care to provide the trace?
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #6 on: August 20, 2016, 03:00:36 pm »
Care to provide the trace?

What I have to do to provide the trace? I dont know what do you mean. Sorry

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #7 on: August 20, 2016, 03:09:18 pm »
The same things you pasted on pastebin in your first post.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #8 on: August 20, 2016, 03:14:23 pm »
yup sorry  ;D

http://pastebin.com/4eTPZiQf

I have tried to compile the sfml with the -g flag, but it doesn't show the line of the trace.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #9 on: August 20, 2016, 03:25:21 pm »
The leak we can fix was fixed in the PR I submitted. On my system, valgrind reports 0 bytes lost after applying the patch. The remaining bytes (there are less with the patch than without) you are seeing is coming from somewhere inside the Intel graphics driver. This has been an issue for a very long time. There is nothing we can do about it.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Pinkii

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Memory leaks when upgrading to 2.4.0 from 2.3.2
« Reply #10 on: August 20, 2016, 03:33:25 pm »
Oki. Thanks for your effort and time!

I will look if I have any driver than is not updated.

Thanks!
Pinkii

 

anything