freeze

GUI Threading in Java (and SwingUtilities)

假装没事ソ 提交于 2019-11-27 08:21:24
问题 I'm making a simple game in Java using swing and am having problems with my GUI freezing up sporadically (due to threading issues most probably) after a button press that is supposed to trigger a switch in JPanels. I posted a related thread here, which has more details about the actual code I'm currently using (although I did update the countdown and get that working fine). From answers to that thread, it seems like using SwingUtilities.invokeLater() or invokeAndWait() might be what I need to

ASP.NET site sometimes freezing up and/or showing odd text at top of the page while loading, on load balanced servers

你离开我真会死。 提交于 2019-11-27 05:21:14
I have various servers (dev, 2 x test, 2 x prod) running the same asp.net site. The test and prod servers are in load-balanced pairs (prod1 with prod2, and test1 with test2). The test server pair is exhibiting some kind of (super) slowdown or freezing during about one in ten page loads. Sometimes a line of text appears at the very top of the page which looks something like: 00 OK Date: Thu, 01 Apr 2010 01:50:09 GMT Server: Microsoft-IIS/6.0 X-Powered_By: ASP.NET X-AspNet-Version:2.0.50727 Cache-Control:private Content-Type:text/html; charset=ut (the beginning and end are "cut off".) Has anyone

genymotion stays on black screen when loading emulator

◇◆丶佛笑我妖孽 提交于 2019-11-27 03:36:58
问题 When i start a new virtual device with genymotion sometimes it will get stuck on the black screen and not load. Sometimes it will work especially just after a restart, otherwise it will hang on the black screen and become unusable. 回答1: If the emulator freezes or crashes this is likely due to incompatability with your video card driver. If however it just hangs on the black screen, this can be due to two reasons: Your Firewall or other program is blocking genymotion If this is likely the case

Xcode stuck on Indexing

倾然丶 夕夏残阳落幕 提交于 2019-11-27 00:07:20
A project I've been working for 2 months stopped working for no reason because Xcode got stucked on "Indexing". I can't Build the project anymore. If I try to build, Xcode freezes and I have to force quit. This happens only with this project. I tried cleaning all derived data but didn't help. I'm using Xcode 4.5.2. Any ideas? Pratik Mistry Open your Project Folder. Find ProjectName.xcodeproj file. Right-Click Copy and Paste to Safe Place. Right-Click Show Package Contents. Find project.xcworkspace file and delete that file. Reopen Your Project and clean and Rebuild. If your problem is not

How to make a thread not freeze you whole JFrame. JAVA

醉酒当歌 提交于 2019-11-26 22:00:30
问题 Hey i just need a question answered... How would i make the following code not freeze my whole JFrame? try { Thread.sleep(Integer.parseInt(delayField.getText()) * 1000); System.out.println("Hello!"); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } 回答1: use a different thread to perform this task. If you do this in the main UI thread then it will freeze.. For example you can do following new Thread() { @Override public void run() { try { Thread.sleep(Integer.parseInt

Eclipse freeze accessing project -> properties -> android tab

放肆的年华 提交于 2019-11-26 20:57:57
问题 Like the question says, no mater what project i try this on, old or brand new, when I right click on the project and go to properties, then select the Android tab (I want to add a library), Eclipse freezes. I have to kill it. Has anyone run into this problem or know how I might fix it? Thanks EDIT: Eclipse SDK Version: 3.6.2 Build id: M20110210-1200 EDIT: Or is there another way to add a library. I want to try out ActionbarSherlock :) 回答1: Ok, so I don't claim to understand it, but I've tried

Starting ServerSocket on Java with User Interface(Swing) Freezes

这一生的挚爱 提交于 2019-11-26 18:39:09
问题 Good day, I have an infinite loop for a ServerSocket, working fine... The problem is when I try to start the ServerSocket with a button. My user interface "Freeze" don't move, anything, but the server is up and fine, here I have a ScreenShot : http://i.gyazo.com/15d331166dd3f651fc7bda4e3670be4d.png When I press the button "Iniciar" means Start server, the User Interface Freezes (ServerSocket infinite loop). I can't change my code because its working fine. public static void iniciarServer() {

Google Maps JSv3 Freezes for a few seconds every 30 seconds

*爱你&永不变心* 提交于 2019-11-26 18:38:35
问题 As per title, does anyone know why it freezes every 30 seconds? I figured that it was some sort of timer with Google Maps but cant find any such reference. To recreate, simply copy into a local file the full html + javascript from: https://developers.google.com/maps/documentation/javascript/examples/map-simple Open the local html file and then just move the map around and it will freeze within 30 seconds. Once it unfreezes, it works fine until 30 seconds have elapsed. Seems to only happen in

Android - Key Dispatching Timed Out

寵の児 提交于 2019-11-26 16:32:20
In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing. Here is what gets printed in the log: WARN/WindowManager(88): Key dispatching timed out sending to package name/Activity WARN/WindowManager(88): Dispatch state: {{KeyEvent{action=1 code=5 repeat=0 meta=0 scancode=231 mFlags=8} to Window{432bafa0 com.android.launcher/com.android.launcher.Launcher paused=false} @ 1281611789339 lw=Window{432bafa0 com.android.launcher/com.android.launcher

Program freezes during Thread.sleep() and with Timer

随声附和 提交于 2019-11-26 11:56:24
Original question: This method is supposed to change the image being displayed on a JFrame gradually into another image. However, without some way to slow it down, it just seems to change from one image to the new image. In order to slow it down, I put in a Thread.sleep(1000) so the changes wouldn't happen instantly. However, with this line in there, my program freezes completely. No error message, no nothing. Can anyone please help me out? Suggest a better method to slow it down, or how this can be fixed. For clarification: int k is the number of gradual steps in the change. k = 1 would be an