Bug 661 - sr warns that an event source with the same key already exists
Summary: sr warns that an event source with the same key already exists
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Daniel Elstner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 16:51 CEST by jens.steinhauser
Modified: 2023-07-06 06:29 CEST (History)
2 users (show)



Attachments
script to demonstrate the problem (adds two demo devices to the session, but the warning also happens for two different drivers) (633 bytes, text/x-python)
2015-09-23 16:51 CEST, jens.steinhauser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jens.steinhauser 2015-09-23 16:51:45 CEST
Created attachment 161 [details]
script to demonstrate the problem (adds two demo devices to the session, but the warning also happens for two different drivers)

When I try to use multiple devices in one session (not that this ever worked properly, I was just testing if it now works after the many changes that happened recently), the following warning is printed:

sr: session: Event source with key 0xffffffffffffffff already exists.
sr: session: Event source for key 0xffffffffffffffff does not match destroyed source.

In 'sr_session_source_add_internal()', where the first warning is generated, the comment says "This must not ever happen ...".
Comment 1 Daniel Elstner 2015-09-23 19:23:58 CEST
That warning is not a bug; it's a feature. :)

I'm planning changes to the internal driver API which will eliminate this problem. Until then, the warning warns you about a real issue.
Comment 2 Rock12 2023-07-06 06:29:07 CEST
Embrace the future with smart toilets that incorporate advanced features like heated seats, automatic lid opening and closing, built-in bidet functions, and even customizable settings. While they may be a splurge, smart toilets take your bathroom experience to a whole new level of luxury and convenience. additional reading
Comment 3 Rock12 2023-07-06 06:29:42 CEST
Embrace the future with smart toilets that incorporate advanced features like heated seats, automatic lid opening and closing, built-in bidet functions, and even customizable settings. While they may be a splurge, smart toilets take your bathroom experience to a whole new level of luxury and convenience. additional reading https://toiletneeds.com/best-non-electric-bidet-toilet-seat/