todbot / blink1

Official software for blink(1) USB RGB LED by ThingM
https://blink1.thingm.com/
Other
956 stars 237 forks source link

No blink(1) Software working on Mac OS X 10.10.5 #257

Closed bgschaid closed 8 years ago

bgschaid commented 8 years ago

Hi! Got my blink(1) today and nothing is working (except for the LEDs blinking when I plug it in)

The Blink1Controll-Application that I download crashes before opening any windows (and it crashes when the blink is plugged in or when it is not plugged in).

Downloaded the Debug-Version and ran it in the debugger:

lldb ./Contents/MacOS/Blink1Control             :(
(lldb) target create "./Contents/MacOS/Blink1Control"
Current executable set to './Contents/MacOS/Blink1Control' (x86_64).
(lldb) run
Process 1582 launched: './Contents/MacOS/Blink1Control' (x86_64)
QML debugging is enabled. Only use this in a safe environment.
running osFixes
Process 1582 stopped
* thread #1: tid = 0x2c17fa, 0x0000000103900229 CoreFoundation`CFSetGetCount + 25, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000103900229 CoreFoundation`CFSetGetCount + 25
CoreFoundation`CFSetGetCount:
->  0x103900229 <+25>: movq   (%rbx), %rax
    0x10390022c <+28>: testq  %rax, %rax
    0x10390022f <+31>: je     0x103900271               ; <+97>
    0x103900231 <+33>: leaq   0x390330(%rip), %rcx      ; __CFConstantStringClassReferencePtr
(lldb) bt
* thread #1: tid = 0x2c17fa, 0x0000000103900229 CoreFoundation`CFSetGetCount + 25, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000103900229 CoreFoundation`CFSetGetCount + 25
    frame #1: 0x00000001001d8a99 libBlink1.dylib`hid_enumerate + 233
    frame #2: 0x00000001001da244 libBlink1.dylib`blink1_enumerateByVidPid + 36
    frame #3: 0x00000001000086fb Blink1Control`MainWindow::MainWindow(QWidget*) + 1243
    frame #4: 0x000000010000dafd Blink1Control`MainWindow::MainWindow(QWidget*) + 29
    frame #5: 0x0000000100007f37 Blink1Control`main + 71
    frame #6: 0x00000001041395c9 libdyld.dylib`start + 1
    frame #7: 0x00000001041395c9 libdyld.dylib`start + 1
(lldb) 

Cloned me the repository and compiled the command line client. This gave a similar stack-trace:

lldb ./blink1-tool                       
(lldb) target create "./blink1-tool"
Current executable set to './blink1-tool' (x86_64).
(lldb) run  -m 100 --rgb=255,0,255 
Process 23296 launched: './blink1-tool' (x86_64)
Process 23296 stopped
* thread #1: tid = 0x28c947, 0x0000000100115229 CoreFoundation`CFSetGetCount + 25, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000100115229 CoreFoundation`CFSetGetCount + 25
CoreFoundation`CFSetGetCount:
->  0x100115229 <+25>: movq   (%rbx), %rax
    0x10011522c <+28>: testq  %rax, %rax
    0x10011522f <+31>: je     0x100115271               ; <+97>
    0x100115231 <+33>: leaq   0x390330(%rip), %rcx      ; __CFConstantStringClassReferencePtr
(lldb) bt
* thread #1: tid = 0x28c947, 0x0000000100115229 CoreFoundation`CFSetGetCount + 25, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100115229 CoreFoundation`CFSetGetCount + 25
    frame #1: 0x0000000100001799 blink1-tool`hid_enumerate(vendor_id=10168, product_id=493) + 233 at hid.c:427
    frame #2: 0x0000000100002f44 blink1-tool`blink1_enumerateByVidPid(vid=10168, pid=493) + 36 at blink1-lib-lowlevel-hidapi.h:17
    frame #3: 0x0000000100005508 blink1-tool`main(argc=<unavailable>, argv=0x00007fff5fbff4a8) + 2024 at blink1-tool.c:505
    frame #4: 0x000000010074a5c9 libdyld.dylib`start + 1
    frame #5: 0x000000010074a5c9 libdyld.dylib`start + 1

Also tried the Python-library. The examples there failed with "permission denied" for the USB-port

Is this a general Mac-problem or is there something weird with my computer?

bgschaid commented 8 years ago

Everything good after a reboot. Seems that something abotu the system was messed up before