PB 6.30 b3 - ExamineHIDs() freezes

Post bugreports for the Linux version here
User_Russian
Addict
Addict
Posts: 1579
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

PB 6.30 b3 - ExamineHIDs() freezes

Post by User_Russian »

This code

Code: Select all

ExamineHIDs()
While NextHID()
  
  Debug HIDInfo(#PB_HID_Product)
  Debug HIDInfo(#PB_HID_Manufacturer)
  Debug HIDInfo(#PB_HID_VendorId)
  Debug HIDInfo(#PB_HID_ProductId)
  Debug HIDInfo(#PB_HID_Path)
  Debug HIDInfo(#PB_HID_SerialNumber)
Wend
sometimes it freezes. Need to run PB IDE with sudo in the terminal. If you run it too many times, it may freeze for a few minutes.
Maybe this is the reason viewtopic.php?p=646123#p646123
User_Russian
Addict
Addict
Posts: 1579
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PB 6.30 b3 - ExamineHIDs() freezes

Post by User_Russian »

Probably the reason freezes in libusb backend.
For testing, I compiled hidapi using hidraw backend and the application never freezes.
To check this, copy this file to folder "purelibraries/linux/libraries/" for PB Linux x86.
You also need to add a line in code for use udev.

Code: Select all

Import "-ludev" : EndImport
Post Reply