Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:31:08+00:00 2026-05-27T01:31:08+00:00

This has been a hard problem to diagnose and I was hoping someone could

  • 0

This has been a hard problem to diagnose and I was hoping someone could help me out.

We have an AIR app (http://www.trainerroad.com) that uses Native Process to read data from a command line that comes from a USB stick. It’s a cycling app the data is heart rate, cadence, speed and power.

While someone workouts, we record that data to a sqlite database every second. We have a sqlite connection to the database. We have a timer that ticks every second and that’s what triggers our inserts.

We have a few hundred users. A few of them have seen it where the app will run for 45 minutes fine, then hang for 30 seconds to a couple minutes. Then, it will release and the clock in the workout will tick down really fast. That means the timers are all getting hit.

This makes me think that something is hanging the app, but I can’t figure out what. The app executed the same code every second for 45 or so minutes, then suddenly freezes. (btw, it isn’t EVERY 45 minutes, but it does happen after the workout has been running for a while).

I’m thinking it has to do with SQLite. Maybe the database is being compacted while it’s being executed against? I’m stumped and I can’t reproduce this locally.

Does anyone have any ideas of how to debug this or what area of my app might be causing this? I know it’s a hard one.

update
I ran the memory profiler for 20 minutes while it was running and I didn’t see peak memory usage increase at all. I could tell it was garbage collecting by looking at the peak vs current memory usage.

I’ve added two system.gc() calls every 60 ticks. I’m hoping this doesn’t make it gittery, but I’m not doing much while it plays so I think I should be good. Not sure if this is what was causing the problem though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:31:09+00:00Added an answer on May 27, 2026 at 1:31 am

    It looks like the manual garbage collection has fixed the issue. We haven’t seen this since we put that upgrade in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for best practices to solve this hard problem: My app has a
I have tried very very hard to solve this problem. I have always been
this has been an ongoing problem with me, ive been trying to make a
This has been a rather problematic issue on numerous occasions. We have alot of
This has been driving me crazy for the past few minutes I have a
I know this question has been asked quite a few times, however, I have
I realize this question has been asked many times and I am have looked
I know this is an NP-hard problem, but a lot of our users have
I'd like to start out saying Stack Overflow has been a huge help, just
I know that this question has been asked loads of times, but I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.