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 7974855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:29:57+00:00 2026-06-04T08:29:57+00:00

I have a swing application that freezes after some (random) time. I have taken

  • 0

I have a swing application that freezes after some (random) time. I have taken 5 thread snapshots every 10 seconds after it freezes and they all contain these exact same lines:

"AWT-EventQueue-0" prio=6 tid=0x0000000009949000 nid=0x7bec waiting on condition [0x000000000ebbc000]
  java.lang.Thread.State: RUNNABLE
      at java.math.BigInteger.valueOf(Unknown Source)
      at java.math.BigDecimal.inflate(Unknown Source)
      at java.math.BigDecimal.add(Unknown Source)
      at uk.co.xx.xxx.xxxx.XXX$4.get(XXX.java:171)

Note that no other thread in the thread dump is in XXX.java.
The corresponding code line (XXX.java:171) looks somewhat inoffensive:

a = a.add(b.multiply(c, MATH_CONTEXT), MATH_CONTEXT);

where:

  • a, b and c are local BigDecimal variables.
  • MATH_CONTEXT is a public final static variable, only accessed within XXX.java

My questions (answering any of them would be great help)

  • Is this evidence of a deadlock or liveness issue (the thread does not seem to make progress but it is in RUNNABLE state)?
  • Is this the likely reason for the freeze or should I look somewhere else?
  • What would be the next step to solve the problem?
  • 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-06-04T08:29:58+00:00Added an answer on June 4, 2026 at 8:29 am

    Is this evidence of a deadlock or liveness issue (the thread does not seem to make progress but it is in RUNNABLE state)?

    I doubt it. Since the program freezes, there clearly is an issue. However, I doubt there’s a deadlock involving the code you’ve shown.

    Is this the likely reason for the freeze or should I look somewhere else?

    I think it’s likely that this is a red herring, and the problem lies elsewhere.

    What would be the next step to solve the problem?

    I personally would look into potential memory allocation and garbage collection issues. In particular, I would make sure the program isn’t spending all of its time collecting garbage and therefore failing to make progress.

    To do this, I’d use a memory profiler.

    While I am at it, I would also monitor the overall CPU and memory usage of the process, and page fault statistics (to see if there’s excessive swapping).

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

Sidebar

Related Questions

I have a Swing application that uses a Java Thread to constantly perform some
I have a swing application that uses some datas coming from an external mysql
I have a Swing application that deals with date and time, so a lot
I have a Swing application that connect directly to MySql Database for user authentication.
i have a swing application that i would like to run on os x
I have a Swing application that I would like to convert from spaghetti to
I have a Java Swing application that is being used as a cluster application.
So I have a strange problem, I have a java swing application that has
I have a simple Swing Java application that performs searches, and the results are
I have a group of radio buttons in my Swing application that have a

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.