Can anyone spot the problem?
Hey i've been workin on an applet which accepts two boolean equations with 3 variables and returns an answer telling if they are logically equal. When it comes to the PLUS and MINUS cases the program works fine. However in the TIMES and DIVIDE cases it returns at least one wrong answer, despite the fact i'm using the logical AND gate. For example if i enter x*y the program returns
answer 1 = O, when (x,y)=(0,0)
answer 2 = 1, when (x,y)=(1,0)
answer 3 = O, when (x,y)=(0,1)
answer 4 = 1, when (x,y)=(1,1)
were answer 2 is wrong using an AND gate.
Here is the for loop which passes the values
for (int y = 0; y < 2; y++)
for (int x = 0; x < 2; x++)
int d = MyParser.answer(x, y);
int doub = MyParser2.answer(x, y);
String eq = "";
if (d == doub) {
equal++;
count++;
eq = "equal\t";
else {
count++;
eq = "not equal";
tb1.append("\nAnswer was " + d + "\t " + eq + " " +
"\t answer 2 was " + doub);
}and here is the code for the parser
package Applet1;
public final class Parse
public Parse (String equation)
parse (equation);
public int answer(int x,int y, int z)
return this.value(x,y,z);
public int answer(int x,int y)
return this.value(x, y);
public int answer(int x)
return this.value(x);
public int value(int x)
return val(x, 0, 0);
public int value(int x, int y)
return val(x, y, 0);
public int value(int x, int y, int z)
return val(x, y, z);
public String getEquation()
return equation;
private String equation;
private byte[] code;
private int[] stack;
private int[] constant;
private int pos = 0, constantCt = 0, codeSize = 0;
private static final byte
PLUS = -1, MINUS = -2, TIMES = -3, DIVIDE = -4,
UNARYMINUS = -5, VARIABLEX = -6, VARIABLEY = -7, VARIABLEZ = -8;
private char next()
if (pos >= equation.length())
return 0;
else
return equation.charAt(pos);
private void skip()
while (Character.isWhitespace(next()))
pos++;
private int val(int variableX, int variableY, int variableZ)
try
int top = 0;
for (int i=0; i < codeSize; i++)
if (code[i] >= 0)
stack [top++] = constant [code ];
else if (code [i] >= UNARYMINUS)
int y = stack[--top];
int x = stack[--top];
int w;
int ans = (int) Double.NaN;
switch (code[i])
case PLUS: ans = x | y;
break;
case MINUS: ans = (x) & (~y);
break;
case TIMES: ans = x & y;
break;
case DIVIDE: ans = x & ~y;
break;
if (Double.isNaN(ans))
return ans;
stack [top++] = ans;
else if (code[i] == VARIABLEX)
stack [top++] = variableX;
else if (code[i] == VARIABLEY)
stack [top++] = variableY;
else if (code[i] == VARIABLEZ)
stack [top++] = variableZ;
catch (Exception e)
double b = Double.NaN;
int i = (int) b;
return i;
double d2;
if (Double.isInfinite(stack[0]))
d2 = Double.NaN;
int i2 = (int) d2;
return i2;
}else
return stack[0];
private void error (String message)
throw new IllegalArgumentException
("Parse error: " + message + "\n");
private int stackUse()
int s = 0;
int max = 0;
for (int i = 0; i < codeSize; i++)
if (code[i] >= 0 || code [i] == VARIABLEX || code[i] == VARIABLEY || code[i] == VARIABLEZ)
s++;
if (s > max)
max = s;
} else if (code[i] >= UNARYMINUS)
s--;
return max;
private void parse (String equation)
if (equation == null || equation.trim().equals(""))
error ("No Data to be parsed");
this.equation = equation;
code = new byte[equation.length()];
constant = new int [equation.length()];
parseExpress();
skip();
int stackSize = stackUse();
stack = new int[stackSize];
byte[] c = new byte[codeSize];
System.arraycopy(code,0,c,0,codeSize);
code = c;
int[] A = new int[constantCt];
System.arraycopy(constant,0,A,0,constantCt);
constant = A;
private void parseExpress()
boolean neg = false;
skip();
parseVaries();
if (neg)
code[codeSize++] = UNARYMINUS;
skip();
while (next() == '+' || next() == '-')
char op = next();
pos++;
parseTerm();
if (op =='+')
code[codeSize++] = PLUS;
else
code[codeSize++] = MINUS;
skip();
private void parseTerm()
parseFactor();
skip();
while (next() == '*' || next() == '/')
char op = next();
pos++;
parseFactor();
code[codeSize++] = (op == '*')? PLUS:MINUS;
skip();
private void parseFactor()
parseVaries();
skip();
while (next() == '^')
pos++;
parseVaries();
code[codeSize++] = UNARYMINUS;
skip();
private void parseVaries()
skip();
char ch = next();
if (ch == 'x' || ch =='X')
pos++;
code[codeSize++] = VARIABLEX;
else if (ch == 'y' || ch == 'Y')
pos++;
code[codeSize++] = VARIABLEY;
else if (ch == 'z' || ch == 'Z')
pos++;
code[codeSize++] = VARIABLEZ;
else if (ch == '(')
pos++;
parseExpress();
skip();
if (next () !=')')
error("Right parenthesis needed");
pos++;
else if (ch == ')')
error ("Need a left parenthesis");
else if (ch == '+' || ch == '-' || ch == '*' || ch =='/' || ch =='^')
error ("Operator" + ch + "\n found in unexpected position");
else if (ch == 0)
error ("Incorrect entry");
else
error ("Illegal character " + ch);
Its not pretty i know and its missing a part to parse Digits and i'm using type casting for strange reasons, but it does work. Except for in these two cases, can anyone see why
Thanks
podger
I'm not even entirely certain what you are trying to accomplish here.
It looks wrong in any case.
I can't see anything in the way of debugging, so heres my help for today:
public void printCode(){
System.out.println(equation + ":");
for(int i=0; i<code.length; i++){
switch(code){
case PLUS: System.out.print("Plus "); break;
case MINUS: System.out.print("Minus "); break;
case TIMES: System.out.print("TIMES "); break;
case DIVIDE: System.out.print("DIVIDE "); break;
case UNARYMINUS: System.out.print("-"); break;
case VARIABLEX: System.out.print("x "); break;
case VARIABLEY: System.out.print("y ");break;
case VARIABLEZ:System.out.print("z ");break;
System.out.println();
I suggest you parse a couple of expressions, and print out the code generated using this handy little method.
Parse parse = new Parse("x+y");
parse.printCode();
parse = new Parse("x*y");
parse.printCode();(x+y) : x y Plus
(x*y) : x
I think you will find the problem in your parseExpress method (well one of your problems anyway)
Also take a look at your ParseTerm function - I'm pretty sure that a * is meant to represent "TIMES" and not "PLUS"
Did you ever thing about using switch statements rather than ifs?
Good luck,
evnafets
Similar Messages
-
Can anyone spot the problem with this coding??
can anyone spot this problem with my program. it keeps saying
"missing return statement } " with a little arrow beneath the bracket.
many thanks
public class Game extends GameInterface
GameInterface gameInt = new GameInterface();
String boardString;
// final static char NOUGHT='O', CROSS='X';
private int square = 0;
Player player1 = new Player();
Player player2 = new Player();
String firstPlayer, secondPlayer;
public Game() // Constructor
boardString = "0123456789";
public boolean initialise(boolean first)
gameInt.setPlayerNames(player1,player2);
MyPrint.myPrintln("Player one name is " + player1.getName());
MyPrint.myPrintln("Player two name is " + player2.getName());
String P1 = player1.getName();
String P2 = player2.getName();
}It means you declare your method to return something, but you don't actually return anything.
-
Can ANYONE spot the memory leak??
Hi, I have some code here, and there is a SERIOUS memory leak. Basically, I realized the leak was there when a report tried to execute this 100,000+ times and it bogged the system down to a crawl. Can anyone spot the leak? I will explain the variables below the code:
char* getDescription(char* chFlag, char* chDEID, char* chKey, int keysize)
//first, we need to allocate new Byte arrays....
jbyteArray JchFlag = (*env1)->NewByteArray(env1,1);
jbyteArray JchDEID = (*env1)->NewByteArray(env1,2);
jbyteArray JchKey = (*env1)->NewByteArray(env1,40);
//next, we need to put the correct info in those byte arrays....
(*env1)->SetByteArrayRegion(env1,JchFlag,0,1,(jbyte*)chFlag); (*env1)->SetByteArrayRegion(env1,JchDEID,0,2,(jbyte*)chDEID); (*env1)->SetByteArrayRegion(env1,JchKey,0,40,(jbyte*)chKey);
getDescriptionID =(*env1)->GetMethodID(env1,myjclass,"getDescription","([B[B[BI)Ljava/lang/String;");
result =(jstring)((*env1)->CallObjectMethod(env1,myjobject,getDescriptionID,JchFlag,JchDEID,JchKey,keysize)) ;
returnvalue = NULL;
if(result == NULL)
strcpy(holder1, "**********Error Finding Description**********");
else { //now, we convert the jstring to a char *, so we can return the proper type...
returnvalue=(char*)((*env1)->GetStringUTFChars(env1,result,&isCopy)) ;
strcpy(holder1,returnvalue);
if(isCopy == JNI_TRUE)
(*env1)->ReleaseStringUTFChars(env1,result,returnvalue);
(*env1)->DeleteLocalRef(env1,result);
return holder1;
//return description;
}//end getDescription function
-myjclass is global, it gets its value in the initialization.
-any variables that are not declared in this function are, of course, globally defined.Hello Friends,
I had also tried to use the ReleaseStringUTFChars after making the check of whether it does a copy or not.
For me in Windows, it works fine most of the time. But when I go on increasing the no. of strings in a Vector of objects to more than 500 or something , then it occasionally fails.
Just before ReleaseStringUTF, I do have the copied string in char* .
Soon after Releasing, I do get a junk in the character array.
I dont know why it happens like this.
Please advice.
Everyone suggest ReleaseStringUTF.
But why it fails in Windows.
And any one know about how it will behave in Alpha.
It totally fails in Alpha.
I could not get the string at all.
Please help
LathaDhamo -
Hi, Can anyone encounter the problem that you couldn't update your apps from Mac book pro??
Currently, my mac can't update any of the software from App store as well as bulit in software like garageband.yeah...
i did that but it didn't work.
Every times, i click on the software updates, software updates dialog box is popping up and
checking for new updates.
After that, acknowledged me whether i want to update or not.
once, i click on "install".
it appears following message.
"A network error has occurred. Check your Internet connection, and then try again."
i totally can access to Internet as i can browser all the websites.
Please help me, is it a "virus" or "malware" causing my mac?.
i just changed a new mac recently and having this problem -
ADM dialog hangs but on debugging it works fine. Can't spot the problem
Hello,
I have developed an automate plugin which submits a design on a server using libcurl library. There is a dialog(made using ADM) to submit a design which consists of a submit button and a progress bar. On clicking the submit button, the progress bar starts getting updated. When the progress bar is completely updated the dialog seems to hang. The dialog is supposed to close after submit. The obvious way to search for the problem was to debug the source code, but it appears that whenever the source code is debugged then it runs smoothly. But without any debug points the problem reverts. How can we spot the problem without debugging?
Please guide.In developing plug-ins over the past years I have encountered a few cases where the presence of the debugger seemed to work around a problem. The debugger necessarily changes the timing and resource allocations some.
In every case the problem turned out to be a legitmate bug - a mistake we had made in our code, and in some cases finding that bug required other measures beyond using the debugger to help us track it down. We ended up implementing a very sophisticated logging facility that we use in all our products now. It appends lines of text containing pertinent info into a log file that's created for each run. The detailed logging commands compile-out in a Release build, so we just leave them in the source code all the time and they add no overhead.
Unfortunately, there's no easy answer for your dilemma, other than to advise you to implement your own logging facility - or at least the ability to add printf statements (or similar) into your code so you can trace the progress in sticky situations.
Though I saw your message and am a plug-in developer myself, you might find you can get more direct help in the SDK forum...
http://forums.adobe.com/community/photoshop/photoshop_sdk
Good luck!
-Noel -
Anyone spot the problem with this program???
Everytime I compile part of my program it keeps on saying....
"missing return statement
^
1 error"
can anyone spot it on my program???
//GAME
public class Game2 extends MyPrint
GameInterface gameInt;
String s = "?123456789";
Player player1;
Player player2;
public Game2() // Constructor
public int makeMove()
gameInt = new GameInterface ();
player1 = new Player ();
player2 = new Player ();
myPrintln("Enter name of player");
String FP = c.input.readString();
myPrintln(FP, SYSTEM);
myPrintln("Enter name of other player");
String SP = c.input.readString();
myPrintln(SP, SYSTEM);
gameInt.pictureBoard(s);
myPrintln("");
//boolean whoWon=false;
int loop = 0;
while(loop<=6)
player1.setName(FP);
myPrintln(player1.getName() + " (X) to play");
char name1 = c.input.readChar();
name1 = c.input.readChar();
boolean playTurn = true;
gameInt.play(name1, true);
gameInt.pictureBoard(gameInt.display());
myPrintln("");
player2.setName(SP);
myPrintln(player2.getName() + " (O) to play");
char name2 = c.input.readChar();
name2 = c.input.readChar();
playTurn = false;
gameInt.play(name2, false);
gameInt.pictureBoard(gameInt.display());
myPrintln("");
loop++;
cheers
DaveChange public int makeMove() into: public void makeMove()
and the compiler will keep quiet (or finds more things to complain about) -
FileExtract - Can anyone spot the deliberate mistake please?
Basically, the program includes my add-in along with SAPbouiCOM.dll both embedded.
The code below now extracts SAPbouiCOM.dll perfectly, but my program is condensed to 1Kb!!!
I bet there's something obvious here, but I just can't spot it!
Private Sub ExtractFile(ByVal path As String)
Try
Dim AddonExeFile As IO.FileStream
Dim thisExe As System.Reflection.Assembly
thisExe = System.Reflection.Assembly.GetExecutingAssembly()
Dim sTargetPath As String
Dim sSourcePath As String
Dim sTargetPathdll As String
Dim sFile As System.IO.Stream
sTargetPath = path & "\" & sAddonName & ".exe"
sSourcePath = path & "\" & sAddonName & ".tmp"
sTargetPathdll = path & "\" & "Interop.SAPbouiCOM.dll"
For Each resourceName As String In thisExe.GetManifestResourceNames()
sFile = thisExe.GetManifestResourceStream(resourceName)
If LCase(resourceName) <> LCase("Addoninstaller.Interop.SAPbouiCOM.dll") Then
' Create a tmp file first, after file is extracted change to exe
If IO.File.Exists(sSourcePath) Then
IO.File.Delete(sSourcePath)
End If
AddonExeFile = IO.File.Create(sSourcePath)
Dim buffer() As Byte
ReDim buffer(sFile.Length)
sFile.Read(buffer, 0, sFile.Length)
AddonExeFile.Write(buffer, 0, sFile.Length)
AddonExeFile.Close()
If IO.File.Exists(sTargetPath) Then
IO.File.Delete(sTargetPath)
End If
' Change file extension to exe
IO.File.Move(sSourcePath, sTargetPath)
Else
' Create a tmp file first, after file is extracted change to exe
AddonExeFile = IO.File.Create(sTargetPathdll)
Dim buffer2() As Byte
ReDim buffer2(sFile.Length)
sFile.Read(buffer2, 0, sFile.Length)
AddonExeFile.Write(buffer2, 0, sFile.Length)
AddonExeFile.Close()
End If
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try
End SubHi Daniel,
I'm a bit lazy - so I'm not going to go through your code -> I'll give you a code snippet I use (it is basically the same as in the SAP example)
"in someSub"
' Extract exe to installation folder
ExtractFile(strDest, "YourAddonName", "exe")
' Extract dlls to installation folder
ExtractFile(strDest, "Interop.SAPbobsCOM", "dll")
"end someSub"
' This function extracts the given add-on into the path specified
Private Sub ExtractFile(ByVal path As String, ByVal FName As String, ByVal ext As String)
Dim AddonExTFile As IO.FileStream
Dim thisExT As System.Reflection.Assembly
Dim file As System.IO.Stream
Dim sTargetPath = path & "\" & FName & "." & ext
Dim sSourcePath = path & "\" & FName & ".tmp"
Try
Try
thisExT = System.Reflection.Assembly.GetExecutingAssembly()
file = thisExT.GetManifestResourceStream(sInstallName & "." & FName & "." & ext)
' Create a tmp file first, after file is extracted change to ext
If IO.File.Exists(sSourcePath) Then
IO.File.Delete(sSourcePath)
End If
AddonExTFile = IO.File.Create(sSourcePath)
Dim buffer() As Byte
ReDim buffer(file.Length)
file.Read(buffer, 0, file.Length)
AddonExTFile.Write(buffer, 0, file.Length)
AddonExTFile.Close()
If IO.File.Exists(sTargetPath) Then
IO.File.Delete(sTargetPath)
End If
' Change file extension to exe
IO.File.Move(sSourcePath, sTargetPath)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Finally
AddonExTFile = Nothing
thisExT = Nothing
file = Nothing
sTargetPath = ""
sSourcePath = ""
GC.Collect()
End Try
End Sub
AND remenber to include your exe and dll as embedded resources in your Add-On installer -
Can anyone spot the syntax error of db delete?
Hi
I'm trying to get a database delete statement to work for a relations table - it just has studentId and courseId as foreign keys which make up a joint primary key.
The line is
db.update("delete from enrollments2 where (studentsid = '" + getStudentId() + "," + " coursesid = " + getCourseId() + "')");The error is
ERROR: invalid input syntax for integer: "78, coursesid = 75"Somehow I am putting non integer into an integer... I can't seem to spot the mistake though. Any help would be appreciated.The correct syntax I should mention was
db.update("delete from enrollments2 where (studentsid = '" + getStudentId() + "'and coursesid = '" + getCourseId() + "')");I'll leave that in for the time being and try to come back to it tonight... its on my todo list.
Thanks for the snippet by the way, it always saves a lot of time when someone provides a useful snippet towards a solution. I hadn't heard of prepared statements until now too, interesting.
Message was edited by:
occams_razor
-->> missed a 2 out there as enrollments2 is my test case -
Crash Report - Can anyone explain the problem and solve?
Date/Time: 2013-01-11 20:48:25 -0500
OS Version: 10.8.2 (Build 12C60)
Architecture: x86_64
Report Version: 11
Command: iTunes
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Version: 11.0.1 (11.0.1)
Build Version: 1
Project Name: iTunes
Source Version: 1101012001000000
Parent: launchd [138]
PID: 1824
Event: hang
Duration: 1.54s
Steps: 16 (100ms sampling interval)
Hardware model: MacBook5,1
Active cpus: 2
Free pages: 259179 pages (+8876)
Pageins: 31 pages
Pageouts: 0 pages
Process: iTunes [1824]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Architecture: x86_64
Parent: launchd [138]
UID: 501
Task size: 34945 pages (+1)
CPU Time: 0.048s
Thread 0x120f4 DispatchQueue 1 priority 46
16 ??? (iTunes + 2040652) [0x10da7134c]
16 ??? (iTunes + 2041027) [0x10da714c3]
16 -[NSApplication run] + 517 (AppKit) [0x7fff889b0283]
16 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 (AppKit) [0x7fff889b8ed2]
16 _DPSNextEvent + 685 (AppKit) [0x7fff889b9613]
16 BlockUntilNextEventMatchingListInMode + 62 (HIToolbox) [0x7fff89daccd3]
16 ReceiveNextEventCommon + 356 (HIToolbox) [0x7fff89dace42]
16 RunCurrentEventLoopInMode + 209 (HIToolbox) [0x7fff89dad0a4]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1513 (CoreFoundation) [0x7fff8a6a7099]
16 __CFRunLoopDoTimer + 557 (CoreFoundation) [0x7fff8a6c18bd]
16 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (CoreFoundation) [0x7fff8a6c1da4]
16 ??? (iTunes + 1737628) [0x10da2739c]
16 ??? (iTunes + 1751620) [0x10da2aa44]
16 ??? (iTunes + 1751810) [0x10da2ab02]
16 ??? (iTunes + 7013669) [0x10df2f525]
16 ??? (iTunes + 1751969) [0x10da2aba1]
16 ??? (iTunes + 1752141) [0x10da2ac4d]
16 ??? (iTunes + 1679227) [0x10da18f7b]
16 ??? (iTunes + 5328035) [0x10dd93ca3]
16 ??? (iTunes + 5442044) [0x10ddaf9fc]
16 ??? (iTunes + 6897575) [0x10df12fa7]
16 ??? (iTunes + 6886548) [0x10df10494]
16 ??? (iTunes + 6885820) [0x10df101bc]
16 ??? (iTunes + 6877861) [0x10df0e2a5]
16 ??? (iTunes + 6879526) [0x10df0e926]
16 ??? (iTunes + 9436605) [0x10e17edbd]
16 ??? (iTunes + 9437030) [0x10e17ef66]
16 ??? (iTunes + 9434303) [0x10e17e4bf]
16 ??? (iTunes + 9434499) [0x10e17e583]
16 AMDeviceStartSession + 125 (MobileDevice) [0x113f69847]
16 send_session_start + 479 (MobileDevice) [0x113f64e7f]
16 lockconn_enable_ssl + 16 (MobileDevice) [0x113f65b6f]
16 lockssl_handshake + 674 (MobileDevice) [0x113f658f3]
16 ssl3_connect + 669 (libssl.0.9.8.dylib) [0x7fff8e111ced]
16 ssl3_get_server_certificate + 56 (libssl.0.9.8.dylib) [0x7fff8e112d78]
16 ssl3_get_message + 386 (libssl.0.9.8.dylib) [0x7fff8e111572]
16 ssl3_read_bytes + 2355 (libssl.0.9.8.dylib) [0x7fff8e119533]
16 ssl3_read_n + 361 (libssl.0.9.8.dylib) [0x7fff8e118489]
16 BIO_read + 168 (libcrypto.0.9.8.dylib) [0x7fff87ea2598]
16 read + 10 (libsystem_kernel.dylib) [0x7fff89b83ffa]
*16 hndl_unix_scall64 + 19 (mach_kernel) [0xffffff80002ced33]
*16 unix_syscall64 + 522 (mach_kernel) [0xffffff80005e182a]
*16 read_nocancel + 130 (mach_kernel) [0xffffff80005768e2]
*16 ??? (mach_kernel + 3631806) [0xffffff8000576abe]
*16 soreceive + 5579 (mach_kernel) [0xffffff8000599b4b]
*16 sbwait + 175 (mach_kernel) [0xffffff800059cd5f]
*16 msleep + 116 (mach_kernel) [0xffffff800056a344]
*16 ??? (mach_kernel + 3579718) [0xffffff8000569f46]
*16 lck_mtx_sleep_deadline + 87 (mach_kernel) [0xffffff8000226697]
*16 thread_block_reason + 300 (mach_kernel) [0xffffff800022da0c]
*16 ??? (mach_kernel + 190273) [0xffffff800022e741]
*16 machine_switch_context + 366 (mach_kernel) [0xffffff80002b3d7e]
Thread 0x12100 DispatchQueue 2 priority 48
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Thread 0x1210e priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12118 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? [0x10f897212]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x1211a priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0x1211c priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 263529) [0x10d8bf569]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12134 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1666317) [0x10da15d0d]
16 ??? (iTunes + 1666501) [0x10da15dc5]
16 ??? (iTunes + 263309) [0x10d8bf48d]
16 ??? (iTunes + 111128) [0x10d89a218]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x12135 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 1659554) [0x10da142a2]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12138 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 11091873) [0x10e312fa1]
16 ??? (iTunes + 11092062) [0x10e31305e]
16 __accept + 10 (libsystem_kernel.dylib) [0x7fff89b82996]
*16 hndl_unix_scall64 + 19 (mach_kernel) [0xffffff80002ced33]
*16 unix_syscall64 + 522 (mach_kernel) [0xffffff80005e182a]
*16 accept_nocancel + 442 (mach_kernel) [0xffffff800059faea]
*16 msleep + 116 (mach_kernel) [0xffffff800056a344]
*16 ??? (mach_kernel + 3579734) [0xffffff8000569f56]
*16 lck_mtx_sleep + 78 (mach_kernel) [0xffffff80002265fe]
*16 thread_block_reason + 300 (mach_kernel) [0xffffff800022da0c]
*16 ??? (mach_kernel + 190273) [0xffffff800022e741]
*16 machine_switch_context + 366 (mach_kernel) [0xffffff80002b3d7e]
Thread 0x12139 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 11091873) [0x10e312fa1]
16 ??? (iTunes + 11092062) [0x10e31305e]
16 __accept + 10 (libsystem_kernel.dylib) [0x7fff89b82996]
*16 hndl_unix_scall64 + 19 (mach_kernel) [0xffffff80002ced33]
*16 unix_syscall64 + 522 (mach_kernel) [0xffffff80005e182a]
*16 accept_nocancel + 442 (mach_kernel) [0xffffff800059faea]
*16 msleep + 116 (mach_kernel) [0xffffff800056a344]
*16 ??? (mach_kernel + 3579734) [0xffffff8000569f56]
*16 lck_mtx_sleep + 78 (mach_kernel) [0xffffff80002265fe]
*16 thread_block_reason + 300 (mach_kernel) [0xffffff800022da0c]
*16 ??? (mach_kernel + 190273) [0xffffff800022e741]
*16 machine_switch_context + 366 (mach_kernel) [0xffffff80002b3d7e]
Thread 0x1213a priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x1213d priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12144 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12165 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x12198 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 1735562) [0x10da26b8a]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x1224b priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 333885) [0x10d8d083d]
16 ??? (iTunes + 334295) [0x10d8d09d7]
16 ??? (iTunes + 334400) [0x10d8d0a40]
16 ??? (iTunes + 334681) [0x10d8d0b59]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x12258 priority 55 cpu time 0.003s
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 108154) [0x10d89967a]
16 ??? (iTunes + 108859) [0x10d89993b]
16 ??? (iTunes + 111192) [0x10d89a258]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*13 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
*3 hndl_unix_scall64 + 19 (mach_kernel) [0xffffff80002ced33]
*3 unix_syscall64 + 522 (mach_kernel) [0xffffff80005e182a]
*3 psynch_cvwait + 1340 (mach_kernel) [0xffffff80005b5c6c]
*3 thread_block_reason + 275 (mach_kernel) [0xffffff800022d9f3]
*3 ??? (mach_kernel + 187521) [0xffffff800022dc81]
*3 processor_idle + 227 (mach_kernel) [0xffffff800022f1c3]
*3 machine_idle + 282 (mach_kernel) [0xffffff80002b8c5a]
Thread 0x12259 priority 53
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 333885) [0x10d8d083d]
16 ??? (iTunes + 334295) [0x10d8d09d7]
16 ??? (iTunes + 334400) [0x10d8d0a40]
16 ??? (iTunes + 334681) [0x10d8d0b59]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x1225a priority 49 cpu time 0.032s
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 10858045) [0x10e2d9e3d]
16 ??? (iTunes + 10859996) [0x10e2da5dc]
16 ??? (iTunes + 11486992) [0x10e373710]
16 __semwait_signal + 10 (libsystem_kernel.dylib) [0x7fff89b83386]
*16 semaphore_wait_continue + 0 (mach_kernel) [0xffffff8000233ec0]
Thread 0x1225b priority 49
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 10864213) [0x10e2db655]
16 ??? (iTunes + 10864823) [0x10e2db8b7]
16 ??? (iTunes + 10984651) [0x10e2f8ccb]
16 ??? (iTunes + 10983546) [0x10e2f887a]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0x1225c priority 49
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 10865627) [0x10e2dbbdb]
16 ??? (iTunes + 10866239) [0x10e2dbe3f]
16 ??? (iTunes + 10983546) [0x10e2f887a]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0x1225d priority 49
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 333885) [0x10d8d083d]
16 ??? (iTunes + 334295) [0x10d8d09d7]
16 ??? (iTunes + 334400) [0x10d8d0a40]
16 ??? (iTunes + 334681) [0x10d8d0b59]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x1225e priority 49
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 333885) [0x10d8d083d]
16 ??? (iTunes + 334295) [0x10d8d09d7]
16 ??? (iTunes + 334400) [0x10d8d0a40]
16 ??? (iTunes + 334681) [0x10d8d0b59]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x1225f priority 54 cpu time 0.011s
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 333885) [0x10d8d083d]
16 ??? (iTunes + 334295) [0x10d8d09d7]
16 ??? (iTunes + 334400) [0x10d8d0a40]
16 ??? (iTunes + 334681) [0x10d8d0b59]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0x12298 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 1659608) [0x10da142d8]
16 ??? (iTunes + 5425109) [0x10ddab7d5]
16 ??? (iTunes + 5434399) [0x10ddadc1f]
16 ??? (iTunes + 5327923) [0x10dd93c33]
16 ??? (iTunes + 1744535) [0x10da28e97]
16 ??? (iTunes + 1721155) [0x10da23343]
16 ??? (iTunes + 343928) [0x10d8d2f78]
16 ??? (iTunes + 1718190) [0x10da227ae]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x123e8 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 3681174) [0x10dc01b96]
16 ATHostConnectionReadMessage + 607 (AirTrafficHost) [0x11add98e2]
16 ATProcessLinkCopyMessageFromChild + 162 (AirTrafficHost) [0x11adda917]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0x124d4 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 1659608) [0x10da142d8]
16 ??? (iTunes + 5389705) [0x10dda2d89]
16 ??? (iTunes + 1744535) [0x10da28e97]
16 ??? (iTunes + 1721155) [0x10da23343]
16 ??? (iTunes + 343928) [0x10d8d2f78]
16 ??? (iTunes + 1718190) [0x10da227ae]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x124d5 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (iTunes + 26322) [0x10d8856d2]
16 ??? (iTunes + 5395030) [0x10dda4256]
16 ??? (iTunes + 5397085) [0x10dda4a5d]
16 ??? (iTunes + 2900653) [0x10db432ad]
16 ??? (iTunes + 39087) [0x10d8888af]
16 ??? (iTunes + 5778820) [0x10de01d84]
16 ??? (iTunes + 5774178) [0x10de00b62]
16 ??? (iTunes + 5772517) [0x10de004e5]
16 ??? (iTunes + 5791052) [0x10de04d4c]
16 ??? (iTunes + 9435873) [0x10e17eae1]
16 ??? (iTunes + 9434055) [0x10e17e3c7]
16 __psynch_mutexwait + 10 (libsystem_kernel.dylib) [0x7fff89b83122]
*16 psynch_mtxcontinue + 0 (mach_kernel) [0xffffff80005b46d0]
Thread 0x125cb priority 46
*16 ??? (mach_kernel + 3911792) [0xffffff80005bb070]
Binary Images:
0x10d87f000 - 0x10ec5eff7 com.apple.iTunes 11.0.1 (11.0.1) <7549F589-839F-3333-A22E-96E286948A74> /Applications/iTunes.app/Contents/MacOS/iTunes
0x113f12000 - 0x113faffff com.apple.mobiledevice 555.40 (555.40) <EBE1EADF-92BA-3D06-BF89-6B6E7D9AB2F3> /System/Library/PrivateFrameworks/MobileDevice.framework/MobileDevice
0x11add7000 - 0x11af58ff7 com.apple.AirTrafficHost 283 (283) <2CA9CDDC-1307-3608-8DBB-A868C61397C5> /System/Library/PrivateFrameworks/AirTrafficHost.framework/AirTrafficHost
0x7fff84aa6000 - 0x7fff84b72fe7 libsystem_c.dylib <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff87e7d000 - 0x7fff87f7ffff libcrypto.0.9.8.dylib <74F165AD-4572-3B26-B0E2-A97477FE59D0> /usr/lib/libcrypto.0.9.8.dylib
0x7fff88864000 - 0x7fff89491ff7 com.apple.AppKit 6.8 (1187.34) <1FF64844-EB62-3F96-AED7-6525B7CCEC23> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff89d4d000 - 0x7fff8a07dff7 com.apple.HIToolbox 2.0 <317F75F7-4B0F-35F5-89A7-F20BA60AC944> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8e101000 - 0x7fff8e138ff7 libssl.0.9.8.dylib <923945E6-C489-3406-903B-A362410753F8> /usr/lib/libssl.0.9.8.dylib
*0xffffff8000200000 - 0xffffff800074033c mach_kernel <69A5853F-375A-3EF4-9247-478FD0247333> /mach_kernel
Process: accountsd [187]
Path: /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd
Architecture: x86_64
Parent: launchd [138]
UID: 501
Sudden Term: Clean (allows idle exit)
Task size: 1344 pages
Thread 0x582 DispatchQueue 1 priority 31
16 start + 1 (libdyld.dylib) [0x7fff8bd647e1]
16 ??? (accountsd + 3048) [0x10ce3abe8]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x59d DispatchQueue 2 priority 33
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Binary Images:
0x10ce3a000 - 0x10ce3afff accountsd <0982A50A-159D-3E63-A2EC-6447F3706436> /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8bd62000 - 0x7fff8bd65ff7 libdyld.dylib <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
*0xffffff8000200000 - 0xffffff800074033c mach_kernel <69A5853F-375A-3EF4-9247-478FD0247333> /mach_kernel
Process: AirPlayUIAgent [306]
Path: /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent
Architecture: x86_64
Parent: launchd [138]
UID: 501
Sudden Term: Clean (allows idle exit)
Task size: 4523 pages
Thread 0x285b DispatchQueue 1 priority 47
16 start + 1 (libdyld.dylib) [0x7fff8bd647e1]
16 NSApplicationMain + 869 (AppKit) [0x7fff88954cb6]
16 -[NSApplication run] + 517 (AppKit) [0x7fff889b0283]
16 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 (AppKit) [0x7fff889b8ed2]
16 _DPSNextEvent + 685 (AppKit) [0x7fff889b9613]
16 BlockUntilNextEventMatchingListInMode + 62 (HIToolbox) [0x7fff89daccd3]
16 ReceiveNextEventCommon + 356 (HIToolbox) [0x7fff89dace42]
16 RunCurrentEventLoopInMode + 209 (HIToolbox) [0x7fff89dad0a4]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x285f DispatchQueue 2 priority 49
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Binary Images:
0x10f875000 - 0x10f882ff7 com.apple.AirPlayUIAgent 1.4.5 (145.3) <32286CAA-F522-31D4-9800-42BE14F04184> /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff88864000 - 0x7fff89491ff7 com.apple.AppKit 6.8 (1187.34) <1FF64844-EB62-3F96-AED7-6525B7CCEC23> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff89d4d000 - 0x7fff8a07dff7 com.apple.HIToolbox 2.0 <317F75F7-4B0F-35F5-89A7-F20BA60AC944> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8bd62000 - 0x7fff8bd65ff7 libdyld.dylib <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
*0xffffff8000200000 - 0xffffff800074033c mach_kernel <69A5853F-375A-3EF4-9247-478FD0247333> /mach_kernel
Process: AirPort Base Station Agent [200]
Path: /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent
Architecture: x86_64
Parent: launchd [138]
UID: 501
Sudden Term: Clean
Task size: 549 pages
Thread 0x63d DispatchQueue 1 priority 31
16 start + 1 (libdyld.dylib) [0x7fff8bd647e1]
16 ??? (AirPort Base Station Agent + 71957) [0x1092f9915]
16 CFRunLoopRun + 97 (CoreFoundation) [0x7fff8a6b5371]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x641 DispatchQueue 2 priority 33
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Thread 0x656 priority 31
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0x657 priority 31
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ??? (AirPort Base Station Agent + 72800) [0x1092f9c60]
16 ??? (AirPort Base Station Agent + 10633) [0x1092ea989]
16 ??? (AirPort Base Station Agent + 73571) [0x1092f9f63]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Binary Images:
0x1092e8000 - 0x1092feff7 com.apple.AirPortBaseStationAgent 1.5.5 (155.7) <F3A0627B-7620-3A09-A390-3FEBA3DE9CCD> /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent
0x7fff84aa6000 - 0x7fff84b72fe7 libsystem_c.dylib <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8bd62000 - 0x7fff8bd65ff7 libdyld.dylib <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
*0xffffff8000200000 - 0xffffff800074033c mach_kernel <69A5853F-375A-3EF4-9247-478FD0247333> /mach_kernel
Process: aosnotifyd [111]
Path: /usr/sbin/aosnotifyd
Architecture: x86_64
Parent: launchd [1]
UID: 0
Task size: 1302 pages
Thread 0x326 DispatchQueue 1 priority 31
16 start + 1 (libdyld.dylib) [0x7fff8bd647e1]
16 ??? (aosnotifyd + 36447) [0x10e316e5f]
16 ??? (aosnotifyd + 35537) [0x10e316ad1]
16 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268 (Foundation) [0x7fff8bf7f89e]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0x336 DispatchQueue 2 priority 33
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Thread 0x125e9 priority 31
16 start_wqthread + 13 (libsystem_c.dylib) [0x7fff84aa7171]
16 _pthread_wqthread + 412 (libsystem_c.dylib) [0x7fff84abccb3]
16 __workq_kernreturn + 10 (libsystem_kernel.dylib) [0x7fff89b836d6]
*16 ??? (mach_kernel + 3911280) [0xffffff80005bae70]
Binary Images:
0x10e30e000 - 0x10e355ff7 aosnotifyd <A9359981-2023-3781-93F1-89D423F0F712> /usr/sbin/aosnotifyd
0x7fff84aa6000 - 0x7fff84b72fe7 libsystem_c.dylib <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8bd62000 - 0x7fff8bd65ff7 libdyld.dylib <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
0x7fff8bee5000 - 0x7fff8c241fff com.apple.Foundation 6.8 (945.11) <A5D41956-A354-3ACC-9355-BE200072223B> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
*0xffffff8000200000 - 0xffffff800074033c mach_kernel <69A5853F-375A-3EF4-9247-478FD0247333> /mach_kernel
Process: App Store [615]
Path: /Applications/App Store.app/Contents/MacOS/App Store
Architecture: x86_64
Parent: launchd [138]
UID: 501
Task size: 51099 pages
Thread 0xb3be DispatchQueue 1 priority 46
16 ??? (App Store + 6164) [0x10ad53814]
16 NSApplicationMain + 869 (AppKit) [0x7fff88954cb6]
16 -[NSApplication run] + 517 (AppKit) [0x7fff889b0283]
16 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 (AppKit) [0x7fff889b8ed2]
16 _DPSNextEvent + 685 (AppKit) [0x7fff889b9613]
16 BlockUntilNextEventMatchingListInMode + 62 (HIToolbox) [0x7fff89daccd3]
16 ReceiveNextEventCommon + 356 (HIToolbox) [0x7fff89dace42]
16 RunCurrentEventLoopInMode + 209 (HIToolbox) [0x7fff89dad0a4]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0xb3ca DispatchQueue 2 priority 48
16 _dispatch_mgr_thread + 54 (libdispatch.dylib) [0x7fff863c99ee]
16 kevent + 10 (libsystem_kernel.dylib) [0x7fff89b83d16]
*16 ??? (mach_kernel + 3471600) [0xffffff800054f8f0]
Thread 0xb3d7 priority 62
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 __NSThread__main__ + 1345 (Foundation) [0x7fff8bf7a612]
16 +[NSURLConnection(Loader) _resourceLoadLoop:] + 356 (Foundation) [0x7fff8bf1c586]
16 CFRunLoopRunSpecific + 290 (CoreFoundation) [0x7fff8a6a66b2]
16 __CFRunLoopRun + 1078 (CoreFoundation) [0x7fff8a6a6ee6]
16 __CFRunLoopServiceMachPort + 195 (CoreFoundation) [0x7fff8a6a1803]
16 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff89b81686]
*16 ipc_mqueue_receive_continue + 0 (mach_kernel) [0xffffff8000213030]
Thread 0xb408 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 __select + 10 (libsystem_kernel.dylib) [0x7fff89b83322]
*16 ??? (mach_kernel + 3581216) [0xffffff800056a520]
Thread 0xb418 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ***::wtfThreadEntryPoint(void*) + 15 (JavaScriptCore) [0x7fff90f6d36f]
16 JSC::BlockAllocator::blockFreeingThreadMain() + 90 (JavaScriptCore) [0x7fff90f57d0a]
16 ***::ThreadCondition::timedWait(***::Mutex&, double) + 118 (JavaScriptCore) [0x7fff90d35d96]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0xb419 priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ***::wtfThreadEntryPoint(void*) + 15 (JavaScriptCore) [0x7fff90f6d36f]
16 JSC::MarkStackThreadSharedData::markingThreadMain() + 214 (JavaScriptCore) [0x7fff90eba606]
16 JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 212 (JavaScriptCore) [0x7fff90eba724]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0xb42f priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ***::wtfThreadEntryPoint(void*) + 15 (JavaScriptCore) [0x7fff90f6d36f]
16 WebCore::StorageThread::threadEntryPoint() + 154 (WebCore) [0x7fff86ee206a]
16 ***::PassOwnPtr<WebCore::StorageTask> ***::MessageQueue<WebCore::StorageTask>::waitForMessageFilteredWithTimeout<bool (WebCore::StorageTask*)>(***::MessageQueueWaitResult&, bool (&)(WebCore::StorageTask*), double) + 81 (WebCore) [0x7fff8798f9b1]
16 ***::ThreadCondition::timedWait(***::Mutex&, double) + 61 (JavaScriptCore) [0x7fff90d35d5d]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0xb4eb priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ***::wtfThreadEntryPoint(void*) + 15 (JavaScriptCore) [0x7fff90f6d36f]
16 JSC::BlockAllocator::blockFreeingThreadMain() + 90 (JavaScriptCore) [0x7fff90f57d0a]
16 ***::ThreadCondition::timedWait(***::Mutex&, double) + 118 (JavaScriptCore) [0x7fff90d35d96]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Thread 0xb4ec priority 46
16 thread_start + 13 (libsystem_c.dylib) [0x7fff84aa7181]
16 _pthread_start + 327 (libsystem_c.dylib) [0x7fff84aba742]
16 ***::wtfThreadEntryPoint(void*) + 15 (JavaScriptCore) [0x7fff90f6d36f]
16 JSC::MarkStackThreadSharedData::markingThreadMain() + 214 (JavaScriptCore) [0x7fff90eba606]
16 JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 212 (JavaScriptCore) [0x7fff90eba724]
16 __psynch_cvwait + 10 (libsystem_kernel.dylib) [0x7fff89b830fa]
*16 psynch_cvcontinue + 0 (mach_kernel) [0xffffff80005b5d30]
Binary Images:
0x10ad52000 - 0x10add2fff com.apple.appstore 1.2.1 (129.7) <31AAF1C2-2BE9-393B-ABFD-6D869F72E909> /Applications/App Store.app/Contents/MacOS/App Store
0x7fff84aa6000 - 0x7fff84b72fe7 libsystem_c.dylib <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
0x7fff863c5000 - 0x7fff863daff7 libdispatch.dylib <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff86ec3000 - 0x7fff87e7cfff com.apple.WebCore 8536 (8536.26.14) <60029E1A-C1DB-3A1F-8528-4970058D8B3D> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
0x7fff88864000 - 0x7fff89491ff7 com.apple.AppKit 6.8 (1187.34) <1FF64844-EB62-3F96-AED7-6525B7CCEC23> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff89b71000 - 0x7fff89b8cff7 libsystem_kernel.dylib <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
0x7fff89d4d000 - 0x7fff8a07dff7 com.apple.HIToolbox 2.0 <317F75F7-4B0F-35F5-89A7-F20BA60AC944> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff8a672000 - 0x7fff8a85bfff com.apple.CoreFoundation 6.8 (744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8bee5000 - 0x7fff8c241fff com.apple.Foundation 6.8 (945.11) <A5D41956-A354-3ACC-9355-BE200072223B> /System/Library/Frameworks/Foundation.framework/Versions/C/FoundationThe problem is probably with one of your fonts.
There was also a problem with postscript fonts in OSX 10.6.7 for which Apple issued a patch on their software update page.
To find a problem font, try shutting down half your open fonts in Font Book, until the problem goes away. Then replace the problem font.
Peter -
Can anyone spot the syntax error?
I've been looking at this for about a day now and can't see the error, which is:
Insert Failed: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
public String addSaleList(SaleList sL) {
try {
//Gets the connection to customer database.
Class.forName(Driver);
Connection myCon = DriverManager.getConnection(Url);
System.out.println(sL.saleListID + " " + sL.saleID + " " + sL.product
+ " " + sL.number);
String sqlQry = "INSERT INTO salelist(saleID, product, number)" +
"VALUES(?,?,?)";
PreparedStatement myStmt = myCon.prepareStatement(sqlQry);
myStmt.setInt(1, sL.saleID);
myStmt.setString(2, sL.product);
myStmt.setInt(3, sL.number);
myStmt.executeUpdate();
return "Sale confirmed";
catch (Exception e) {
System.out.println("Insert Failed: " + e);
return ("Insert Failed: " + e);
public class SaleList {
public int saleListID;
public int saleID;
public String product;
public int number;
public SaleList(int saleListID, int saleID, String product, int number) {
this.saleListID = saleListID;
this.saleID = saleID;
this.product = product;
this.number = number;
SaleList saleL = new SaleList(0,10,"b",2);
lblStatus.setText(sM.addSaleList(saleL));Hey this is the stack trace:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execut(JdbcOdbcPreparedStatement.java:214)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdateJdbcOdbcPreparedStatement.java:136)
at myproject.SaleModel.addSaleList0 120 a 1
(SaleModel.java:69)
at myproject.SalesGUI.actionPerformed(SalesGUI.java:395)
at java.awt.Button.processActionEvent(Button.java:382)
at java.awt.Button.processEvent(Button.java:350)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) -
FCP gone mad!!! Can anyone diagnose the problem?
I have an Imac, 2.4 GHz Intel Core 2 Duo procss, 4GB of memory. I have never had any problems rendering any of my videos, or exporting them to whatever was on my wildest dreams. Until now.
I've been trying to export a 6 minute short film. Initially, I had already exported it "Using QT conversion", H264 for the web, HD. All went well. Then I watched the film and thought I still needed a filter on it.
So I dropped this newly rendered movie on a brand new timeline, and applied a Looks filter on it. Now it won't render. (the reason I didn't apply the filter to the original film is that there are several video tracks one on top of the other, so I thought I'd take a short cut)
What happens now is that I'll set up the in and out points, and export to the same settings as before, and it will even start exporting, for hours. Around the 5th hour or so I get a message saying "can't render this depth". The video even gets done! But when you watch it, all you get are these colorful blobs floating around the screen against a black background. Whaaaat???
Has anyone ever seen this? Is there a solution? What am I doing wrong?
Here's a grab of what I'm talking about:
[IMG]http://i233.photobucket.com/albums/ee134/tonyeua/Picture19.jpg[/IMG]You're missing the point. What you edit and what you post online are entirely different things. First you edit with a proper codec, THEN you encode to a delivery codec and upload. If you want to re-edit, either go back to your original, make the changes, then re-encode, or convert the H.264 back to an editing codec, make the changes, and re-encode. You're trying to skip the step of using a proper editing codec. It's like trying to make soup without a pot.
-
Can anyone spot the error in this script for iTunes?
This AppleScript is designed to copy the Name and Artist of an iTunes track, then populate the Album Artist field with both, separated with an oblique. But when I run the script in iTunes, it only pastes the Artist name in to the Album Artist field and not the whole string.
tell application "iTunes"
if selection is not {} then -- if tracks are selected...
set sel to selection
set numTracks to (length of sel)
set s to "s"
if numTracks is 1 then set s to ""
display dialog "Adds the name of the track and the name of the artist to the Album Artist field." & return & return & (numTracks & " track" & s & " selected.") buttons {"Cancel", "Continue"} default button 2 with title "Create Album Artist" giving up after 30
if gave up of result is true then return
repeat with t from 1 to numTracks
tell contents of item t of sel
set {album artist} to ({get artist} & " / " & {get name})
end tell
end repeat
else
display dialog "No tracks have been selected." buttons {"Cancel"} default button 1 with icon 0 giving up after 30
end if -- no selection
end tellHello
Try -
tell item t of sel
set album artist to (get artist) & " / " & (get name)
end tell
instead of -
tell contents of item t of sel
set {album artist} to ({get artist} & " / " & {get name})
end tell
In your original code, the left and right value of assignment are both list, i.e. -
left value = {album artist}
right value = {get artist, "/", get name}
Consequently 'album artist' is assigned to the 1st item of the list at right, which is the result of 'get artist'.
In order to avoid this, don't use list assingment, which is not necessary at all here.
Also, I think you may just tell item t of sel, not contents of item t of sel.
Hope this may help,
H -
Problems with Overlay Layout - can anyone spot something wrong/missing?
Hi folks, I'm developing a tool that allows you to draw rectangles around objects on an image. The rectangles are then saved, and you can move between images. For some reason, though my rectangles are not drawing on the panel. I am using the Overlay Layout. Can anyone spot what I'm doing wrong? (The TopPanel canvas appears to be there, as it's taking input from the mouse - the problem is simply that the red rectangles are not drawing on the panel). Please help!!
So you know, there is a JFrame in another class which adds an instance of the ObjectMarker panel to it. It also provides buttons for using the next and previous Image methods.
Any other general advice is appreciated too.
* Object_Marker.java
* Created on 07 April 2008, 15:38
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import javax.imageio.ImageIO;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.OverlayLayout;
import javax.swing.event.MouseInputAdapter;
* @author Eric
public class ObjectMarker extends javax.swing.JPanel {
private static final long serialVersionUID = 6574271353772129556L;
File directory;
String directory_path;
Font big = new Font("SansSerif", Font.BOLD, 18);
List<File> file_list = Collections.synchronizedList(new LinkedList<File>());
String[] filetypes = { "jpeg", "jpg", "gif", "bmp", "tif", "tiff", "png" };
// This Hashmap contains List of Rectangles, allowing me to link images to collections of rectangles through the value 'index'.
public static HashMap<Integer, List<Rectangle>> collection = new HashMap<Integer, List<Rectangle>>();
BufferedImage currentImage;
Thread thread;
Integer index = 0;
OverlayLayout overlay;
private TopPanel top;
private JPanel pictureFrame;
String newline = System.getProperty("line.separator");
* Creates new form Object_Marker
* @throws IOException
public ObjectMarker(File directory) {
System.out.println("Got in...");
this.directory = directory;
File[] temp = directory.listFiles();
directory_path = directory.getPath();
// Add all the image files in the directory to the linked list for easy
// iteration.
for (File file : temp) {
if (isImage(file)) {
file_list.add(file);
initComponents();
try {
currentImage = ImageIO.read(file_list.get(index));
} catch (IOException e) {
System.out.println("There was a problem loading the image.");
// 55 pixels offsets the height of the JMenuBar and the title bar
// which are included in the size of the JFrame.
this.setSize(currentImage.getWidth(), currentImage.getHeight() + 55);
public String getImageList() {
// Allows me to build the string gradually.
StringBuffer list = new StringBuffer();
list.append("Image files found in directory: \n\n");
for (int i = 0; i < file_list.size(); i++) {
list.append((((File) file_list.get(i))).getName() + "\n");
return list.toString();
private void initComponents() {
top = new TopPanel();
pictureFrame = new javax.swing.JPanel();
OverlayLayout ol = new OverlayLayout(this);
this.setLayout(ol);
this.add(top);
this.add(pictureFrame);
* private void initComponents() {
* javax.swing.GroupLayout pictureFrameLayout = new
* javax.swing.GroupLayout(pictureFrame);
* pictureFrame.setLayout(pictureFrameLayout);
* pictureFrameLayout.setHorizontalGroup(
* pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
* .addGap(0, 497, Short.MAX_VALUE) ); pictureFrameLayout.setVerticalGroup(
* pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
* .addGap(0, 394, Short.MAX_VALUE) );
* javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
* this.setLayout(layout); layout.setHorizontalGroup(
* layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
* .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
* javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) );
* layout.setVerticalGroup(
* layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
* .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
* javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
* This function returns the extension of a given file, for example "jpg" or
* "gif"
* @param f
* The file to examine
* @return String containing extension
public static String getExtension(File f) {
String ext = null;
String s = f.getName();
int i = s.lastIndexOf('.');
if (i > 0 && i < s.length() - 1) {
ext = s.substring(i + 1).toLowerCase();
} else {
ext = "";
return ext;
public String getDetails() {
saveRectangles();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < file_list.size(); i++) {
try{
int count = collection.get(i).size();
if (count > 0) {
sb.append(file_list.get(i).getPath() + " "); // Add the
// filename of
// the file
sb.append(count + " "); // Add the number of rectangles
for (int j = 0; j < collection.get(i).size(); j++) {
Rectangle current = collection.get(i).get(j);
String coordinates = (int) current.getMinX() + " "
+ (int) current.getMinY() + " ";
String size = ((int) current.getMaxX() - (int) current
.getMinX())
+ " "
+ ((int) current.getMaxY() - (int) current
.getMinY()) + " ";
String result = coordinates + size;
sb.append(result);
sb.append(newline);
} catch (NullPointerException e){
// Do nothing. "int count = collection.get(i).size();"
// will try to over count.
return sb.toString();
private boolean isImage(File f) {
List<String> list = Arrays.asList(filetypes);
String extension = getExtension(f);
if (list.contains(extension)) {
return true;
return false;
/** Draw the image on the panel. * */
public void paint(Graphics g) {
if (currentImage == null) {
g.drawString("No image to display!", 300, 240);
} else {
// Draw the image
g.drawImage(currentImage, 0, 0, this);
// Write the index
g.setFont(big);
g.drawString(index + 1 + "/" + file_list.size(), 10, 25);
public void nextImage() throws IOException {
if (index < file_list.size() - 1) {
printOutContents();
System.out.println("Index: " + index);
saveRectangles();
index++;
currentImage = ImageIO.read(file_list.get(index));
this
.setSize(currentImage.getWidth(),
currentImage.getHeight() + 55);
top.setSize(this.getSize());
top.rectangle_list.clear();
if (collection.size() > index) {
loadRectangles();
repaint();
private void saveRectangles() {
// If the current image's rectangles have not been changed, don't do
// anything.
if (collection.containsKey(index)) {
System.out.println("Removing Index: " + index);
collection.remove(index);
collection.put(index, top.getRectangleList());
System.out.println("We just saved " + collection.get(index).size()
+ " rectangles");
System.out.println("They were saved in HashMap Location " + index);
System.out.println("Proof: ");
List<Rectangle> temp = collection.get(index);
for (int i = 0; i < temp.size(); i++) {
System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
// If the rectangle list has changed, set the list the current index
// as the new list.
private void loadRectangles() {
System.out.println("We just loaded index " + index
+ " into temporary memory.");
System.out.println("Proof: ");
List<Rectangle> temp = collection.get(index);
top.rectangle_list = collection.get(index);
for (int i = 0; i < temp.size(); i++) {
System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
private void printOutContents() {
System.out.println();
System.out.println("Contents printout...");
for (int i = 0; i < collection.size(); i++) {
for (Rectangle r : collection.get(i)) {
System.out.println("In collection index: " + i + " Rectangle "
+ r.toString());
System.out.println();
public void previousImage() throws IOException {
if (index >= 1) {
printOutContents();
System.out.println("Index: " + index);
saveRectangles();
index--;
currentImage = ImageIO.read(file_list.get(index));
this
.setSize(currentImage.getWidth(),
currentImage.getHeight() + 55);
top.setSize(this.getSize());
top.rectangle_list.clear();
if (index >= 0) {
loadRectangles();
repaint();
public void removeLastRectangle() {
// This method removes the most recent rectangle added.
try {
int length = collection.get(index).size();
collection.get(index).remove(length - 1);
} catch (NullPointerException e) {
try {
top.rectangle_list.remove(top.rectangle_list.size() - 1);
} catch (IndexOutOfBoundsException ioobe) {
JOptionPane.showMessageDialog(this, "Cannot undo any more!");
* Class developed from SSCCE found on Java forum:
* http://forum.java.sun.com/thread.jspa?threadID=647074&messageID=3817479
* @author 74philip
class TopPanel extends JPanel {
List<Rectangle> rectangle_list;
private static final long serialVersionUID = 6208367976334130998L;
Point loc;
int width, height, arcRadius;
Rectangle temp; // for mouse ops in TopRanger
public TopPanel() {
setOpaque(false);
rectangle_list = Collections
.synchronizedList(new LinkedList<Rectangle>());
TopRanger ranger = new TopRanger(this);
addMouseListener(ranger);
addMouseMotionListener(ranger);
public List<Rectangle> getRectangleList() {
List<Rectangle> temporary = Collections
.synchronizedList(new LinkedList<Rectangle>());
temporary.addAll(rectangle_list);
return temporary;
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2.setPaint(Color.red);
// Draw all the rectangles in the rectangle list.
for (int i = 0; i < rectangle_list.size(); i++) {
g2.drawRect(rectangle_list.get(i).x, rectangle_list.get(i).y,
rectangle_list.get(i).width, rectangle_list.get(i).height);
if (temp != null) {
g2.draw(temp);
public void loadRectangleList(List<Rectangle> list) {
rectangle_list.addAll(list);
public void addRectangle(Rectangle r) {
rectangle_list.add(r);
class TopRanger extends MouseInputAdapter {
TopPanel top;
Point offset;
boolean dragging;
public TopRanger(TopPanel top) {
this.top = top;
dragging = false;
public void mousePressed(MouseEvent e) {
Point p = e.getPoint();
top.temp = new Rectangle(p, new Dimension(0, 0));
offset = new Point();
dragging = true;
top.repaint();
public void mouseReleased(MouseEvent e) {
dragging = false;
// update top.r
System.out.println(top.getRectangleList().size() + ": Object added: "
+ top.temp.toString());
top.addRectangle(top.temp);
top.repaint();
public void mouseDragged(MouseEvent e) {
if (dragging) {
top.temp.setBounds(top.temp.x, top.temp.y, e.getX() - top.temp.x, e
.getY()
- top.temp.y);
top.repaint();
}Regards,
EricAlright so I fixed it! I created a new class called BottomPanel extends JPanel, which I then gave the responsibility of drawing the image. I gave it an update method which took the details of the currentImage and displayed it on the screen.
If anybody's interested I also discovered/solved a problem with my mouseListener - I couldn't drag backwards. I fixed this by adding tests looking for negative widths and heights. I compensated accordingly by reseting the rectangle origin to e.getX(), e.getY() and by setting the to original_origin.x - e.getX() and original_origin.y - e.getY().
No problem! -
Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?
Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
After that is done reboot the machine and see if you can log in.
If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
Reboot and try again.
If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
Lots of work, but there is no Lion disks.
https://discussions.apple.com/message/16276201#16276201 -
I have just updated to Yosemite, but now I can't get the custom short-keys to work.
In Mavericks I had no problem whatsoever, but now even after googeling and restart no solution.
Does anyone have the problem? All the other shortcuts work!Hi Thomas,
I can confirm the problem you are hitting. The XML test trace does not get recognized at all, and it defaults to Eclipse's basic Open File behaviour. I am not sure if it's because the format definition is missing, or if it's because something prevents the trace type from being recognized. I will open a bug about it.
Thanks for identifying this issue!
In the meantime, if you'd like to experiment with XML analyses, you can also take a look at the example at https://github.com/tracecompass/xml-analysis-example .
Cheers,
Alex
Maybe you are looking for
-
Query to show all A/P invoices associated with a PO
Hi, I need some help to create a query to show all A/P invoices associated with a PO. I would like the input to be a PO# and the output to show all the A/P invoices and be able to drill down to the A/P invoices. Any help would be appreciated. Thanks!
-
Vendor Master Data - Field SMTP_ADDR (email address)
Hello Gurus, I need you help!! We have recorded a legacy for transaction FK02, because we needed to enter a large amount of e-mails in vendor master records. However, this field was not available in the transaction when carrying out the recording, so
-
Report Selection Formula Error with Crystal Reports 2008 SP3 Fix Pack 3.5
Hello, My name is Carlos, and I would like to report a defect found in the Crystal Reports 2008 SP 3 Fix Pack 3.5 Runtime that is affecting the majority of our reports. As well, I would like to ask if there is a simple workaround that does not invol
-
Problem with the mail generation for the CCMS alert
HI , I have created CCMS alert for the RFCdestination in the system and is working fine, and now i would like to configure mail for the same alert for that i have did the following 1.copied the method CCMS_ONALERT_EMAIL_v2 in RZ21 and created the ne
-
My new Viewsonic LCD wants a resolution of 1680x1050. How do I set this in xorg.config or is it not possible.