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.