Jump to content


Photo

Bug: Freeze when adding task from widget


  • Please log in to reply
8 replies to this topic

#1 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 11 March 2013 - 04:30 AM

Since few weeks back when I add new task from widget (by "+" button) whole phone freezes after pressing "checkmark/OK" button (e.g. hardware Back button doesn't work, and keyboard can't be hidden) for few (up to 10) seconds. After this, task is added to Due Today and phone starts to respond as usual.

When task is deleted from Inbox list there is freeze too, but shorter.

 

Is this can be fixed? Very annoying bug.

 

(DT: 2.0.15.210, Phone: Samsung Galaxy Ace, OS: 2.3.6, no data connection)



#2 Chris

Chris

    Administrator

  • Administrators
  • 337 posts
  • LocationUtah

Posted 27 March 2013 - 12:57 AM

That's interesting as I've never seen this issue before. I'll have to look into it. Can I ask about how many tasks you have in Due Today?



#3 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 17 April 2013 - 12:23 PM

not too many: 176 all tasks.

with version 2.1.0.301 this happen too - adding new task to inbox freezes phone for 10 secs.

 

please note that I haven't active data connection (gsm nor wifi). maybe DT is trying to sync and feezes on this try??

 

ps

I try add new task with wifi enabled and DT freezes phone too. 



#4 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 17 April 2013 - 12:47 PM

and after phone reboot there is a constant 100% CPU usage by "com.lakeridge. ..." process for 5-10 minutes!

after this again appear "multimedia files on SD card was scanned" Android's message.



#5 Chris

Chris

    Administrator

  • Administrators
  • 337 posts
  • LocationUtah

Posted 18 April 2013 - 01:24 AM

No, it's not due to the data connection as it doesn't try to sync the task immediately (there's always a one-to-two minute delay before a sync is attempted). It sounds like the database needs to be optimized a bit on your device.

 

Actually, the 5-10 minute CPU usage on boot may indicate what's going on. When you reboot your device Due Today has to reset all of its reminders. Rather than using a background service that runs constantly waiting for reminder times, Due Today uses a specific timer feature in Android that will launch a service at specific times. This service will be launched at the reminder time, check which tasks need reminders, add the notification if necessary and then terminate.

 

The downside to this approach is that when the device is reset, all of these times are erased by the OS. So, I wrote a small bootup service in Due Today to restore the reminder times. That's what you're seeing.

 

Now, if this is taking 5-10 minutes it might indicate that you have a lot more tasks in the database than you think. They might be mostly showing up as completed tasks. So, can you look at one thing for me please?

 

1) Go to your device's homescreen

2) If your device has a menu button press it and go to Settings

2a) If your device does not have a menu button, open the app drawer and select the Settings app

3) Go to Application or App Settings (or Manage Applications on some devices)

4) Locate and tap on Due Today

5) Wait for the data information to be refreshed

 

On that page it should indicate how much space Due Today is currently using. Could you please let me know that number? I'm guessing it's going to be pretty high and that would account for the general slowdown. In the meantime, I'm going to look for ways that I can speed some of these things up for you.



#6 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 18 April 2013 - 12:21 PM

Manage Applications -> Downloaded or All -> Due Today 2.1.0.301:
(I translate back to English so Labels can be translated different, but I try to maintain order)
Memory:
All = 2.08 MB
Apps = 1.98 MB
Data = 100 kB
Cache memory:
Cache memory = 0.00 B

Please note that I have Galaxy Ace - this phone have only 156 MB of "disk" space, so now I have 25 MB free, but I haven't problems with any other apps, and I not receive Android's "Low Memory/Space" warning - so this shouldn't be a cause.

btw:
1. I never use remainders in DT, I use Calendar for this
2. I have maybe 10 completed and unremoved tasks

edit:
there is a any logging feature in DT?

#7 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 25 April 2013 - 02:39 PM

this is the 3rd most viewed bug report on forum and still no fix?



#8 testerr

testerr

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 27 April 2013 - 11:48 AM

version 2.1.3.316:

+ after restart phone is not freezed, but...

- procesor is used at 100% by com.lakeridge.DueToday process for about 10 minutes

- starting of all other autostart processes are holded until DT stop using processor

- there is also 5-8s freeze after adding new task from widget (by "+" button) and pressing "checkmark/OK" button

 

so no fix so far.

 

maybe uninstalling, cleaning and installing again can fix this?

or this freezes are normal behaviour?



#9 Chris

Chris

    Administrator

  • Administrators
  • 337 posts
  • LocationUtah

Posted 16 May 2013 - 03:10 PM

Sorry. I've had some severe issues come up in my personal life that prevented me from visiting the forums for the last couple of weeks so I missed the most recent comments on this.

 

I think I know where the problem is. Could you do one thing for me, please? In Due Today go to Menu > Backup/Restore > Backup. This will create a backup file in a DueToday folder on your SD card (or internal storage, depending on your device). Would you be willing to please email me a copy of this file?

 

What I'd like to do is recreate it with your exact data giving me the possibility of tracking down the precise location in code that this is occurring. I need to do some optimizations on startup which your dataset will help me test.

 

Also, what view do you have Due Today start up in?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users