Distorsion problem
Has the new 20Gb iPod with color display the same distorsion problem (or background crackling) of high frequency/high output sound (such as piano, high output electric guitar & some deep bass output)? Please let me know because I'm planing to replace my 20Gb iPod with one color,with the new 20Gb color display.
Just read through this huge thread and draw your own conclusions:
http://discussions.info.apple.com/webx?128@@.68abd575
Similar Messages
-
I experience in photoshop, illustrator and after effects a similar performance problems. The same file on the same PC work smoothly in CS5 and in CC the system gets slow and the software sometimes crashes. Adobe bridhe CC does not work ... only my old Bridge CS5.
Noel Carboni from the forum answered in the forum... but I did not find a ways to answer back... Is the text below the "Photoshop CC's Help - System Info" Noel Carboni asked for?
Sincerly
xxxxxxxx
Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02/07:23:00:00) x64
Betriebssystem: Windows 7 64-Bit
Version: 6.1 Service Pack 1
Systemarchitektur: Intel CPU-Familie:6, Modell:7, Stepping:7mit MMX, SSE (ganze Zahl), SSE FP, SSE2, SSE3, SSE4.1
Physischer Prozessor: 4
Prozessor-Taktfrequenz: 2833 MHz
Eingebauter Speicher: 8191 MB
Freier Speicher: 5615 MB
Für Photoshop verfügbarer Arbeitsspeicher: 7178 MB
Von Photoshop verwendeter Arbeitsspeicher: 60 %
Bildkachelgröße: 1024 KB
Bildcache: 4
Schriftvorschau: Mittel
TextComposer: Lateinisch
Anzeige: 1
Anzeigebegrenzungen: oben= 0, links= 0, unten= 1200, rechts= 1920
Anzeige: 2
Anzeigebegrenzungen: oben= 0, links= 1920, unten= 1200, rechts= 3840
Mit OpenGL zeichnen: Aktiviert.
OpenGL – alte GPUs zulassen: Nicht erkannt.
OpenGL-Zeichnungsmodus: Erweitert
OpenGL – normalen Modus zulassen: Wahr.
OpenGL – erweiterten Modus zulassen: Wahr.
AIFCoreInitialized=1
AIFOGLInitialized=1
OGLContextCreated=1
NumGPUs=1
gpu[0].OGLVersion="3.0"
gpu[0].MemoryMB=1023
gpu[0].RectTextureSize=16384
gpu[0].Renderer="Quadro 2000/PCIe/SSE2"
gpu[0].RendererID=3544
gpu[0].Vendor="NVIDIA Corporation"
gpu[0].VendorID=4318
gpu[0].HasNPOTSupport=1
gpu[0].DriverVersion="9.18.13.697"
gpu[0].Driver="nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um"
gpu[0].DriverDate="20121002000000.000000-000"
gpu[0].CompileProgramGLSL=1
gpu[0].TestFrameBuffer=1
gpu[0].OCLPresent=1
gpu[0].OCLVersion="1.1"
gpu[0].CUDASupported=1
gpu[0].CUDAVersion="4.2.1"
gpu[0].OCLBandwidth=3.21234e+010
gpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="1.30 NVIDIA via Cg compiler"
gpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[65536 ]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[4]
gpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[160]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[32]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[32]
gpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[4096]
gpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[2048]
gpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[124]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[16]
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
gpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
gpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_SHADER_TEXTURE_LOD]=1
Lizenztyp: Abonnement
Seriennummer: 94070096362932215641
Anwendungsordner: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\
Pfad für temporäre Dateien: C:\Users\janine\AppData\Local\Temp\
Der virtuelle Speicher von Photoshop hat asynchronen E/A aktiviert
Arbeitsvolume(s):
D:\, 1,36 T, 635,2 GB frei
Ordner für erforderliche Zusatzmodule: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\
Primärer Zusatzmodul-Ordner: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Plug-ins\
Installierte Komponenten
ACE.dll ACE 2013/10/29-11:47:16 79.548223 79.548223
adbeape.dll Adobe APE 2013/02/04-09:52:32 0.1160850 0.1160850
AdobeLinguistic.dll Adobe Linguisitc Library 7.0.0
AdobeOwl.dll Adobe Owl 2013/10/25-12:15:59 5.0.24 79.547804
AdobePDFL.dll PDFL 2013/10/29-11:47:16 79.508720 79.508720
AdobePIP.dll Adobe Product Improvement Program 7.0.0.1786
AdobeXMP.dll Adobe XMP Core 2013/10/29-11:47:16 79.154911 79.154911
AdobeXMPFiles.dll Adobe XMP Files 2013/10/29-11:47:16 79.154911 79.154911
AdobeXMPScript.dll Adobe XMP Script 2013/10/29-11:47:16 79.154911 79.154911
adobe_caps.dll Adobe CAPS 7,0,0,21
AGM.dll AGM 2013/10/29-11:47:16 79.548223 79.548223
ahclient.dll AdobeHelp Dynamic Link Library 1,8,0,31
aif_core.dll AIF 5.0 79.534508
aif_ocl.dll AIF 5.0 79.534508
aif_ogl.dll AIF 5.0 79.534508
amtlib.dll AMTLib (64 Bit) 7.0.0.249 BuildVersion: 7.0; BuildDate: Thu Nov 14 2013 15:55:50) 1.000000
ARE.dll ARE 2013/10/29-11:47:16 79.548223 79.548223
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2013/10/29-11:47:16 79.548223 79.548223
BIBUtils.dll BIBUtils 2013/10/29-11:47:16 79.548223 79.548223
boost_date_time.dll DVA Product 7.0.0
boost_signals.dll DVA Product 7.0.0
boost_system.dll DVA Product 7.0.0
boost_threads.dll DVA Product 7.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.1.6.30929 2.1.6.30929
CITThreading.dll Adobe CITThreading 2.1.6.30929 2.1.6.30929
CoolType.dll CoolType 2013/10/29-11:47:16 79.548223 79.548223
dvaaudiodevice.dll DVA Product 7.0.0
dvacore.dll DVA Product 7.0.0
dvamarshal.dll DVA Product 7.0.0
dvamediatypes.dll DVA Product 7.0.0
dvaplayer.dll DVA Product 7.0.0
dvatransport.dll DVA Product 7.0.0
dvaunittesting.dll DVA Product 7.0.0
dynamiclink.dll DVA Product 7.0.0
ExtendScript.dll ExtendScript 2013/10/30-13:12:12 79.546835 79.546835
FileInfo.dll Adobe XMP FileInfo 2013/10/25-03:51:33 79.154511 79.154511
filter_graph.dll AIF 5.0 79.534508
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
imslib.dll IMSLib DLL 7.0.0.145
JP2KLib.dll JP2KLib 2013/10/29-11:47:16 79.248139 79.248139
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libiomp5md.dll Intel(R) OMP Runtime Library 5.0
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
LogSession.dll LogSession 2.1.2.1785
mediacoreif.dll DVA Product 7.0.0
MPS.dll MPS 2013/10/29-11:47:16 79.535029 79.535029
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
PatchMatch.dll PatchMatch 2013/10/29-11:47:16 79.542390 79.542390
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CC CC
Plugin.dll Adobe Photoshop CC CC
PlugPlugOwl.dll Adobe(R) CSXS PlugPlugOwl Standard Dll (64 bit) 4.2.0.36
PSArt.dll Adobe Photoshop CC CC
PSViews.dll Adobe Photoshop CC CC
SCCore.dll ScCore 2013/10/30-13:12:12 79.546835 79.546835
ScriptUIFlex.dll ScriptUIFlex 2013/10/30-13:12:12 79.546835 79.546835
svml_dispmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
tbb.dll Intel(R) Threading Building Blocks for Windows 4, 1, 2012, 1003
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 4, 1, 2012, 1003
updaternotifications.dll Adobe Updater Notifications Library 7.0.1.102 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 7.0.1.102
WRServices.dll WRServices Mon Feb 25 2013 16:09:10 Build 0.19078 0.19078
Erforderliche Zusatzmodule:
3D Studio 14.2.1 (14.2.1 x001)
Adaptive Weitwinkelkorrektur 14.2.1
Aquarell 14.2.1
Arithmetisches Mittel 14.2.1 (14.2.1 x001)
Basrelief 14.2.1
Bereich 14.2.1 (14.2.1 x001)
Bildpaket-Filter 14.2.1 (14.2.1 x001)
Blendenflecke 14.2.1
BMP 14.2.1
Buntglas-Mosaik 14.2.1
Buntstiftschraffur 14.2.1
Camera Raw 8.4.1
Camera Raw-Filter 8.4.1
Chrom 14.2.1
Cineon 14.2.1 (14.2.1 x001)
Collada 14.2.1 (14.2.1 x001)
CompuServe GIF 14.2.1
Conté-Stifte 14.2.1
De-Interlace 14.2.1
Diagonal verwischen 14.2.1
Dicom 14.2.1
Differenz-Wolken 14.2.1 (14.2.1 x001)
Distorsion 14.2.1
Dunkle Malstriche 14.2.1
Durchschnitt berechnen 14.2.1 (14.2.1 x001)
Eazel Acquire 14.2.1 (14.2.1 x001)
Entropie 14.2.1 (14.2.1 x001)
Erfassungsbereich 14.2.1 (14.2.1 x001)
Extrudieren 14.2.1
Farbpapier-Collage 14.2.1
Farbraster 14.2.1
Fasern 14.2.1
FastCore-Routinen 14.2.1 (14.2.1 x001)
Feuchtes Papier 14.2.1
Filtergalerie 14.2.1
Flash 3D 14.2.1 (14.2.1 x001)
Fluchtpunkt 14.2.1
Fotokopie 14.2.1
Fotos freistellen und gerade ausrichten (Filter) 14.2.1
Fotos freistellen und gerade ausrichten 14.2.1 (14.2.1 x001)
Fresko 14.2.1
Für Web speichern 14.2.1
Gekreuzte Malstriche 14.2.1
Gerissene Kanten 14.2.1
Glas 14.2.1
Google Earth 4 14.2.1 (14.2.1 x001)
Grobe Malerei 14.2.1
Grobes Pastell 14.2.1
HDRMergeUI 14.2.1
IFF-Format 14.2.1
JPEG 2000 14.2.1
Kacheleffekt 14.2.1
Kacheln 14.2.1
Kanten betonen 14.2.1
Kohleumsetzung 14.2.1
Konturen mit Tinte nachzeichnen 14.2.1
Körnung & Aufhellung 14.2.1
Körnung 14.2.1
Kräuseln 14.2.1
Kreide & Kohle 14.2.1
Kreuzschraffur 14.2.1
Kristallisieren 14.2.1
Kunststofffolie 14.2.1
Kurtosis 14.2.1 (14.2.1 x001)
Leuchtende Konturen 14.2.1
Malgrund 14.2.1
Malmesser 14.2.1
Matlab-Vorgang 14.2.1 (14.2.1 x001)
Maximum 14.2.1 (14.2.1 x001)
Median 14.2.1 (14.2.1 x001)
Mehrprozessorunterstützung 14.2.1 (14.2.1 x001)
Mezzotint 14.2.1
Minimum 14.2.1 (14.2.1 x001)
Mit Struktur versehen 14.2.1
Mit Wasserzeichen versehen 4.0
MMXCore-Routinen 14.2.1 (14.2.1 x001)
Neigung 14.2.1 (14.2.1 x001)
Neonschein 14.2.1
NTSC-Farben 14.2.1 (14.2.1 x001)
Objektivkorrektur 14.2.1
Objektivunschärfe 14.2.1
Ölfarbe 14.2.1
Ölfarbe getupft 14.2.1
OpenEXR 14.2.1
Ozeanwellen 14.2.1
Patchwork 14.2.1
PCX 14.2.1 (14.2.1 x001)
Pfade -> Illustrator 14.2.1
Photoshop 3D-Modul 14.2.1 (14.2.1 x001)
Photoshop Touch 14.0
Pixar 14.2.1 (14.2.1 x001)
PNG 14.2.1
Polarkoordinaten 14.2.1
Portable Bit Map 14.2.1 (14.2.1 x001)
Prägepapier 14.2.1
Punktieren 14.2.1
Punktierstich 14.2.1
Radialer Weichzeichner 14.2.1
Radiance 14.2.1 (14.2.1 x001)
Rasterungseffekt 14.2.1
Risse 14.2.1
Schwamm 14.2.1
Schwingungen 14.2.1
Selektiver Weichzeichner 14.2.1
Solarisation 14.2.1 (14.2.1 x001)
Spritzer 14.2.1
Standardabweichung 14.2.1 (14.2.1 x001)
Stempel 14.2.1
STL 14.2.1 (14.2.1 x001)
Strichumsetzung 14.2.1
Strudel 14.2.1
Stuck 14.2.1
Sumi-e 14.2.1
Summe 14.2.1 (14.2.1 x001)
Targa 14.2.1
Tontrennung & Kantenbetonung 14.2.1
Unterstützung für Skripten 14.2.1
Varianz 14.2.1 (14.2.1 x001)
Variationen 14.2.1 (14.2.1 x001)
Verbiegen 14.2.1
Verflüssigen 14.2.1
Versetzen 14.2.1
Verwackelte Striche 14.2.1
Verwacklung reduzieren 14.2.1
Wasserzeichen anzeigen 4.0
Wavefront|OBJ 14.2.1 (14.2.1 x001)
Weiches Licht 14.2.1
Wellen 14.2.1
WIA-Unterstützung 14.2.1 (14.2.1 x001)
Windeffekt 14.2.1
Wireless Bitmap 14.2.1 (14.2.1 x001)
Wölben 14.2.1
Wolken 14.2.1 (14.2.1 x001)
Optionale Zusatzmodule und Zusatzmodule von Drittanbietern: KEINE
Nicht geladene Plug-Ins: KEINE
Blitz:
Mini Bridge
Kuler
Adobe Exchange
Installierte TWAIN-Geräte: OHNETonakawa73 I would also recommend reviewing Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for more information on how to install the Creative applications included with your membership.
-
I am having problems with the microphone of my Iphone 4S, it is not workin
My Iphne 4S microphone it is not working, it doesn´t make any sound, and when it sound sometimes it is distorsioned.
RidgewayGiant
Re: iPhone 4s - speaker doesn't work!
Aug 21, 2012 4:49 PM (in response to taltr)
Hi had same problem today phone would ring with ring tone working but once answered could not hear person and they could not hear me .... Read a few ideas from others on this forum and realised the problem occurs after connections to bottom connection socket .... So used needle to clean out entrance to socket found fluff this probably from inside pocket etc ... Since cleaned out and it wasn't much it's worked fine .... hope this help others
Like (0) Reply -
Aspect problems of pictures and videos
I am having problems with aspect of my pictures when I importing from iPhoto to iMovie. I checked and uncheked the "automatic pilarboxing" but it is not working. I get distorsions in the pictures. Please help me.
I am having the same problem.
-
I have new Canon 70d ..
the problem when i start shooting video .. the LCD monitor shown in very high exposure ( white) .. the LCD monitor flashing with white distorsion !!
anybody and gives me recommendation for the this problem
Solved!
Go to Solution.Hi Ahmed_haider!
Welcome to The Canon Forums, and thank you for your inquiry!
We appreciate your participation, however we need to let you know that the Canon Forum is hosted and moderated within the United States by Canon USA, as such, we are only able to provide support for Canon products manufactured for and used within the US market.
If you live outside the United States, please click here and select your country or region for your support needs.
Feel free to discuss Canon products sold outside of the United States, but please be aware that you will not receive support directly from Canon USA. -
Problem with GF4 MX460 VTP - Module Capture from VCR
I have problem with my GF4.
When i try capture from VCR, the bottom of image has a distorsion, like a cut off peace.
I don't know if the driver, software of capture (Ulead Video Studeo 6.0), the "excellent" Windows XP Professional or simply my VCR.
Somebody can help me.
ThanksWalter,
I have the same problem. I don't think it's a software issue (unless the capture driver causes it). The bottom 7 lines of captured video seems like shifted right.
You can use VirtualDub ( http://www.virtualdub.org ) to capture, setting crop options to ignore last 7 lines.
I agree with CrazyCamel, use virtualdub and HuffYuv codec http://www.math.berkeley.edu/~benrg/huffyuv.html
This codec does lost free compression, and is *very* fast. You can capture at 320x240 writing average 2.2 MB/s (against over 5 MB/s uncompressed). It allows you to capture 640x480 or 720x480 (DVD quality) with low frame lost (maybe none, depending on your system).
I hope these links helps you. -
5.1 Center Speaker Problems
Hi, I have T5900 speakers on a soundblaster live! 5.1 soundcard (build .4). I don't get music playing out of my center speaker. I only hear sound effects in games etc, and the speaker works using the tests. I have read other threads, and so know that the problem can normally be solved using CMSS (because the music isn't coded for 5.1). The creative website says that the live! 5.1 has the capability, but DOESN'T tell you how to turn it on, and I cant for the life of me find the option in EAX or anywhere else in the creative software. I have used the site automatic update to check I have the latest software and drivers, so that's not the problem. (It tells me there is nothing I need to update)
But CMSS doesn't seem to be an ideal answer to it, as people get distortion in the rear speakers etc, so any solution is welcome.
And YES I have made sure it is all plugged in correctly.
And YES I have made sure that the computer is set up for 5.1 speakers in the windows "sounds and audio options" in control pannel, and in the creative soundblaster software.
Also friends of mine have this problem using the Audigy 2 ZS soundcard and 5.1 speakers, but that looks fixable with CMSS, my main problem is my soundcard is a live! 5.1.
Thanks in advance for any help.one place i know the cmss button is located is in the advanced tab of the mini view of creative media source. no its eax which will give you "distorsion" in the rear speakers its technical names include "delay" and "reverb" cmss just emulates the channels not accounted for.good luck
-
Distorsión del sonido al exportar a avi
Hola a todos,
Al exportar a avi una película con Premiere Pro se distorsiona el sonido cuando hay dos pistas de audio: sonido del clip original y música de fondo. Si solo hay una de las dos pistas se escucha bien. ¿A que puede ser debido? ¿Como puedo solucionarlo?
Muchas gracias.Parece que ya descubrí porque era. Si el proyecto es de 48000 Hz no de problemas pero si es de 32.000 es cuando hace la distorsión.
La pregunta ahora es, ¿como puedo cambiar esa propiedad del proyecto, ya que por defecto aparece deshabilitada?
Probé de crear un proyecto nuevo e importar el proyecto antiguo para añadir la secuencia pero claro me da el mismo problema. ¿Hay alguna otra solución?
Muchas gracias. -
Input problem with UCA202 usb audio interface and Garageband
Hello, i've tried to connect my guitar in my UCA202 Bheringer audio Interface, and the sound goes fine for few minutes and after i get a noisy distorsioned sound with a big delay...
I dont know if the problem comes from the MacBook, the sound card, Garageband or else...
it come only from input guitar device.
Thanks to help.
AlexThere are other posts concerning this problem. I also have a UCA202 and a Peavey PV10 USB mixer. It seams that anything using the 10.4.11 or 10.5.1 mac USB drivers are having this issue. I had to go back to 10.4.10 to resolve at this point. My recordings are clean when going back. There is 10.5.2 comming soon and it is not known if this will fix it. Check this thread for updates.
http://discussions.apple.com/message.jspa?messageID=5964474#5964474 -
Everytime I try to install something from my CD drive I get CRC errors. I sometimes get sound distorsions when I'm playing but those are not permanent and the original sounds come back after a couple of minutes. Can you help me fix this.
Intel P4 2.6
MSI 865PE Neo2
Radeon 9800 Pro
OCZ EL DDR PC-3200 / 400MHZ / Platinum / Dual Channel (2x512)
Maxtor SATA 80 Gig
CD Rom Creative 52X
LG DVD / CD Writer Combo 16X / 52XQuote
Originally posted by Starscream
I'm using Slow performance and I just bought my computer. The problems started the first time I tryed to install XP Pro and never stopped after that.
No offence.....
Gen copy of XP Pro???????
This does not sound like a MainBoard issue............???? But will help all I can.
Del -
I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
Thank you in advance,
LeftyThis was one solution from the socket programming forum, have you tried this??
public Thread MyThread extends Thread{
boolean active = true;
public void run(){
ss.setSoTimeout(90);
while (active){
try{
serverSocket = ss.accept();
catch (SocketTimeoutException ste){
// do nothing
// interrupt thread
public void deactivate(){
active = false;
// you gotta sleep for a time longer than the
// accept() timeout to make sure that timeout is finished.
try{
sleep(91);
}catch (InterruptedException ie){
interrupt();
} -
A problem with Threads and MMapi
I am tring to execute a class based on Game canvas.
The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
The MIDI tone "Stammers".
How to over come the problem?
Thanks in advance
Kobi
See Code example below:
import java.io.IOException;
import java.io.InputStream;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
public class MainScreenCanvas extends GameCanvas implements Runnable {
private MainMIDlet parent;
private boolean mTrucking = false;
Image imgBackgound = null;
int imgBackgoundX = 0, imgBackgoundY = 0;
Player player;
public MainScreenCanvas(MainMIDlet parent)
super(true);
this.parent = parent;
try
imgBackgound = Image.createImage("/images/area03_bkg0.png");
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
catch(Exception e)
System.out.println(e.getMessage());
* starts thread
public void start()
mTrucking = true;
Thread t = new Thread(this);
t.start();
* stops thread
public void stop()
mTrucking = false;
public void play()
try
InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
player = Manager.createPlayer(is, "audio/midi");
player.setLoopCount(-1);
player.prefetch();
player.start();
catch(Exception e)
System.out.println(e.getMessage());
public void run()
Graphics g = getGraphics();
play();
while (true)
tick();
input();
render(g);
* responsible for object movements
private void tick()
* response to key input
private void input()
int keyStates = getKeyStates();
if ((keyStates & LEFT_PRESSED) != 0)
imgBackgoundX++;
if (imgBackgoundX > 0)
imgBackgoundX = 0;
if ((keyStates & RIGHT_PRESSED) != 0)
imgBackgoundX--;
if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
* Responsible for the drawing
* @param g
private void render(Graphics g)
g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
this.flushGraphics();
}You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
Regds,
SD
N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM -
Hi all,
I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
Below you can find the code
import java.lang.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class intervals extends MIDlet implements CommandListener
public Display ekran;
private SweepCanvas sweeper;
private Form rundy;
private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
private long czas,x;
private Command exitCommand;
private Command addRound;
private Command delRound;
private Command start;
private TextField repeat;
private Form odliczanie;
private Alert ostrz;
Licznik thread;
String test;
StringItem test1;
int parz,i,j,k;
static int l;
int ilrund;
int ilpowt;
Item sec;
long sec1;
public intervals()
rundy = new Form("Interwały sportowe");
exitCommand = new Command("Wyjście", Command.EXIT, 2);
addRound = new Command("Dodaj","Dodaj rundę", Command.ITEM,1);
delRound = new Command("Usuń","Usuń ostatnią rundę", Command.ITEM,1);
start = new Command("Start", Command.ITEM,1);
odliczanie = new Form("Odliczanie");
TextField dodaj(TextField kolej)
kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
if(rundy.size()==0)
rundy.insert(rundy.size(),kolej);
else
rundy.insert(rundy.size()-1, kolej);
return kolej;
void odliczanie(TextField round)
monitor m=new monitor();
k=Integer.parseInt(round.getString());
ekran.setCurrent(odliczanie);
thread=new Licznik(k,odliczanie);
thread.start();
ekran.setCurrent(rundy);
public void startApp()// throws MIDletStateChangeException
rundy.deleteAll();
repeat = new TextField("Podaj ilość powtórzeń",null,1,TextField.NUMERIC);
rundy.addCommand(addRound);
rundy.addCommand(exitCommand);
rundy.setCommandListener(this);
Canvas obrazek = new MyCanvas();
ekran = Display.getDisplay(this);
ekran.setCurrent(obrazek);
czas=System.currentTimeMillis();
while (System.currentTimeMillis()<czas+1000)
continue;
ekran.setCurrent(rundy);
public void pauseApp()
public void destroyApp(boolean unconditional)
notifyDestroyed();
public void commandAction(Command c, Displayable s)
if (c == exitCommand)
destroyApp(false);
notifyDestroyed();
else if(c==addRound)
if(rundy.size()==0)//Sprawdzenie ilości elementów w celu poprawnego wyświetlania liczby rund w formie
parz=1;
else
parz=rundy.size();
switch(parz)
case 1:
round0=dodaj(round0);break;
case 2:
round1=dodaj(round1);break;
case 3:
round2= dodaj(round2);break;
case 4:
round3=dodaj(round3);break;
case 5:
round4=dodaj(round4);break;
default:
ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
ostrz.setTimeout(3000);
ekran.setCurrent(ostrz);
if(rundy.size()==1)
rundy.append(repeat);
rundy.addCommand(start);
rundy.addCommand(delRound);
else if(c==delRound)
if(rundy.size()!=0)
rundy.delete(rundy.size()-2);
if (rundy.size()==1)
rundy.deleteAll();
if(rundy.size()==0)
rundy.removeCommand(delRound);
rundy.removeCommand(start);
else if(c==start)
ilrund=rundy.size()-1;
if(this.repeat.size()>0)
ilpowt=Integer.parseInt(this.repeat.getString());
ekran = Display.getDisplay(this);
for (i=1; i<=ilpowt;i++)
odliczanie= new Form("Odliczanie");
for (j=0;j<ilrund;j++)
switch(j)
case 0:
odliczanie(round0);
break;
case 1:
odliczanie(round1);
break;
case 2:
odliczanie(round2);
break;
case 3:
odliczanie(round3);
break;
case 4:
odliczanie(round4);
break;
case 5:
odliczanie(round5);
break;
case 6:
odliczanie(round6);
break;
case 7:
odliczanie(round7);
break;
case 8:
odliczanie(round8);
break;
class Licznik extends Thread
int czas1,k;
Form forma;
monitor m;
public Licznik(int k,Form formap)
czas1=k;
forma=formap;
public synchronized void run()
while(czas1>0)
forma.deleteAll();
forma.append("Czas pozostały (s): "+czas1);
try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
czas1--;
if(czas1<=0)
m.put();
}and monitor class
public class monitor
boolean busy=false;
synchronized void get()
if(!busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
notify();
synchronized void put()
if(busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
busy=true;
notify();
}Can anybody help me with this?Groovemaker,
Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
Daniel -
Problem with threads within applet
Hello,
I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
this thread is running in endless loop.
he is doing something and go to sleep on and on.
the problem is,
when I refresh my IE6 browser I see more than 1 thread.
for debug matter, I did the following things:
inside the thread, sysout every time he goes to sleep.
sysout in the singleton constructor.
sysout in the singleton destructor.
the output goes like this:
when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
The destructor never works (no output there).
I don't understand what is going on.
someone can please shed some light?
thanks.
btw. I am working with JRE 1.1
this is very old and big applet and I can't convert it to something new.Ooops. sorry!
I did.
public void start() {
public void stop() {
public void destroy() {
try {
resetAll();
Configuration.closeConnection();
QuoteItem.closeConnection();
} finally {
try {
super.finalize();
} catch (Throwable e) {
e.printStackTrace();
} -
Problem with Threads and a static variable
I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
Code functionality:
A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
The problem as far I understand is:
Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
Thanks,
B.D.
Code:
private static volatile boolean bChanged = false;
private static Thread objMainProcess;
protected static void Init(){
objMainProcess = new Thread() {
public void run() {
while( objMainProcess == Thread.currentThread() ) {
GetState();
objMainProcess.setDaemon( true );
objMainProcess.start();
public static void initStatusTimer(){
if(objTimer == null)
objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
public void actionPerformed( java.awt.event.ActionEvent evt){
SetState();
private static void SetState(){
if( objMainProcess == null ) return;
synchronized( objMainProcess ) {
bChanged = true;
try{
objMainProcess.notify();
}catch( IllegalMonitorStateException e ) {}
private static boolean GetState() {
if( objMainProcess == null ) return false;
synchronized( objMainProcess ) {
if( bChanged) {
SendMessage();
bChanged = false;
return true;
try {
objMainProcess.wait();
}catch( InterruptedException e ) {}
return false;
}Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
Again as you said, There is a reason I can't call sendMessage() inside setState().
The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
Thanks,
B.D.
Maybe you are looking for
-
Microsoft office doesn't work with maverick
Upgraded to maverick now cant open any microsoft office 2011 applications. this is the massive error report i get Process: Microsoft Word [539] Path: /Applications/Microsoft Office 2011/Microsoft Word.app/Contents/MacOS/Microsoft W
-
Report asset values for segment?
Hi all, so I have been trying to see if it is possible to get a list of all assets but grouped by segment. At the moment, during posting the system knows which segment to post to according to cost center. Also, according to cost center, it is easy to
-
Problem while generating Encrypted PDF in batch
Hi PPl I am generating encrypted PDF in batch. I have one requirement to generate about 1 lakh PDFs. But when i start my batch initially it works fine but after generating round about 25 PDF my program get stuck at Document.copyToFile method and afte
-
Duplicate appointments and problems synching calendar
I am using Outlook 2003 and the Blackberry Curve with v4.2.2.180 software. I don't use Enterprise Server. When I synch my BB with Outlook, it has started to do a few odd things. First, it wants to delete items from my Outlook. Second, it changed
-
I have OS and photoshop CC my spacebar doesn't turn into the hand anymore
I don't know if I pressed a series of keys that took away the action of my spacebar turning into the hand tool but my spacebar now doesn't turn into the hand tool. I have looked into the Keyboard short cuts and found the Hand tool. It has an H next