Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programm Crash when started #42

Closed
Scybe1 opened this issue Feb 8, 2022 · 6 comments
Closed

Programm Crash when started #42

Scybe1 opened this issue Feb 8, 2022 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Scybe1
Copy link

Scybe1 commented Feb 8, 2022

Hey together- I am new here. i was searching for absolutely the programm you coded. Problem is, just the version 1.2 is working. higher ones does not work. I am Using MAC OS 10.15.7 on a Macbook Pro 2013 16 GB.

Is there something i could change to run the programm ?

Thank you very much !!
Crash Report1.3.1.txt

@Scybe1 Scybe1 added the bug Something isn't working label Feb 8, 2022
@stale
Copy link

stale bot commented Mar 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 25, 2022
@joekw
Copy link

joekw commented Mar 31, 2022

I'm seeing this too. Looks like uvcUnit is set to -1.

Crashes here at wIndex

var request: IOUSBDevRequest = IOUSBDevRequest(bmRequestType: requestType,
                                                       bRequest: UInt8(type.rawValue),
                                                       wValue: UInt16(uvcSelector<<8),
                                                       wIndex: (UInt16(uvcUnit)<<8) | UInt16(uvcInterface),
                                                       wLength: UInt16(length),
                                                       pData: &value,
                                                       wLenDone: 0)

@stale stale bot removed the wontfix This will not be worked on label Mar 31, 2022
@atchinson
Copy link

Do you have OBS Studio installed on your Mac or some other virtual non usb camera? Sometimes the app works, most of the time it crashes complaining about a negative number.

My other Mac without OBS seems to work fine.

jazzychad added a commit to jazzychad/CameraController that referenced this issue Apr 28, 2022
Adds two guard statements in relevant methods in UVCControl.swift so
that casting a negative `uvcUnit` Int to UInt16 no longer crashes the
app.
@jazzychad
Copy link
Contributor

I have opened a PR for this issue: #57

Itaybre added a commit that referenced this issue Apr 29, 2022
Fix crash for negative uvcUnit integers (Issue #42)
@jazzychad
Copy link
Contributor

This can probably be closed now? (unless you want to cut another release first?)

@Itaybre
Copy link
Owner

Itaybre commented May 5, 2022

You are right, closing it now

@Itaybre Itaybre closed this as completed May 5, 2022
@Itaybre Itaybre added this to the 1.4.0 milestone May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants