Comments (6)
[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] Reason:
[ERROR] -[__NSArrayM name]: unrecognized selector sent to instance 0x600000053410
[ERROR] Stack trace:
[ERROR]
[ERROR] 0 CoreFoundation 0x0000000115742333 __exceptionPreprocess + 147
[ERROR] 1 libobjc.A.dylib 0x0000000114d1121e objc_exception_throw + 48
[ERROR] 2 CoreFoundation 0x00000001157b1f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
[ERROR] 3 CoreFoundation 0x00000001156c7c15 ___forwarding___ + 1013
[ERROR] 4 CoreFoundation 0x00000001156c7798 _CF_forwarding_prep_0 + 120
[ERROR] 5 Test 0x000000010e80c45a -[Sphere execute] + 93
[ERROR] 6 Test 0x000000010e80a391 -[PanoramaView renderScene] + 458
[ERROR] 7 GLKit 0x000000010f71f148 -[GLKView _display:] + 304
[ERROR] 8 QuartzCore 0x00000001139d4a62 _ZN2CA5Layer7displayEv + 140
[ERROR] 9 QuartzCore 0x00000001139c957e _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 294
[ERROR] 10 QuartzCore 0x00000001139c9611 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
[ERROR] 11 QuartzCore 0x0000000113957680 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
[ERROR] 12 QuartzCore 0x0000000113984767 _ZN2CA11Transaction6commitEv + 475
[ERROR] 13 QuartzCore 0x00000001139850d7 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
[ERROR] 14 CoreFoundation 0x00000001156e6e17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
[ERROR] 15 CoreFoundation 0x00000001156e6d87 __CFRunLoopDoObservers + 391
[ERROR] 16 CoreFoundation 0x00000001156cbb9e __CFRunLoopRun + 1198
[ERROR] 17 CoreFoundation 0x00000001156cb494 CFRunLoopRunSpecific + 420
[ERROR] 18 GraphicsServices 0x0000000117f5ea6f GSEventRunModal + 161
[ERROR] 19 UIKit 0x00000001108de964 UIApplicationMain + 159
[ERROR] 20 Test 0x000000010e1565b6 main + 310
[ERROR] 21 libdyld.dylib 0x0000000117ace68d start + 1
[ERROR]
[ERROR] 2016-11-04 15:37:56.287 Test[96367:1879155] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM name]: unrecognized selector sent to instance 0x600000053410'
[ERROR] *** First throw call stack:
[ERROR] (
[ERROR] 0 CoreFoundation 0x000000011574234b __exceptionPreprocess + 171
[ERROR] 1 libobjc.A.dylib 0x0000000114d1121e objc_exception_throw + 48
[ERROR] 2 CoreFoundation 0x00000001157b1f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
[ERROR] 3 CoreFoundation 0x00000001156c7c15 ___forwarding___ + 1013
[ERROR] 4 CoreFoundation 0x00000001156c7798 _CF_forwarding_prep_0 + 120
[ERROR] 5 Test 0x000000010e80c45a -[Sphere execute] + 93
[ERROR] 6 Test 0x000000010e80a391 -[PanoramaView renderScene] + 458
[ERROR] 7 GLKit 0x000000010f71f148 -[GLKView _display:] + 304
[ERROR] 8 QuartzCore 0x00000001139d4a62 _ZN2CA5Layer7displayEv + 140
[ERROR] 9 QuartzCore 0x00000001139c957e _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 294
[ERROR] 10 QuartzCore 0x00000001139c9611 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
[ERROR] 11 QuartzCore 0x0000000113957680 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
[ERROR] 12 QuartzCore 0x0000000113984767 _ZN2CA11Transaction6commitEv + 475
[ERROR] 13 QuartzCore 0x00000001139850d7 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
[ERROR] 14 CoreFoundation 0x00000001156e6e17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
[ERROR] 15 CoreFoundation 0x00000001156e6d87 __CFRunLoopDoObservers + 391
[ERROR] 16 CoreFoundation 0x00000001156cbb9e __CFRunLoopRun + 1198
[ERROR] 17 CoreFoundation 0x00000001156cb494 CFRunLoopRunSpecific + 420
[ERROR] 18 GraphicsServices 0x0000000117f5ea6f GSEventRunModal + 161
[ERROR] 19 UIKit 0x00000001108de964 UIApplicationMain + 159
[ERROR] 20 Test 0x000000010e1565b6 main + 310
[ERROR] 21 libdyld.dylib 0x0000000117ace68d start + 1
[ERROR] )
[ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException
[ERROR] of type NSException
from panorama.
Hi @kopiro
I've never used Titanium, so I'm going to try my best -
it looks like it's trying to call the "name" function (maybe on an NSMutableArray?), this is happening during the texture loading (lines 550 - 600 about)
did you make sure your image is 1:2, and a power of two (example 1024x2048), no larger than 4096? these have to be very precise, it's due to OpenGLES texture restrictions.
If you can log the status of the "info" variable as a texture is loaded maybe we can know more
from panorama.
Hi, tomorrow I will write more detailed info, but the crash occurs exactly
when using glBindTexture.
I read that could be a race condition problem and someone has solved using
NSLock, because Titanium uses different threads. But this is really only an
ipothesis.
The image I'm trying to load is the one provided in the project
(park_2048.jpg), so I'
m pretty sure that's not an image problem.
On Wednesday, November 9, 2016, Robby Kraft [email protected]
wrote:
Hi @kopiro https://github.com/kopiro
I've never used Titanium, so I'm going to try my best -
it looks like it's trying to call the "name" function (maybe on an
NSMutableArray?), this is happening during the texture loading (lines 550 -
600 about)
did you make sure your image is 1:2, and a power of two (example
1024x2048), no larger than 4096? these have to be very precise, it's due to
OpenGLES texture restrictions.
If you can log the status of the "info" variable as a texture is loaded
maybe we can know more—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#56 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzQFBoHorGNBXJ-x6I5rLXz7yho10AJks5q8hW6gaJpZM4Kpb8f
.
from panorama.
okay. good to rule out the image. yes sounds like this is more of a titanium related problem
from panorama.
i will be interested to hear how the threading works. debugging textures is something i haven't much experience in
from panorama.
So, the crash, as prev said, occurs when the code calls glBindTexture
, with a EXC_BAD_ACCESS call, in the [sphere execute]
(or [meridians execute]
if uncommented).
If I uncomment glBindTexture
, no crash occurs, but of course no image has been drawn.
This is my current implementation, do you see any problem that I can't see?
https://github.com/caffeinalab/ti.panorama/blob/master/iphone/Classes/PanoramaViewController.m
PS I have a question, why do you call twice the glBindTexture
?
https://github.com/caffeinalab/ti.panorama/blob/master/iphone/Classes/PanoramaView.m#L559
https://github.com/caffeinalab/ti.panorama/blob/master/iphone/Classes/PanoramaView.m#L536
from panorama.
Related Issues (20)
- Just detect touch Swift 3 HOT 1
- How do i get same woking of lockPanToHorizon with landscape mode in device HOT 3
- Set Image directly instead of name/path HOT 1
- adapting image orientation with device orientation HOT 2
- How can I set the current viewing direction to the center of the image? HOT 2
- How to Use the Panorama View for UIView? HOT 1
- Camera Features Support HOT 3
- setImage and setImageWithName not working when I try to set it from directory or bundle directory HOT 2
- Large Image not loading. HOT 2
- Tiny planet effect by zooming out HOT 1
- EXC_BAD_ACCESS on iOS 11 HOT 4
- how to set image size for scale 16:9 HOT 1
- Unable to build pod in swift project HOT 2
- Library for Android
- iOS black screen HOT 1
- Control Zooming
- Its not working on iOS
- Migrate to Swift and Metal?
- How to use pitch and yaw to place hotspots ?
- Port to Swift/Metal is available: dhoerl/Panorama
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panorama.