[00:34:37] *** el3ctrik is now known as el3ctrik-away [01:20:59] Farthen: What exactly were you doing? [01:21:43] Also, Didn't you say a4 worked fine for you? or were you just going by the bug report? [02:04:17] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [02:04:17] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [02:08:28] *** Quits: liar (~liar@clnet-p09-185.ikbnet.co.at) (Ping timeout: 245 seconds) [04:04:25] *** Quits: Dgby714 (~dgby714@nala.villavu.com) (Quit: leaving) [04:22:50] *** Joins: Dgby714 (~dgby714@nala.villavu.com) [06:06:28] *** Quits: TheSeven (~quassel@rockbox/developer/TheSeven) (Disconnected by services) [06:06:37] *** Joins: [7] (~quassel@rockbox/developer/TheSeven) [06:29:02] *** Joins: [Saint] (~saint@rockbox/user/saint) [07:11:02] *** Quits: [Saint] (~saint@rockbox/user/saint) (Remote host closed the connection) [07:50:47] *** Joins: [Saint] (~saint@rockbox/user/saint) [07:58:53] *** Quits: [Saint] (~saint@rockbox/user/saint) (Quit: No Ping reply in 180 seconds.) [07:59:06] *** Joins: [Saint] (~saint@rockbox/user/saint) [08:02:07] *** Quits: [Saint] (~saint@rockbox/user/saint) (Client Quit) [08:04:17] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [08:04:17] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Read error: Connection reset by peer) [09:46:29] *** Joins: STeeF (~STeeF@office.hostnetbv.nl) [11:28:51] *** Joins: liar (~liar@clnet-p09-185.ikbnet.co.at) [12:17:37] Dgby714: a4 works for me, but [7] would like to workaround the bug from the previous pyusb version, in our code [12:18:03] *** Quits: Poodlemastah (~Poodlemas@109-124-181-96.customer.t3.se) (Ping timeout: 268 seconds) [12:18:43] but since i'm not a python developer, and i got this to work by copy/pasteing from examples and docs, i don't think i'll be able to properly fix it [12:19:47] *** Joins: Poodlemastah (~Poodlemas@109-124-181-96.customer.t3.se) [13:28:30] *** el3ctrik-away is now known as el3ctrik [14:04:18] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [14:04:18] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [17:43:51] user890104: implement the same fix? I'd give you an example but I have restarted irssi and lost what this was about lol... [18:15:30] *** Joins: n1s (~n1s@nl118-168-30.student.uu.se) [18:15:30] *** Quits: n1s (~n1s@nl118-168-30.student.uu.se) (Changing host) [18:15:30] *** Joins: n1s (~n1s@rockbox/developer/n1s) [19:09:14] user890104: http://paste.villavu.com/show/oPR3LruEq97Cafdwe3C5/ [19:14:26] Should be completely fine even on newer pyusbs [19:14:47] two calls to managed_open is fine [19:20:37] Dgby714: i think that the goal is to not to override pyusb's method, but to add a call to managed_open in our library (if needed) [19:20:47] here's the irc log: [19:21:01] [23:36:49] <[7]> I'd prefer if there were two changes while we're at it: [19:21:01] [23:36:49] <[7]> 1. if possible, work around the segfault problem from within libemcore, it might be possible to call managed_open() ourselves before that call. we'll be opening it at some point later anyway, check if that can be moved to fix the problem. [19:21:01] [23:36:49] <[7]> 2. fix the interface selection bug: only look at the actually selected configuration [19:21:02] so do whar I did? [19:21:52] if cfg = None: manged_open() before calling get_active_config [19:22:08] or just call managed_open after getting the device [19:22:12] on the other hand, if we can access self.dev._ctx._active_cfg_index, we don't need to call get_active_configuration() [19:23:04] user890104: That's jsut a variable of the current config and gets updated when you call a set [19:23:23] but from what i've found out so far, calling set_configuration() still leaves the index to 0 on linux [19:26:37] hmmm [19:27:06] Anyways, you need get_active_config because it has a catch for no config it looks like [19:27:33] or a device that hasn't been setup [19:44:12] *** el3ctrik is now known as el3ctrik-away [20:04:17] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [20:04:17] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Read error: Connection reset by peer) [22:13:28] *** Quits: liar (~liar@clnet-p09-185.ikbnet.co.at) (Ping timeout: 245 seconds) [23:42:48] *** Joins: liar (~liar@clnet-p09-185.ikbnet.co.at)