Giter VIP home page Giter VIP logo

Comments (6)

kopiro avatar kopiro commented on July 30, 2024
[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.

mayakraft avatar mayakraft commented on July 30, 2024

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.

kopiro avatar kopiro commented on July 30, 2024

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.

mayakraft avatar mayakraft commented on July 30, 2024

okay. good to rule out the image. yes sounds like this is more of a titanium related problem

from panorama.

mayakraft avatar mayakraft commented on July 30, 2024

i will be interested to hear how the threading works. debugging textures is something i haven't much experience in

from panorama.

kopiro avatar kopiro commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.