istornz / iPokeGo

A native iOS client to map the Pokemon around you!
https://github.com/RocketMap/RocketMap
MIT License
643 stars 173 forks source link

Notification crash #313

Open ianfreitas1 opened 7 years ago

ianfreitas1 commented 7 years ago

I have two iPokeGo's instances, one is the 2.2 version downloaded from the releases page and the other I compiled with Xcode. The 2.2 version works well, but it's outdated. The 2.3 version, however, crashes when notifications are checked as soon as I run the app, when it should notify my favorite pokemon. By now I have disabled the feature and it's running fine, but I'd like to know what causes this problem. Thanks for the support.

istornz commented 7 years ago

Please share your the console log đź‘Ť

ianfreitas1 commented 7 years ago

Showing Recent Issues

Build target iPokeGo of project iPokeGo with configuration Debug

CompileC /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/Objects-normal/armv7/MapViewController.o iPokeGo/MapViewController.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/Ian/Downloads/iPokeGo-master export LANG=en_US.US-ASCII export PATH="/Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/Ian/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Users/Ian/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/Ian/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/Ian/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fembed-bitcode-marker -iquote /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/iPokeGo-generated-files.hmap -I/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/iPokeGo-own-target-headers.hmap -I/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/iPokeGo-all-target-headers.hmap -iquote /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/iPokeGo-project-headers.hmap -I/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Products/Debug-iphoneos/include -I/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/DerivedSources/armv7 -I/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/DerivedSources -F/Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Products/Debug-iphoneos -MMD -MT dependencies -MF /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/Objects-normal/armv7/MapViewController.d --serialize-diagnostics /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/Objects-normal/armv7/MapViewController.dia -c /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.m -o /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Intermediates/iPokeGo.build/Debug-iphoneos/iPokeGo.build/Objects-normal/armv7/MapViewController.o

/Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.m:946:11: warning: 'searchDisplayController' is deprecated: first deprecated in iOS 8.0 [-Wdeprecated-declarations] [self.searchDisplayController.searchResultsTableView reloadData]; ^ In module 'UIKit' imported from /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.h:9: /Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:345:77: note: 'searchDisplayController' has been explicitly marked deprecated here @property(nullable, nonatomic, readonly, strong) UISearchDisplayController searchDisplayController NS_DEPRECATED_IOS(3_0,8_0) __TVOS_PROHIBITED; ^ /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.m:982:11: warning: 'searchDisplayController' is deprecated: first deprecated in iOS 8.0 [-Wdeprecated-declarations] [self.searchDisplayController setActive:NO animated:YES]; ^ In module 'UIKit' imported from /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.h:9: /Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:345:77: note: 'searchDisplayController' has been explicitly marked deprecated here @property(nullable, nonatomic, readonly, strong) UISearchDisplayController searchDisplayController NS_DEPRECATED_IOS(3_0,8_0) __TVOS_PROHIBITED; ^ /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.m:1048:24: warning: 'searchDisplayController' is deprecated: first deprecated in iOS 8.0 [-Wdeprecated-declarations] [self.searchDisplayController.searchResultsTableView reloadData]; ^ In module 'UIKit' imported from /Users/Ian/Downloads/iPokeGo-master/iPokeGo/MapViewController.h:9: /Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:345:77: note: 'searchDisplayController' has been explicitly marked deprecated here @property(nullable, nonatomic, readonly, strong) UISearchDisplayController *searchDisplayController NS_DEPRECATED_IOS(3_0,8_0) __TVOS_PROHIBITED; ^ 3 warnings generated.

Validate /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Products/Debug-iphoneos/iPokeGo.app cd /Users/Ian/Downloads/iPokeGo-master export PATH="/Users/Ian/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/Ian/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export PRODUCT_TYPE=com.apple.product-type.application builtin-validationUtility /Users/Ian/Library/Developer/Xcode/DerivedData/iPokeGo-cbuhlyhgxpdalremakgtmegbaucm/Build/Products/Debug-iphoneos/iPokeGo.app

warning: A launch storyboard or xib must be provided unless the app requires full screen.

istornz commented 7 years ago

Share the crash log please :)

ianfreitas1 commented 7 years ago

Sorry, I'm new to Xcode itself, first day using the virtual machine. I guess what you looking for is this:

2016-09-10 15:31:00.600 iPokeGo[31314:2901848] Error reading server's location data: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0x15ee90d0 {NSUnderlyingError=0x17e97bf0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1002.)", NSLocalizedDescription=unsupported URL}

EDIT: Actually, maybe it's this:

2016-09-10 19:31:38.473 iPokeGo[32392:2964980] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSLayoutConstraint:0x1a1e44b0 UIImageView:0x1a18a610.bottom == UITableViewCellContentView:0x185a7c00.bottomMargin>", "<NSLayoutConstraint:0x1a1a8d00 UIImageView:0x1a18a610.top == UITableViewCellContentView:0x185a7c00.topMargin>", "<NSLayoutConstraint:0x1a64a920 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x185a7c00(0.5)]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1a1e44b0 UIImageView:0x1a18a610.bottom == UITableViewCellContentView:0x185a7c00.bottomMargin>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. 2016-09-10 19:31:38.491 iPokeGo[32392:2964980] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSLayoutConstraint:0x186ef5d0 UIImageView:0x18403650.top == UITableViewCellContentView:0x184173e0.topMargin>", "<NSLayoutConstraint:0x186ee2b0 UIImageView:0x18403650.bottom == UITableViewCellContentView:0x184173e0.bottomMargin>", "<NSLayoutConstraint:0x185f7380 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x184173e0(0.5)]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x186ee2b0 UIImageView:0x18403650.bottom == UITableViewCellContentView:0x184173e0.bottomMargin>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

istornz commented 7 years ago

Hum, this is only contraints problems and networking error. When the app crash, please copy & paste here the console log :)

ianfreitas1 commented 7 years ago

Well, the problem is: when my mobile isn't connected to the computer to debug with Xcode, it just crashes normally. But when I connect, it doesn't crash, the app just freezes and gives me a fatal error (dyld`dyld_fatal_error: -> 0x1fe5408c <+0>: trap
0x1fe54090 <+4>: nop)

and when I stop debugging, I get this: Message from debugger: failed to send the k packet

Could it be a problem with iOS 8? My brother's iOS 9 is working fine.