shripalsoni04 / nativescript-geofire-plugin

A GeoFire plugin for nativescript for location based queries in realtime using Firebase.
MIT License
8 stars 3 forks source link

iOS : app crash on query.on when location not valid #5

Open GrEg00z opened 6 years ago

GrEg00z commented 6 years ago

When I use a very large radius on NSGeoFire query (like 5000km), then the app crash Here is the Xcode stack trace :

*** JavaScript call stack:
(
    0   observeReadyWithBlock@[native code]
    1   on@file:///app/tns_modules/nativescript-geofire-plugin/nativescript-geofire.js:74:59
    2   @file:///app/home/home.component.js:83:29
    3   run@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:125:49
    4   @file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:760:60
    5   runTask@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:165:57
    6   drainMicroTaskQueue@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:593:42
    7   promiseReactionJob@:1:11
    8   UIApplicationMain@[native code]
    9   start@file:///app/tns_modules/tns-core-modules/application/application.js:211:26
    10  bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:72:28
    11  bootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:60:26
    12  anonymous@file:///app/main.js:6:57
    13  evaluate@[native code]
    14  moduleEvaluation@:1:11
    15  @:7:50
    16  promiseReactionJob@:1:11
)
2017-08-03 21:59:02.934263 myApp[1505:429250] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Not a valid geo location: [94.146791,2.527707]'
*** First throw call stack:
(0x190f211b8 0x18f95855c 0x190f21100 0x100aad718 0x100aada18 0x100aaf7c4 0x100aaf654 0x100aafa70 0x100ab13ac 0x100ab4684 0x100ab6f9c 0x10141c044 0x10141b11c 0x10141ac34 0x100b514fc 0x101185b94 0x10118e218 0x10118e228 0x10118e1c4 0x10118e1c4 0x10118e1c4 0x10118e1c4 0x10118e1c4 0x101187b08 0x1011275a0 0x10110453c 0x101264240 0x1012ec060 0x100b59afc 0x100b58354 0x190eceb5c 0x190ece4a4 0x190ecc0a4 0x190dfa2b8 0x1928ae198 0x196e417fc 0x196e3c534 0x10141c044 0x10141b11c 0x10141ac34 0x100b514fc 0x101185b94 0x10118e218 0x10118e228 0x10118e228 0x10118e228 0x101187b08 0x1011275a0 0x10110453c 0x101264174 0x100b61fe4 0x1012f03d0 0x10118ebf4 0x10118e228 0x10118e228 0x10118e228 0x101187b08 0x1011275a0 0x10110453c 0x101264240 0x1012ec060 0x100b59afc 0x100b9a05c 0x100094ee4 0x18fddd5b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

I'm situed in Paris, and radius at 4500km works, whereas 4800km cause an app crash

Problem happen only on iOS (with version 2.0.1 of this plugin)