armadsen / ORSSerialPort

Serial port library for Objective-C and Swift macOS apps
MIT License
752 stars 183 forks source link

CPU utilization outside of Xcode #97

Closed davecrumbacher closed 8 years ago

davecrumbacher commented 8 years ago

I have an app that uses ORSSerialPort and it works just fine when running it within Xcode. However, if I try to run app on its own, my CPU is pegged and the app becomes unresponsive. Any suggestions?

armadsen commented 8 years ago

Hi Dave,

This isn't something I've heard reported before, nor do I know off the top of my head what would cause it.

Does it occur only when the app is built in Release mode, or do you see it when running a Debug build of the app outside Xcode? Are you able to run the app, then attach the debugger to see what's using CPU cycles? What about when you run in instruments?

Let me know. I'm also happy to take a look at the project itself if you're able to share it. You can email me at andrew@openreelsoftware.com

On Feb 11, 2016, at 8:39 AM, Dave Crumbacher notifications@github.com wrote:

I have an app that uses ORSSerialPort and it works just fine when running it within Xcode. However, if I try to run app on its own, my CPU is pegged and the app becomes unresponsive. Any suggestions?

— Reply to this email directly or view it on GitHub https://github.com/armadsen/ORSSerialPort/issues/97.

davecrumbacher commented 8 years ago

Hi Andrew. It happens with both Release and Debug builds outside of Xcode. I have not done any debugging, but will let you know if I find anything. What do you mean by running "in instruments"? Thanks.

armadsen commented 8 years ago

I meant running your app in Instruments which comes with Xcode. If you're lucky, it would hopefully allow you to inspect exactly what's using up so much CPU time without masking the bug the way running directly in Xcode is doing. Just a hunch that it could be helpful.

davecrumbacher commented 8 years ago

Okay, I'm not familiar with Instruments, so I will take a look and see if I can get some useful information. Thanks.

csann commented 8 years ago

Checkout this intro to Instruments.

http://www.raywenderlich.com/97886/instruments-tutorial-with-swift-getting-started

On Feb 12, 2016, at 4:07 PM, Dave Crumbacher notifications@github.com wrote:

Okay, I'm not familiar with Instruments, so I will take a look and see if I can get some useful information. Thanks.

— Reply to this email directly or view it on GitHub.

armadsen commented 8 years ago

Closing this for no activity. If you're still seeing this or have further questions, let me know.