Problema de guardado en fotolibro

En adobe lightroom 4.4 he creado un fotolibro de 170 páginas y cuando intento exportar el mismo a blurb, pdf, o jpeg el sistema no me genera ningún archivo. Le doy click a cualquiera de las 3 opciones y nada sucede. ¿Qué puede estar sucediendo?

Usted necesita tomar su Mac a una tienda de Apple o proveedor de reparación certfied Apple.
Siendo un usuario de foro de usuarios, y no Apple, aquí nadie puede decir si o no la garantía cubrirá los problemas de visualización.
Apple - Soporte - iMac basado en Intel - Contactar al soporte

Similar Messages

  • Imac que la pedi con disco solido o flash storage problemas de guardado

    tengo una imac que la pedi con disco solido o flash storage mas un disco duro como puedo que solo las aplicaciones las use en flash y los documentos en el disco duro por ejemplo del iphoto

    Spanish:
    Yo no hablo español así que por favor acepte mis disculpas por la mala traducción del Inglés al Español.
    La barra gris que se ve en el inicio puede indicar que el sistema detectaun error de disco duro. Le sugiero que ejecuta la aplicación Utilidad de Discos que se pueden encontrar en las aplicaciones o carpeta Utilidades. Si detecta errores significativos cuando se ejecuta la opción "Verificar disco", entonces mi recomendación es realizar una copia de sus datos y tener el iMac a un proveedor de servicios para su posterior evaluación.
    Si usted está interesado en el control de la unidad de disco duro SMART(Self-Monitoring, Analysis, y Presentación de Informes de Tecnología)registros de errores a continuación, descargar la aplicación SMART Utility desde:
    http://www.volitans-software.com/smart_utility.php
    Si los informes de utilidad para aplicaciones de Smart SMART de estadoque la unidad ha fallado o está fallando entonces es probable que necesites un nuevo disco duro.
    English:
    I do not speak Spanish so please accept my apologies for the poor translation from English to Spanish.
    The gray bar you see at startup may indicate that your system is detecting a hard drive error. I suggest running the Disk Utility application which can be found in the Applications/Utilities folder. If you detect any significant errors when running the 'verify disk' option then my recommendation is to back up your data and take the iMac in to a service provider for further evaluation.
    If you are interested in checking the hard drive SMART (Self-Monitoring, Analysis, and Reporting Technology) error logs then download the SMART Utility application from:
    http://www.volitans-software.com/smart_utility.php
    If the SMART Utility application SMART status reports that your drive has failed or is failing then you will probably need a new hard drive.

  • Problemas con el audio de Adobe Premiere Pro. CS5.5

    Hola! 
    Recientemente adquirí el programa Adobe Premiere Pro. versión CS5.5. He echo vídeos, ediciones, en fin cosas sencillas. Pero últimamente tengo un problema y quería consultarles a ver si me podrían ayudar. Cuando importo un vídeo al programa, ya sea desde el CD-DVD o que este guardado en la computadora, y lo arrastro hasta el timeline y le doy play me aparece el vídeo que importe, pero con un audio de un vídeo que había editado anteriormente en el programa,no el audio que se supone que sea de la grabación. Espero que me pueda ayudar con el problema que tengo. 
    Gracias anticipadamente.

    yea i am using the right sequence
    here are 4 screen shots of 2 different things i was editing, both used to record my xbox 360 with Hauppauge, Seems adobe is the only program playing the video file with the audio out of sync/mixed up
    [URL=http://imageshack.us/photo/my-images/803/screenshotlrh.png/][IMG]http://img803.imageshack.us/img803/1669/screenshotlrh.png[/IMG][/URL]
    [URL=http://imageshack.us/photo/my-images/826/screenshot2yv.png/][IMG]http://img826.imageshack.us/img826/3012/screenshot2yv.png[/IMG][/URL]
    [URL=http://imageshack.us/photo/my-images/841/screenshot3aa.png/][IMG]http://img841.imageshack.us/img841/7042/screenshot3aa.png[/IMG][/URL]
    [URL=http://imageshack.us/photo/my-images/5/screenshot4on.png/][IMG]http://img5.imageshack.us/img5/6096/screenshot4on.png[/IMG][/URL]
    The Yellow Devil May Cry video is the video with the audio problem,
    The metal gear rising video is red because of the pic above it, and the sound works ok on that, infact that video is finished and uploaded to youtube now.

  • Adobe Illustrator y el auto guardado

    Señores
    prácticamente es una consulta por adobe Illustrator CC, por que no se le incorporo la función de auto guardado, ya que se le incorporo a Adobe  PS CC, la cual ya incorporaba una función de recuperar archivos. Cual fue el problema de incorporarlos a adobe  Ai CC.
    Saluda
    Atte
    Andre Perez

    Andre,
    Para documentos complicados, copia de seguridad automática (auto guardado) puede interferir con su trabajo e incluso hacer que se caiga.
    Sería bueno tenerlo como una opción, por supuesto.

  • Problema para guardar en pdf

    Cuando pongo GUARDAR en PDF.. se queda ahi sin hacer nada el programa, no puedo hacer nada.. pero si toco ESC ya esta normal, pero no me salen opciones de GUARDADO DE PDF; por lo cual no puedo hacer nada.
    No se si toque alguna configuracion o que. Necesito ayuda, gracias!

    Illustrator 5.1 , cuando quiero guardar en PDF... no hace nada.. se queda congelado... y no puedo hacer nada.. y si toco ESC ya vuelvo a la normalidad, pero sin poder guardar en PDF 
    Por favor ayudeme.
    Gracias
    Date: Wed, 15 Feb 2012 13:19:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: Problema para guardar en pdf
        Re: Problema para guardar en pdf
        created by Dave Stromfeld in Adobe CreatePDF - View the full discussion
    Hola, Alejandro.Lo siento por los problemas que tiene usted.¿Qué programa usa usted para guardar los archivos de PDF? Nuestro servicio de CreatePDF o Adobe Acrobat o Adobe Reader? Vamos a tratar de ayudar a usted mas.Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4208984#4208984
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4208984#4208984. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe CreatePDF by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Iphoto si blocca durante l'ordine di un fotolibro

    Completato il fotolibro ho ciccato su 'acquista fotolibro'', appare la maschera del tuo ordine che riepiloga il nr dei pezzi ed il prezzo, richiede solo il CAP per il calcolo dei giorni di spedizione (che non funziona) ed in fondo alla pagina i tasti 'annulla' e 'cassa', da qui non succede niente se si clicca cassa, non si accede alla videata della scelta del sistema di pagamento e nemmeno a quella di scelta dell'indirizzo di spedizione, in pratica non è possibile procedere con l'acquisto del fotolibro. E' da ieri che provo, varie volte durante il giorno, ma sempre con lo stesso risultato. Qualcuno può aiutarmi? Grazie!!!!

    google translation
    photo crashes when ordering a photo book
    Completed the photobook I clicked on 'buy photo book', 'the mask of your order appears that summarizes the nr of the pieces and the price, it only requires your ZIP code to calculate the shipping days (which does not work) and at the bottom of the page keys 'cancel' and 'cash', hence nothing happens if you click checkout, it leads to the selection screen of the payment system and even the choice of the shipping address, in practice it is not possible to proceed with the 'purchase of your book. And 'since yesterday I feel, at various times during the day, but always with the same result. Can anyone help me? Thank you !!!!
    Does it crash - or just not complete the order?  The Apple print service services have had problems for about 2 days and there is no information on resolving it - but if it just does not complete it should within a day or so
    LN

  • Problema línea azul gruesa en pantalla ipad air

    Se me cayó el ipad air y empezó a aparecer una línea azul gruesa que se mueve de lado a lado; hice el respectivo backap en mi computador y dejé el ipad para revisión, el cual se reinstaló y cuando volví a meter toda la información, volvió a aparecer la línea azul; dejé, entonces, el ipad para revisión.
    Coincidencialmente pude meter toda la información que había guardado en mi computador en otro ipad air nuevo y sigue la línea azul. Qué puedo hacer?

    que tal amigo, yo me ecnontraba con el mismo problema y tras hacer una restauracion seguia con ese inconveniente pero ya lo he solucionado, lo que hice fue restaurar mi ipad nuevamente pero esta vez la puse como nuevo ipad, es decir sin copia de seguridad ni nada y me resulto de maravilla pues ya no ha regresado la linea azul, a mi parecer lo que ocasiona ese problema es una aplicacion pero no se cual sea, mi problema empezo en junio de este año y ya cheque que aplicaciones instale de esa fecha para aca, te dejo la lista de las apps que te menciono puede ser que tu igual tengas instalada alguna y tal vez eliminando soluciones ese problema y sino pues con la restauracion configurando como nuevo dispositivo queda, suerte. 1) netflix 2) trivia crack 3)Rayman Jungle Run 4)scanner pro by readdle.
    algunas de esas aplicaciones creo puede estar ocasionando ese problema.

  • Mensajes guardados

    Hola que tal mi nombre es Gian Luca y tengo un problema
    Yo tengo un iPhone 4s y sí voy a ajustes^general^uso me fijo que me ocupa 1Gb los mensajes guardados como los borro?? Me pasa igual con los Mail como hago ???
    Gracias

    1. Restore in iTunes to a backup not containing those messages.
    2. To free more space, Restore in iTunes. Setup as new. Sync back personal data using iTunes Tabs.

  • Iphoto 9.1.2 and new 9.1.3 update crash on assembling pdf preview of fotolibro template

    Iphoto 9.1.2 and new 9.1.3 update crash on assembling pdf preview of fotolibro template, i have test any solution but none, i have imac and macbook pro with same problem, snow leopard 10.6.7. I have install fresh snow leopard on new hard drive, i have install iphoto with any update and i have update snow to 10.6.6, preview pdf of fotolibro template does not crash !
    NB. iphoto on my macbook pro crash on 3 page, on my imac the process continue but the image on pdf preview is bad.
    Sorry for my bad english

    Does this make any sense?  Rebuilt it and worked for a while then this bug showed up.  Desperate.
    Process:         iPhoto [1772]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         9.1.3 (9.1.3)
    Build Info:      iPhotoProject-6070000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [127]
    Date/Time:       2011-05-17 15:25:23.035 -0700
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          411775 sec
    Crashes Since Last Report:           17
    Per-App Interval Since Last Report:  283 sec
    Per-App Crashes Since Last Report:   13
    Anonymous UUID:                      D7B8F200-B763-44B6-B124-D9508195FA1B
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
    Crashed Thread:  29
    Thread 0:  Dispatch queue: com.apple.main-thread
    0   com.apple.ColorSync                     0x94aa7620 CMM8Bit3ChanNoConvDecoder::DoDecode(CMM8Bits const&, CMMRuntimeInfo*, unsigned long) + 152
    1   com.apple.ColorSync                     0x94a90573 CMMProcessBitmap(CMMConversionParams*) + 1326
    2   com.apple.ColorSync                     0x94a91439 DoApplyTransform + 458
    3   com.apple.ColorSync                     0x94a915b0 AppleCMMApplyTransform + 335
    4   com.apple.ColorSync                     0x94aceb50 ColorSyncCMMApplyTransform + 117
    5   com.apple.ColorSync                     0x94a6f2ff ColorSyncTransformConvert + 204
    6   libCSync.A.dylib                        0x91a00d76 ConvertImageGeneric + 778
    7   libCSync.A.dylib                        0x91a00a67 CMSColorWorldConvertData + 35
    8   libCSync.A.dylib                        0x91a023d9 CMSTransformConvertData + 115
    9   com.apple.CoreGraphics                  0x9205bf3d CGCMSInterfaceTransformConvertData + 34
    10  com.apple.CoreGraphics                  0x9205bde9 CGColorTransformConvertData + 201
    11  com.apple.CoreGraphics                  0x9205ac22 img_colormatch_read + 551
    12  com.apple.CoreGraphics                  0x92038c45 img_data_lock + 9137
    13  com.apple.CoreGraphics                  0x92035c42 CGSImageDataLock + 172
    14  libRIP.A.dylib                          0x96fb174c ripc_AcquireImage + 2446
    15  libRIP.A.dylib                          0x96faf3c2 ripc_DrawImage + 1245
    16  com.apple.CoreGraphics                  0x920358bc CGContextDrawImage + 450
    17  com.apple.iPhoto                        0x000b83de 0x1000 + 750558
    18  com.apple.CoreGraphics                  0x922180ae CGPatternDelegateDrawPattern + 168
    19  libRIP.A.dylib                          0x96fbeb24 ripc_TilePattern + 5079
    20  libRIP.A.dylib                          0x96fa6608 ripc_GetColor + 6248
    21  libRIP.A.dylib                          0x96fa4188 ripc_Render + 194
    22  libRIP.A.dylib                          0x96fa144c ripc_DrawRects + 622
    23  com.apple.CoreGraphics                  0x9201cf90 CGContextFillRects + 159
    24  com.apple.CoreGraphics                  0x9205fb2c CGContextFillRect + 32
    25  com.apple.iPhoto                        0x0007efd5 0x1000 + 516053
    26  com.apple.QuartzCore                    0x90da20a1 -[CALayer drawInContext:] + 65
    27  com.apple.QuartzCore                    0x91008efc backing_callback(CGContext*, void*) + 77
    28  com.apple.QuartzCore                    0x90da17ca CABackingStoreUpdate + 2326
    29  com.apple.QuartzCore                    0x90da0ac0 -[CALayer _display] + 958
    30  com.apple.QuartzCore                    0x90d9af05 CALayerDisplayIfNeeded + 621
    31  com.apple.QuartzCore                    0x90d9a2d0 CA::Context::commit_transaction(CA::Transaction*) + 362
    32  com.apple.QuartzCore                    0x90d99f18 CA::Transaction::commit() + 316
    33  com.apple.AppKit                        0x935c6016 -[NSView(NSLayerKitGlue) _drawRectAsLayerTree:] + 644
    34  com.apple.AppKit                        0x93528b23 -[NSView _drawRect:clip:] + 175
    35  com.apple.AppKit                        0x935284c8 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600
    36  com.apple.AppKit                        0x935269e7 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 711
    37  com.apple.AppKit                        0x9352795c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
    38  com.apple.AppKit                        0x9352795c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
    39  com.apple.AppKit                        0x9352795c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
    40  com.apple.AppKit                        0x935c5aa3 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 311
    41  com.apple.AppKit                        0x93522ea2 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
    42  com.apple.AppKit                        0x93483a57 -[NSView displayIfNeeded] + 818
    43  com.apple.AppKit                        0x93437661 -[NSNextStepFrame displayIfNeeded] + 98
    44  com.apple.AppKit                        0x9344cd40 -[NSWindow displayIfNeeded] + 204
    45  com.apple.AppKit                        0x9347e28a _handleWindowNeedsDisplay + 696
    46  com.apple.CoreFoundation                0x95cc9e02 __CFRunLoopDoObservers + 1186
    47  com.apple.CoreFoundation                0x95c85d8d __CFRunLoopRun + 557
    48  com.apple.CoreFoundation                0x95c85464 CFRunLoopRunSpecific + 452
    49  com.apple.CoreFoundation                0x95c85291 CFRunLoopRunInMode + 97
    50  com.apple.HIToolbox                     0x92bece04 RunCurrentEventLoopInMode + 392
    51  com.apple.HIToolbox                     0x92becaf5 ReceiveNextEventCommon + 158
    52  com.apple.HIToolbox                     0x92beca3e BlockUntilNextEventMatchingListInMode + 81
    53  com.apple.AppKit                        0x9345478d _DPSNextEvent + 847
    54  com.apple.AppKit                        0x93453fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    55  com.apple.AppKit                        0x93416247 -[NSApplication run] + 821
    56  com.apple.AppKit                        0x9340e2d9 NSApplicationMain + 574
    57  com.apple.iPhoto                        0x00010c89 0x1000 + 64649
    58  com.apple.iPhoto                        0x000107e5 0x1000 + 63461
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x9317d922 kevent + 10
    1   libSystem.B.dylib                       0x9317e03c _dispatch_mgr_invoke + 215
    2   libSystem.B.dylib                       0x9317d4f9 _dispatch_queue_invoke + 163
    3   libSystem.B.dylib                       0x9317d29e _dispatch_worker_thread2 + 240
    4   libSystem.B.dylib                       0x9317cd21 _pthread_wqthread + 390
    5   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 2:
    0   libSystem.B.dylib                       0x9317c9b2 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9317cf48 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 3:
    0   libSystem.B.dylib                       0x9317c9b2 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9317cf48 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 4:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 5:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.CoreFoundation                0x95c8637f __CFRunLoopRun + 2079
    3   com.apple.CoreFoundation                0x95c85464 CFRunLoopRunSpecific + 452
    4   com.apple.CoreFoundation                0x95c85291 CFRunLoopRunInMode + 97
    5   com.apple.Foundation                    0x964e4640 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
    6   com.apple.proxtcore                     0x8f6613c5 -[XTRunLoopThread run:] + 453
    7   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    8   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    9   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    10  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 6:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.CoreFoundation                0x95c8637f __CFRunLoopRun + 2079
    3   com.apple.CoreFoundation                0x95c85464 CFRunLoopRunSpecific + 452
    4   com.apple.CoreFoundation                0x95c85291 CFRunLoopRunInMode + 97
    5   com.apple.Foundation                    0x964e4640 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
    6   com.apple.proxtcore                     0x8f6613c5 -[XTRunLoopThread run:] + 453
    7   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    8   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    9   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    10  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 7:
    0   libSystem.B.dylib                       0x9317c9b2 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9317cf48 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 8:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 9:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 10:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 11:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 12:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.CoreFoundation                0x95c8637f __CFRunLoopRun + 2079
    3   com.apple.CoreFoundation                0x95c85464 CFRunLoopRunSpecific + 452
    4   com.apple.CoreFoundation                0x95c85291 CFRunLoopRunInMode + 97
    5   com.apple.Foundation                    0x964e4640 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
    6   com.apple.proxtcore                     0x8f6613c5 -[XTRunLoopThread run:] + 453
    7   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    8   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    9   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    10  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 13:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 14:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 15:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 16:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 17:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 18:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 19:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 20:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 21:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 22:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 23:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 24:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore                     0x8f66014f -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore                     0x8f65ef30 -[XTThread run:] + 400
    8   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    9   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    10  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    11  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 25:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.iLifeSQLAccess                0x01631a81 -[RALatchTrigger wait] + 81
    3   com.apple.iLifeSQLAccess                0x01631976 -[RAOperationQueueImpl _workThread] + 358
    4   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    5   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    6   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    7   libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 26:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.iLifeSQLAccess                0x01631a81 -[RALatchTrigger wait] + 81
    3   com.apple.iLifeSQLAccess                0x01631976 -[RAOperationQueueImpl _workThread] + 358
    4   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    5   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    6   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    7   libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 27:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation                    0x964e6d48 -[NSCondition waitUntilDate:] + 453
    4   com.apple.Foundation                    0x9649f9bd -[NSConditionLock lockWhenCondition:beforeDate:] + 279
    5   com.apple.Foundation                    0x9649f8a0 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.RedRock                       0x01b3670d -[RKAsyncImageRenderer _backgroundRenderThread:] + 173
    7   com.apple.proxtcore                     0x8f66b8cc -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 220
    8   com.apple.proxtcore                     0x8f6615b3 -[XTSubscription postMessage:] + 227
    9   com.apple.proxtcore                     0x8f660db6 -[XTDistributor distributeMessage:] + 950
    10  com.apple.proxtcore                     0x8f660831 -[XTThread handleMessage:] + 849
    11  com.apple.proxtcore                     0x8f65ef46 -[XTThread run:] + 422
    12  com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    13  com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    14  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    15  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 28:
    0   libSystem.B.dylib                       0x93185046 __semwait_signal + 10
    1   libSystem.B.dylib                       0x93184d02 _pthread_cond_wait + 1191
    2   libSystem.B.dylib                       0x93186998 pthread_cond_wait$UNIX2003 + 73
    3   com.apple.Foundation                    0x964d28a8 -[NSCondition wait] + 316
    4   com.apple.iPhoto                        0x00060f87 0x1000 + 393095
    5   com.apple.iPhoto                        0x00060da1 0x1000 + 392609
    6   com.apple.CoreFoundation                0x95cc2edd __invoking___ + 29
    7   com.apple.CoreFoundation                0x95cc2e48 -[NSInvocation invoke] + 136
    8   com.apple.RedRock                       0x01b6e0f1 -[RKInvoker _invokeTargetWithPool:] + 81
    9   com.apple.proxtcore                     0x8f66b888 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 152
    10  com.apple.proxtcore                     0x8f6615b3 -[XTSubscription postMessage:] + 227
    11  com.apple.proxtcore                     0x8f660db6 -[XTDistributor distributeMessage:] + 950
    12  com.apple.proxtcore                     0x8f660831 -[XTThread handleMessage:] + 849
    13  com.apple.proxtcore                     0x8f65ef46 -[XTThread run:] + 422
    14  com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    15  com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    16  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    17  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 29 Crashed:
    0   libJPEG.dylib                           0x933d64f1 vec_ycc_rgbx_convert + 711
    1   libJPEG.dylib                           0x933d5b98 sep_upsample + 182
    2   libJPEG.dylib                           0x933d3cd6 process_data_context_main + 496
    3   libJPEG.dylib                           0x933d3ad7 _cg_jpeg_read_scanlines + 150
    4   com.apple.ImageIO.framework             0x96e04894 copyImageBlockSetJPEG + 2970
    5   com.apple.ImageIO.framework             0x96deec61 ImageProviderCopyImageBlockSetCallback + 174
    6   com.apple.CoreGraphics                  0x9209b61b CGImageProviderCopyImageBlockSet + 228
    7   com.apple.CoreGraphics                  0x9209fe2c img_blocks_create + 348
    8   com.apple.CoreGraphics                  0x9209fcb1 img_blocks_extent + 85
    9   com.apple.CoreGraphics                  0x92038b46 img_data_lock + 8882
    10  com.apple.CoreGraphics                  0x92035c42 CGSImageDataLock + 172
    11  libRIP.A.dylib                          0x96fb174c ripc_AcquireImage + 2446
    12  libRIP.A.dylib                          0x96faf3c2 ripc_DrawImage + 1245
    13  com.apple.CoreGraphics                  0x920358bc CGContextDrawImage + 450
    14  com.apple.iPhoto                        0x000b5b6d 0x1000 + 740205
    15  com.apple.iPhoto                        0x003e1992 0x1000 + 4065682
    16  com.apple.iPhoto                        0x000b4d38 0x1000 + 736568
    17  com.apple.iPhoto                        0x0033984e 0x1000 + 3377230
    18  com.apple.iPhoto                        0x000b4747 0x1000 + 735047
    19  com.apple.iPhoto                        0x0016e565 0x1000 + 1496421
    20  com.apple.iLifeFaceRecognition          0x011184b0 -[FaceRecognitionManager detectFacesInPhoto:userInfo:options:delegate:context:] + 149
    21  com.apple.RedRock                       0x01bb72ec -[RKFaceDetectionWorker detectFacesForMaster:aggressive:] + 844
    22  com.apple.iPhoto                        0x00787569 0x1000 + 7890281
    23  com.apple.RedRock                       0x01bb6e11 -[RKFaceDetectionWorker performJob:] + 385
    24  com.apple.proxtcore                     0x8f6615b3 -[XTSubscription postMessage:] + 227
    25  com.apple.proxtcore                     0x8f660db6 -[XTDistributor distributeMessage:] + 950
    26  com.apple.proxtcore                     0x8f660831 -[XTThread handleMessage:] + 849
    27  com.apple.proxtcore                     0x8f65ef46 -[XTThread run:] + 422
    28  com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    29  com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    30  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    31  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 30:
    0   libSystem.B.dylib                       0x9317c9b2 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9317cf48 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 31:
    0   libSystem.B.dylib                       0x9315709a mach_msg_trap + 10
    1   libSystem.B.dylib                       0x93157807 mach_msg + 68
    2   com.apple.iLifeSQLAccess                0x01631a81 -[RALatchTrigger wait] + 81
    3   com.apple.iLifeSQLAccess                0x01631976 -[RAOperationQueueImpl _workThread] + 358
    4   com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    5   com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    6   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    7   libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 32:  com.apple.CFSocket.private
    0   libSystem.B.dylib                       0x93176066 select$DARWIN_EXTSN + 10
    1   com.apple.CoreFoundation                0x95cc5c83 __CFSocketManager + 1091
    2   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    3   libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 33:
    0   libSystem.B.dylib                       0x93185046 __semwait_signal + 10
    1   libSystem.B.dylib                       0x93184d02 _pthread_cond_wait + 1191
    2   libSystem.B.dylib                       0x93186998 pthread_cond_wait$UNIX2003 + 73
    3   com.apple.Foundation                    0x964d28a8 -[NSCondition wait] + 316
    4   com.apple.Foundation                    0x964c03a1 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 1111
    5   com.apple.Foundation                    0x964d2a03 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 184
    6   com.apple.RedRock                       0x01b5a1f0 -[RKInvoker forwardInvocation:] + 208
    7   com.apple.CoreFoundation                0x95cc3cd4 ___forwarding___ + 1108
    8   com.apple.CoreFoundation                0x95cc3802 _CF_forwarding_prep_0 + 50
    9   com.apple.iPhoto                        0x000906d7 0x1000 + 587479
    10  com.apple.iPhoto                        0x000904dd 0x1000 + 586973
    11  com.apple.iPhoto                        0x000903e8 0x1000 + 586728
    12  com.apple.iPhoto                        0x00090350 0x1000 + 586576
    13  com.apple.CoreFoundation                0x95cc2edd __invoking___ + 29
    14  com.apple.CoreFoundation                0x95cc2e48 -[NSInvocation invoke] + 136
    15  com.apple.RedRock                       0x01b6e0f1 -[RKInvoker _invokeTargetWithPool:] + 81
    16  com.apple.proxtcore                     0x8f66b888 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 152
    17  com.apple.proxtcore                     0x8f6615b3 -[XTSubscription postMessage:] + 227
    18  com.apple.proxtcore                     0x8f660db6 -[XTDistributor distributeMessage:] + 950
    19  com.apple.proxtcore                     0x8f660831 -[XTThread handleMessage:] + 849
    20  com.apple.proxtcore                     0x8f65ef46 -[XTThread run:] + 422
    21  com.apple.Foundation                    0x964aaad0 -[NSThread main] + 45
    22  com.apple.Foundation                    0x964aaa80 __NSThread__main__ + 1499
    23  libSystem.B.dylib                       0x931847fd _pthread_start + 345
    24  libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 34:
    0   libSystem.B.dylib                       0x9317c9b2 __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x9317cf48 _pthread_wqthread + 941
    2   libSystem.B.dylib                       0x9317cb66 start_wqthread + 30
    Thread 35:
    0   libSystem.B.dylib                       0x931570fa semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                       0x93184c85 _pthread_cond_wait + 1066
    2   libSystem.B.dylib                       0x931b3aa8 pthread_cond_timedwait_relative_np + 47
    3   com.apple.CoreVideo                     0x984ab7a6 CVDisplayLink::waitUntil(unsigned long long) + 386
    4   com.apple.CoreVideo                     0x984aa5eb CVDisplayLink::runIOThread() + 741
    5   com.apple.CoreVideo                     0x984aa2ea startIOThread(void*) + 156
    6   libSystem.B.dylib                       0x931847fd _pthread_start + 345
    7   libSystem.B.dylib                       0x93184682 thread_start + 34
    Thread 29 crashed with X86 Thread State (32-bit):
      eax: 0x00000010  ebx: 0x933d623b  ecx: 0x933ea430  edx: 0x00000000
      edi: 0x3059fc10  esi: 0x933ea420  ebp: 0xb18ab488  esp: 0xb18ab360
       ss: 0x0000001f  efl: 0x00010206  eip: 0x933d64f1   cs: 0x00000017
       ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
      cr2: 0x00000000
    Binary Images:
        0x1000 -   0xf4efe7  com.apple.iPhoto 9.1.3 (9.1.3) <C69810A0-C4CC-E2F7-8A7D-6F5FF0689177> /Applications/iPhoto.app/Contents/MacOS/iPhoto
    0x10cb000 -  0x10f2ff7  com.apple.iPhoto.Tellus 1.2 (47) <20628357-FF33-571A-EE39-5F7874E30EA0> /Applications/iPhoto.app/Contents/Frameworks/Tellus.framework/Versions/A/Tellus
    0x1111000 -  0x1128ff7  com.apple.iLifeFaceRecognition 1.0 (21) <AD53D7A2-F0B2-FF76-5C6D-C23B234AB50E> /Library/Frameworks/iLifeFaceRecognition.framework/Versions/A/iLifeFaceRecognit ion
    0x1137000 -  0x1162fff  com.apple.DiscRecordingUI 5.0.8 (5080.4.1) <D231FB9E-5136-E5AF-2650-B2CF49297FA9> /System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/DiscRecordingUI
    0x117a000 -  0x1186ff3  com.apple.UpgradeChecker 1.0 (1.1) <D229406E-5225-325C-8A07-2D7981CBC283> /Applications/iPhoto.app/Contents/Frameworks/UpgradeChecker.framework/Versions/ A/UpgradeChecker
    0x118e000 -  0x118eff7  com.apple.iLifeSlideshow 2.1.0 (806) <9A91C06F-66C3-4A7B-7233-D4853EBFFCEF> /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
    0x1192000 -  0x1279fef  org.python.python 2.6.1 (2.6.1) <4FFD855C-1C5A-9206-A695-8C9904F1DA84> /System/Library/Frameworks/Python.framework/Versions/2.6/Python
    0x12c4000 -  0x1538ff7  com.apple.iLifePageLayout 1.1 (146) <44E87CB6-E2AD-4D4E-5447-93979FE733C4> /Library/Frameworks/iLifePageLayout.framework/Versions/A/iLifePageLayout
    0x15fe000 -  0x16c2ff7  com.apple.iLifeSQLAccess 1.4 (20.3) <A689DC8A-E683-2635-1DBE-23AA7061EE35> /Library/Frameworks/iLifeSQLAccess.framework/Versions/A/iLifeSQLAccess
    0x1703000 -  0x1731fe7  com.apple.ProUtils 1.0 (107) <CDE57121-223E-B708-9609-AB8A9E3B68AA> /Applications/iPhoto.app/Contents/Frameworks/ProUtils.framework/Versions/A/ProU tils
    0x174e000 -  0x17a3ff7  com.apple.iLifeKit 1.1 (79) <94932A73-C319-2B2E-E0B0-6C099D7FC99C> /Library/Frameworks/iLifeKit.framework/Versions/A/iLifeKit
    0x17e9000 -  0x1a0ffe7  com.apple.prokit 6.0.2 (1177) <E556C175-2912-F4CD-1A99-8BF1C7846D5B> /System/Library/PrivateFrameworks/ProKit.framework/Versions/A/ProKit
    0x1b13000 -  0x1f53fef  com.apple.RedRock 1.5 (221.1) <1E4F339E-2DC9-FC65-9704-69E8BC1A2441> /Applications/iPhoto.app/Contents/Frameworks/RedRock.framework/Versions/A/RedRo ck
    0x2185000 -  0x2317ff3  com.apple.geode 1.3 (135.2) <E784488A-8F30-EFD1-76A6-5F26C60C4AE9> /Applications/iPhoto.app/Contents/Frameworks/Geode.framework/Versions/A/Geode
    0x23b1000 -  0x23b8ff7  com.apple.MediaSync 1.0 (119.1) <68B686BB-A6F8-0130-15CE-EE18CB4338A6> /Applications/iPhoto.app/Contents/Frameworks/MediaSync.framework/Versions/A/Med iaSync
    0x23c0000 -  0x2475fe7  libcrypto.0.9.7.dylib 0.9.7 (compatibility 0.9.7) <AACC86C0-86B4-B1A7-003F-2A0AF68973A2> /usr/lib/libcrypto.0.9.7.dylib
    0x24bb000 -  0x24bcfff +eOkaoCom.dylib ??? (???) <2DE16B47-23E7-73DB-1297-C928E40DFC31> /Library/Frameworks/iLifeFaceRecognition.framework/Versions/A/Resources/eOkaoCo m.dylib
    0x24c0000 -  0x24e5ff2 +eOkaoPt.dylib ??? (???) <831D49D0-43A0-21A0-2662-2207E3BE0FF6> /Library/Frameworks/iLifeFaceRecognition.framework/Versions/A/Resources/eOkaoPt .dylib
    0x24ec000 -  0x2520fe7 +eOkaoDt.dylib ??? (???) <5693A28E-8C94-0F5F-150E-3B17CF753F64> /Library/Frameworks/iLifeFaceRecognition.framework/Versions/A/Resources/eOkaoDt .dylib
    0x2526000 -  0x268dfff +eOkaoFr.dylib ??? (???) <E355FB47-C5EF-50CF-621A-9B17A50E2850> /Library/Frameworks/iLifeFaceRecognition.framework/Versions/A/Resources/eOkaoFr .dylib
    0x2691000 -  0x26bbff7  com.apple.iLifeSlideshowCore 2.0 (222) <D0941F7F-2DE8-40F1-1477-687AFCC89175> /Library/Frameworks/iLifeSlideshow.framework/Versions/A/Frameworks/iLifeSlidesh owCore.framework/Versions/A/iLifeSlideshowCore
    0x26d6000 -  0x27e2fe3  com.apple.iLifeSlideshowProducer 2.0 (589) <CED6CB0D-2831-E73C-6532-C37B9E0CE44A> /Library/Frameworks/iLifeSlideshow.framework/Versions/A/Frameworks/iLifeSlidesh owProducer.framework/Versions/A/iLifeSlideshowProducer
    0x284d000 -  0x29b6ff3  com.apple.iLifeSlideshowRenderer 2.1.0 (645) <BEA7528F-25E6-12E9-E70A-C82DBFAF6096> /Library/Frameworks/iLifeSlideshow.framework/Versions/A/Frameworks/iLifeSlidesh owRenderer.framework/Versions/A/iLifeSlideshowRenderer
    0x2a34000 -  0x2a3fff7  com.apple.iLifeSlideshowExporter 2.0 (230) <959E575E-3F9B-B222-872C-085C6EA8910B> /Library/Frameworks/iLifeSlideshow.framework/Versions/A/Frameworks/iLifeSlidesh owExporter.framework/Versions/A/iLifeSlideshowExporter
    0x2a49000 -  0x2a72fe3  com.apple.audio.CoreAudioKit 1.6.1 (1.6.1) <7FFBD485-5251-776A-CC44-4470DD84112B> /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
    0x2a83000 -  0x2b04ff7  com.apple.NyxAudioAnalysis 12.2 (12.2) <925917F5-EBD7-7995-7C0B-9D542C8FD775> /Library/Frameworks/NyxAudioAnalysis.framework/Versions/A/NyxAudioAnalysis
    0x2b23000 -  0x2b4afe7  com.apple.ExpressCheckout 1.0 (1.0) <2C26F7DA-007A-0575-3FE0-989D049E6C7F> /Library/Frameworks/iLifePageLayout.framework/Versions/A/Frameworks/ExpressChec kout.framework/Versions/A/ExpressCheckout
    0x2b6e000 -  0x2ba9ffb  com.apple.iLifeImageAnalysis 1.0 (2) <56F6DD05-33B6-A8E3-8482-97F7C327BB7E> /Library/Frameworks/iLifePageLayout.framework/Versions/A/Frameworks/iLifeImageA nalysis.framework/Versions/A/iLifeImageAnalysis
    0x2508f000 - 0x2508fff0 +com.google.GearsEnabler ??? (1.0) <C5B680AD-0957-59FD-B95F-A79C89E04678> /Library/InputManagers/GearsEnabler/GearsEnabler.bundle/Contents/MacOS/GearsEna bler
    0x25241000 - 0x25243ff7  libclparser.dylib ??? (???) <F1C02810-AEEA-F661-FCED-DEA4EB7524D7> /System/Library/Frameworks/OpenCL.framework/Libraries/libclparser.dylib
    0x27207000 - 0x27211fff +com.unsanity.smartcrashreports Smart Crash Reports version 1.5 (1.5) <7E3E7D42-BB62-6D09-E262-0140BA963851> /Library/InputManagers/Smart Crash Reports/Smart Crash Reports.bundle/Contents/MacOS/Smart Crash Reports
    0x2723e000 - 0x27242ff7  libcldcpuengine.dylib 1.5.6 (compatibility 1.0.0) <EF10CD42-F20F-EB7B-FC29-2AA973D5758D> /System/Library/Frameworks/OpenCL.framework/Libraries/libcldcpuengine.dylib
    0x2c0be000 - 0x2c0c3ff7  com.apple.iphoto.accountconfig.Email 1.0 (1) <8981D1D5-F5E0-EF7F-C6B4-5704489489A3> /Applications/iPhoto.app/Contents/PlugIns/Email.accountconfigplugin/Contents/Ma cOS/Email
    0x2c0dd000 - 0x2c255fe7  GLEngine ??? (???) <0E1DF3E4-0EEE-9FD8-8F52-FFFCF0DF23A7> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
    0x2c287000 - 0x2c9d1ff7  com.apple.GeForceGLDriver 1.6.26 (6.2.6) <90B

  • A problem with threads

    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,
    Lefty

    This 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

  • J2ME problem with threads

    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&#322;y sportowe");
        exitCommand = new Command("Wyj&#347;cie", Command.EXIT, 2);
        addRound = new Command("Dodaj","Dodaj rund&#281;", Command.ITEM,1);
        delRound = new Command("Usu&#324;","Usu&#324; ostatni&#261; rund&#281;", 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&#347;&#263; powtórze&#324;",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&#347;ci elementów w celu poprawnego wy&#347;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&#322;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.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

Maybe you are looking for