[PD] HID Crashing

Hans-Christoph Steiner hans at eds.org
Sun Apr 8 06:02:58 CEST 2007


On Apr 6, 2007, at 10:21 PM, Kyle Klipowicz wrote:

> I have also been having HID problems lately on OSX Tiger w/ the latest
> test build of extended. It crashes when trying to open higher device
> numbers.

Like which device numbers?  Could you send more info, like a  
transcript of the stuff in the Pd window?

> Also, only the analog d-pad for my game pad works, but not the
> buttons. The game pad works with snes9x for gaming, so it must be HID.
> It used to work on earlier builds, so it may be something with the
> latest version.

This is actually most likely to be a shoddy USB HID descriptor in the  
USB device, which what the OS uses to know what data to expect from  
the device.  If the OS can't get the data, then [hid] can't either.

What do you get in the Pd window when you send a [print( message to  
[hid]?  You should see a listing of the elements for that device as  
given by the OS.  If something is listed there that is not showing up  
in Pd space, that's most likely a bug in [hid].  If it is not listed  
there, that's most likely a bad USB implementation on the device,  
which is sadly quite common.

.hc

>
> ~Kyle
>
> On 4/6/07, Clifford Dunn <beatleboy07 at gmail.com> wrote:
>> Thanks Derek,
>>
>> Doing this did help me open the help file. However, a new can of  
>> worms has
>> opened from this.
>>
>> I can't seem to find much helpful information about the [hid]  
>> object in the
>> helpfile. In fact, the only time the [hid] object appears in this  
>> patch it
>> doesn't have any inlets or outlets. Maybe it's not necessary. I  
>> would like
>> to know what these in/outlets are for this object though.
>>
>> Also, the [hid] object does seem to be directly responsible for my  
>> crashes.
>> It's rather irregular, but if I click on the object enough, PD will
>> definitely crash. I've tried to create an [hid] object without a  
>> physical
>> device ( i.e. [hid 5]), but the crashing will still happen.
>>
>> Are there people regularly using HID with OS X?
>>
>> Thanks again,
>>
>> Clifford Dunn
>> www.myspace.com/clifforddunn
>>
>>
>> On 06/04/07, Derek Holzer <derek at umatic.nl> wrote:
>>> Hi Clifford,
>>>
>>> I've seen this problem on OS X a lot in my workshops. [hid] works  
>>> fine,
>>> but something in the help file crashes it. Has to do with one of the
>>> messages in the help patch causing [hid] to try to open one of the
>>> built-in Mac HID devices (trackpad, keyboard, etc), which it  
>>> doesn't like.
>>>
>>> Here's a quick fix: open the [hid] help patch in TextEdit or some  
>>> other
>>> text editor, and change the creation argument to something above the
>>> number of built in Mac HID devices. [hid 5] should work, for  
>>> example.
>>> Remember to save as extension .pd! Then you should be able to  
>>> open the
>>> help patch and get more information.
>>>
>>> best,
>>> d.
>>>
>>> Clifford Dunn wrote:
>>>> Hello list. I'm relatively new to PD and I'm trying to see how  
>>>> HID works
>>>> in it. I'm using the most recent version of PD-Extended, the  
>>>> preference
>>>> files are fine, and I'm running OS X 10.4.8 on a PPC Powerbook.
>>>>
>>>> I can't seem to get [hid] to work. I can create the [hid] object  
>>>> and it
>>>> seems to be ok...there's a slight pause in the system as it  
>>>> seems like
>>>> it needs to load something. When I try to open the help file to  
>>>> figure
>>>> out how to use it, PD crashes.
>>>
>>> --
>>> derek holzer ::: http://www.umatic.nl
>>> ---Oblique Strategy # 181:
>>> "What would your closest friend do?"
>>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>
>
> -- 
>
> http://theradioproject.com
> http://perhapsidid.blogspot.com
>
> (((())))(()()((((((((()())))()(((((((())()()())())))
> (())))))(()))))))))))))(((((((((((()()))))))))((())))
> ))(((((((((((())))())))))))))))))))__________
> _____())))))(((((((((((((()))))))))))_______
> ((((((())))))))))))((((((((000)))oOOOOOO
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list



------------------------------------------------------------------------ 
----

All information should be free.  - the hacker ethic








More information about the Pd-list mailing list