-
Notifications
You must be signed in to change notification settings - Fork 135
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
GLKTextureLoader: EXC_BAD_ACCESS #55
Comments
up! |
Hello @kopiro, do you have same problem as my? |
yes :( It works fine, but I'm trying to wrap in a Titanium module and it crashes. |
@kopiro Don't have any ideas. I will let you know when find solution. Good to know that I'm not alon |
Hello @kopiro I have fixed the problem. This error occurred due to unsupportable image size (image must have proportion 2x1). I have created crop tool for resizing any image. You can find tool here: https://gist.github.com/Rommanski/142f0b56ef553222a8fc221e2d4deee6 |
My image is 2x1 :( |
Should I crop it anyway? |
@robbykraft Maybe, there is reason to include same tool to the library? This solution will prevent problems with incorrect image size. |
@kopiro Of corse not. Unfortunately, I don't have experience with Titanium. Do you try to include this native module to your app? |
I'm working to wrap it in a Titanium module, but it doesn't works with this crash. |
thanks for solving @Rommanski yes, the instruction is in the readme, though after hearing from you, maybe it's not obvious enough. i agree! including a scaling library would be helpful, though, i'm hung up on user design details -
I'm testing to see what I can do, a 1:2 but not a power of 2 (500x250) - I'm getting no errors generated, and "info" appears to load, (even though it doesn't show, as it shouldn't):
a work around would be load the image twice. First time as a UIImage, validate width and height properties, then if all checks out load the image again as a GLKTexture.. there must be a more elegant solution |
Is there any chances that you can help me? I didn't solved yet :( On Wednesday, November 9, 2016, Robby Kraft notifications@github.com
|
@kopiro are you using the included image? what are the dimensions of the image you are using? |
I have answered on the other issue, thank you :) On Wednesday, November 9, 2016, Robby Kraft notifications@github.com
|
Hello @robbykraft Thank you for this great project!
I have builded application for swift and all works well. App works when I load image from project:
panoramaView.setImageWithName("2048.jpg")
But, when I try to show image from photo library, I got error EXC_BAD_ACCESS. Error happens in method:
-(GLKTextureInfo *) loadTextureFromImage:(UIImage *) image
Line:
info = [GLKTextureLoader textureWithCGImage:image.CGImage options:options error:&error];
I'm picking image from photo library with UIImagePickerController. Image loads and shows fine.
Will be glad for any help!
The text was updated successfully, but these errors were encountered: