Skip to content

PropLoader hangs when specifying a /dev/tty port, instead of /dev/cu port, on a Mac. #31

Closed
@vampjaz

Description

@vampjaz

[EDITED by PropGit - Issue title renamed; it was first thought to be a problem with opening a file (and hanging) but later seemed to be a problem due to specifying a tty port instead of a cu port on the Mac]

I'm on a Mac, trying to load some code on to my Quickstart Board, and I'm having a very strange error. When I'm in the spin-standard-library repository that I cloned to test out the demos, I can compile (using OpenSpin) all the files fine and upload them over serial to my Prop. However, if I copy the files anywhere else on my computer, PropLoader will just say "Opening file 'temp.binary'" and hang forever.

The weird thing is that when I copy any other spin or binary files into the Spin Standard Library directory, they can upload fine. When the process hangs, it doesn't use any CPU, it just resets the prop and prints that message. I sampled the execution after it did this:

Sampling process 43491 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling proploader (pid 43491) every 1 millisecond
Process:         proploader [43491]
Path:            /Users/dev/Documents/Programming/git/PropLoader/proploader
Load Address:    0x101963000
Identifier:      proploader
Version:         0
Code Type:       X86-64
Parent Process:  bash [36574]

Date/Time:       2017-03-25 09:28:50.553 -0600
Launch Time:     2017-03-25 09:25:17.509 -0600
OS Version:      Mac OS X 10.12.3 (16D32)
Report Version:  7
Analysis Tool:   /usr/bin/sample
----

Call graph:
    2743 Thread_484463   DispatchQueue_1: com.apple.main-thread  (serial)
      2743 start  (in libdyld.dylib) + 1  [0x7fff9e590255]
        2743 main  (in proploader) + 7830  [0x101965dd6]
          2743 Loader::fastLoadImage(unsigned char const*, int, LoadType)  (in proploader) + 353  [0x101969571]
            2743 SerialPropConnection::loadImage(unsigned char const*, int, unsigned char*, int)  (in proploader) + 81  [0x10196bc31]
              2743 SerialPropConnection::loadImage(unsigned char const*, int, LoadType)  (in proploader) + 262  [0x10196bd96]
                2743 SerialPropConnection::sendData(unsigned char const*, int)  (in proploader) + 83  [0x10196b553]
                  2743 SendSerialData  (in proploader) + 39  [0x101974457]
                    2743 write  (in libsystem_kernel.dylib) + 10  [0x7fff9e6c087a]

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        write  (in libsystem_kernel.dylib)        2743

Any ideas? The proploader binary is in /Users/dev/Documents/Programming/git/PropLoader/proploader and is symlinked to /usr/local/bin/. The only directory that seems to work when uploading is /Users/dev/Documents/Programming/git/spin-standard-library and its subfolders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions