Exception AttributeError/New version of stbt?

19 views
Skip to first unread message

martin...@kentor.se

unread,
Jan 26, 2018, 8:32:23 AM1/26/18
to stb-tester
Hi!

I'm getting this error message at the end of each test run all of a sudden. It doesn't raise an exception and it doesn't seem to have any affect what I can tell so far.

Exception AttributeError: AttributeError("'NoneType' object has no attribute 'gst_buffer_unmap'",) in <bound method _MappedSample.__del__ of <_stbt.gst_utils._MappedSample object at 0x7f2858052a10>> ignored

It's just printed to the console. Is anyone else seeing this. Has there been an update to stbt? I'm also seeing the yellow/red squares on screen every time I use stbt.match and stbt.get_frame. I never saw this before.

/ Martin

David Röthlisberger

unread,
Jan 30, 2018, 9:55:28 AM1/30/18
to martin...@kentor.se, stb-tester
On Fri, 26 Jan 2018, at 1:30 PM, martin...@kentor.se wrote:
> Has there been an update to stbt?

Yes, Ubuntu packages for stb-tester version 28 have been published.
Announcement & release notes will follow shortly.


> Exception AttributeError: AttributeError("'NoneType' object has no
> attribute 'gst_buffer_unmap'",) in <bound method _MappedSample.__del__
> of <_stbt.gst_utils._MappedSample object at 0x7f2858052a10>> ignored

Looks like a race condition during Python interpreter shutdown. The
destructor for one of our _MappedSample (video frame) objects is trying
to call _libgst.gst_buffer_unmap() but _libgst doesn't exist any more
(Python has already torn it down).

I don't think this is new in v28. It's a race condition so I guess the
new version has changed some timing condition on your system, enough to
trigger this warning.

It's probably harmless but if you want to fix it you can change the
code to check if _libgst exists before calling _libgst.gst_buffer_unmap
and submit a pull request.


> I'm also seeing the yellow/red squares on screen
> every time I use stbt.match and stbt.get_frame. I never saw this before.

Yes, this is an effect of
https://github.com/stb-tester/stb-tester/pull/449


Kind regards,

David Röthlisberger
Stb-tester.com Ltd.

--
Stb-tester.com Ltd is a company registered in England and Wales.
Registered number: 08800454. Registered office: 33b Aliwal Road,
Battersea, London, SW11 1RB.

martin...@kentor.se

unread,
Jan 31, 2018, 3:49:17 AM1/31/18
to stb-tester
OK, thanks for clearing that out David! :)
Reply all
Reply to author
Forward
0 new messages