I am using the latest JMC tag named "tip" and I am using JIRA on demand
I just incorporated JIRA mobile connect into my ios app and it is behaving a bit oddly.
After turning the debug mode on, I was able to dig a bit deeper and I find the source of this problem is that the sqlite database is locked.
The sequence of events is like follows:-
1. I launched my app for the first time
2. I created an issue successfully using JIRA mobile connect
3. I shut down my app
4. I updated the issue by adding comments in JIRA online via the web interface
5. I re-started my ios app
6. JMC gets the updates from JIRA rest api using https://xxxx.atlassian.net/rest/jconnect/1.0/issue/updates?sinceMillis=1408380024967&uuid=9371F70F-12CD-47EC-AB3E-4B0398FF453E&apikey=YYY&project=AAA- and it is able to find the updates that I had made in step 4
7. Since it finds changes,
JMCIssueStore.m
calls
updateWithData
method which has logic in it i.e.
[self createSchema:YES]
which attempts to drop the existing 2 tables and recreate the schema.
8. On the 1st table drop attempt i.e.
[db executeUpdate:@"DROP table if exists ISSUE"],
the database is found to be locked and JMC goes in an infinite loop retrying to execute this statement.
Has anyone encountered this or something similar? Any pointers would be greatly appreciated.
After going through the Angry Nerds JMC files and comparing it with my own, I realised they were exactly the same and still the Angry Nerds sample worked and mine didnt. So, I retraced all my integration steps and on reaching step 9, it struck me that when I was going through the code, there were no sign of any manual release statements - which was odd if the code was indeed not using ARC.
I removed all my -fno-objc-arc
flags from all the JMC files. And hey presto! the crashing issue isnt there anymore.
Thanks for this.
ARC was enabled to JMC a while back, and obviously the documentation was not updated.
If you provide a PR, with the ammended README, I will definitely merge it to master.
Cheers,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Quick Question. I am a bit new to this community and I was wondering how I can keep track of what are the things that people are working on / bucket list that need doing so that I can maybe contribute in some way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue tracker for JMC is at https://connect.atlassian.net/browse/CONNECT/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel.
There is no work-in-flight I currently know of. Feel free to kick something however if you wish.
The new screensizes will probably need some changes to be working well, so if you're up for that challenge, it'd be very welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , i am trying to add jira mobile connect to my xcode project and it gives out 165 errors when i compile. can you please let me know why as there is nothing wrong with my project . i have even added to a sample project and when i compile i get 160 errors because of jira mobile connect . please let me know i have been waiting this issue to get resolved from past 2 weeks . Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , i am trying to add jira mobile connect to my xcode project and it gives out 165 errors when i compile. can you please let me know why as there is nothing wrong with my project . i have even added to a sample project and when i compile i get 160 errors because of jira mobile connect . please let me know i have been waiting this issue to get resolved from past 2 weeks . Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Quick Question. I am a bit new to this community and I was wondering how I can keep track of what are the things that people are working on / bucket list that need doing so that I can maybe contribute in some way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.