Log Exceptions on Insert, Erroring on PK Violation
I have a process that inserts into a table with an append hint. When the insert is based on a select, primary key exceptions propogate to the code and error:
*1. Create table and error table:*
SQL>CREATE TABLE test
2 (col1 NUMBER(10) CONSTRAINT test_pk01 PRIMARY KEY
3 );
Table created.
SQL>
SQL>exec dbms_errlog.create_error_log(dml_table_name=>'TEST',err_log_table_name=>'TEST_ERRORS')
PL/SQL procedure successfully completed.*2. Put a row in:*
SQL>INSERT INTO test
2 (col1
3 )
4 VALUES
5 (1
6 );
1 row created.*3. Attempt to put rows in that violated the PK with and without append hint:*
SQL>INSERT INTO test
2 (col1
3 )
4 VALUES
5 (1
6 )
7 LOG ERRORS INTO test_errors
8 REJECT LIMIT UNLIMITED;
0 rows created.
SQL>INSERT /*+ APPEND */ INTO test
2 (col1
3 )
4 VALUES
5 (1
6 )
7 LOG ERRORS INTO test_errors
8 REJECT LIMIT UNLIMITED;
0 rows created.
SQL>SELECT ORA_ERR_MESG$
2 ,col1 col_1
3 FROM test_errors;
ORA_ERR_MESG$ COL_1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1So far so good, the code is behaving
*4. Attempt to Violate the PK with a select in the query (and no append hint):*
SQL>INSERT INTO test
2 (col1
3 )
4 (select 1 from dual)
5 LOG ERRORS INTO test_errors
6 REJECT LIMIT UNLIMITED;
0 rows created.
SQL>SELECT ORA_ERR_MESG$
2 ,col1 col_1
3 FROM test_errors;
ORA_ERR_MESG$ COL_1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1Still OK
*5. Attempt to violate the PK with a select and an append hint:*
SQL>INSERT /*+ APPEND */ INTO test
2 (col1
3 )
4 (select 1 from dual)
5 LOG ERRORS INTO test_errors
6 REJECT LIMIT UNLIMITED;
INSERT /*+ APPEND */ INTO test
ERROR at line 1:
ORA-00001: unique constraint (DW2.TEST_PK01) violated
SQL>SELECT ORA_ERR_MESG$
2 ,col1 col_1
3 FROM test_errors;
ORA_ERR_MESG$ COL_1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1
ORA-00001: unique constraint (DW2.TEST_PK01) violated 1Now I get an error instead of a logged exception
I've reproduced this on 11.2.0.1.0 & 10.2.0.4.0, both running on windows
SQL>select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionThe Oracle Knowledge Base is timing out on me at the moment ...
Thank you for taking the time to have a look.
Ben
user503699 wrote:
bencol wrote:
The Oracle Knowledge Base is timing out on me at the moment ...
Thank you for taking the time to have a look.In the case, where you do a "INSERT /*+ APPEND */..VALUES", the hint is ignored as it is not valid (till 10gR2 atleast).
That statement is executed as conventional INSERT and hence you get error logging. When you do "INSERT /*+ APPEND */...SELECT", oracle attempts to use direct path insert and reports error, ignoring the LOG ERRORS clause, as mentioned in the documentation.11g has introduced an APPEND_VALUES hint to enable direct-path to work with "INSERT INTO...VALUES" syntax.
What do you get when you use APPEND_VALUES hint, in place of APPEND in your INSERT INTO...VALUES example?
Similar Messages
-
Got a new MacBook Pro and migrated my settings and applications from old computer. Reinstalled Microsooft Office from a disk, after I opened a document and it said I was missing some software components. Now when I open any office application, I get:
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_CRASH (SIGTRAP)
Date/Time: 2014-01-19 23:31:24 +0000
Application Name: Microsoft Word
Application Bundle ID: com.microsoft.Word
Application Signature: MSWD
Application Version: 14.3.9.131030
Crashed Module Name: merp
Crashed Module Version: 2.2.4.131030
Crashed Module Offset: 0x00004422
Blame Module Name: MicrosoftSetupUI
Blame Module Version: 14.3.9.131030
Blame Module Offset: 0x0000e516
Application LCID: 1033
Extra app info: Reg=en Loc=0x0409
Crashed thread: 0Hi,
Do you get the error message like "Office <Update version number> can't be installed on this disk. A version of the software required to install this update was not found on this volume. To learn how to fix it this issue, see "I can't install Office
for Mac updates" at http://www.microsoft.com/mac/help.mspx."
If it was, please follow the kb to fix the issue:
http://support.microsoft.com/kb/969065/en-us
Then, here is a forum for Office based on the Windows operation system, we are lack of the source about the Office for mac, you'd better post your question to Answers forum:
http://answers.microsoft.com/en-us/mac/forum/macoffice2008?tab=Threads
Regards,
George Zhao
TechNet Community Support -
Hi,
I have converted a LabWindows CVI project to Visual Studio 2005. When I start the application i debug mode I get the message "Unhandled exception at 0x685662ba in EE352-500V.exe: 0xC0000005: Access violation reading location 0x00000000."
It comes when the application calls: InitCVIRTE in this context:
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
// Initialize LabWindows/CVI run-time library
if (InitCVIRTE (hInstance, 0, 0) == 0)
return -1; /* out of memory */
The debugger indicates that value of hInstance is 0x00400000 {unused=9460301}
Can someone give me a solution to this problem. I have done some search on the Web without success.
Thanks!I think that exception might be coming from the data execution prevention service that is part of Win XP SP2. The OS thinks that you're somehow trying to execute in the data segment and kills the process. It's intended to catch worms and viruses.
You can turn this service off for non-Microsoft programs using the control panel.
Many pointer handling errors now report as this exception instead of as a memory violation exception. That looks like a null pointer derefence to me.
Menchar
Message Edited by menchar on 11-09-2007 07:12 PM -
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_BAD_ACCESS
Date/Time: 2014-03-27 14:14:52 +0000
Application Name: Microsoft Excel
Application Bundle ID: com.microsoft.Excel
Application Signature: XCEL
Application Version: 14.1.4.111121
Crashed Module Name: libTIFF.dylib
Crashed Module Version: unknown
Crashed Module Offset: 0x000078ae
Blame Module Name: MicrosoftComponentPlugin
Blame Module Version: 14.1.4.111121
Blame Module Offset: 0x0000d9fc
Application LCID: 1040
Extra app info: Reg=en Loc=0x0410
Crashed thread: 0Hi mattiaprodomo,
If you are having issues with an app that unexpectedly closes on launch, you may find the following article helpful:
OS X Mavericks: If an app freezes or quits unexpectedly
http://support.apple.com/kb/PH13975
Regards,
- Brenden -
My Microsoft Office won't work after upgrading to the newest OS from Apple! HELP!!!!!!
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_BAD_ACCESS
Date/Time: 2015-03-04 12:04:03 +0000
Application Name: Microsoft Word
Application Bundle ID: com.microsoft.Word
Application Signature: MSWD
Application Version: 14.4.8.150116
Crashed Module Name: unknown
Crashed Module Version: unknown
Crashed Module Offset: unknown
Blame Module Name: MSXML
Blame Module Version: 14.4.8.150116
Blame Module Offset: 0x00003125
Application LCID: 1033
Extra app info: Reg=en Loc=0x0409
Crashed thread: 0If your startup disk says it is full, you need to remove some of your stuff.
Either move some documents/movies/pictures to an external drive (if you want to keep them), or delete them from your startup drive. Then, empty the Trash.
If you move them to an external, you will still have to delete them from the internal drive.
That won't fix Office (I don't think), but it will make everything run better. You need a minimum of 10GB free (more would be better).
You might need to reinstall Office. It should work without problem (well, at least as little problem as Office can muster). -
My MAC no longer runs MS Office 2008
I get the following error message
Microsoft Error Reporting log version: 2.0
Error Signature:
Exception: EXC_BAD_ACCESS
Date/Time: 2015-02-01 23:38:19 +0000
Application Name: Microsoft Excel
Application Bundle ID: com.microsoft.Excel
Application Signature: XCEL
Application Version: 12.0.0.071130
Crashed Module Name: unknown
Crashed Module Version: unknown
Crashed Module Offset: unknown
Blame Module Name: unknown
Blame Module Version: unknown
Blame Module Offset: unknown
Application LCID: 1033
Extra app info: Reg=en Loc=0x0409
Crashed thread: 0If your startup disk says it is full, you need to remove some of your stuff.
Either move some documents/movies/pictures to an external drive (if you want to keep them), or delete them from your startup drive. Then, empty the Trash.
If you move them to an external, you will still have to delete them from the internal drive.
That won't fix Office (I don't think), but it will make everything run better. You need a minimum of 10GB free (more would be better).
You might need to reinstall Office. It should work without problem (well, at least as little problem as Office can muster). -
Inserting error: 100500: non-ORACLE exception
Hi,
I have bunch of inserts in post_update trigger in Forms. When I commit the changes , i notice the error message inserting error: 100500: non-ORACLE exception. I have 6 inserts and only one insert is fired. Please help. I am using forms 6.0.8
Thanks,Hi,
Thanks for the help. I had 6 inserts in one stored proc hence the problem. I split it into 3 different procs and it works now.Thanks Again.
I didn't have any call to next-record etc... -
How to avoid primary key insert error and pipe those would-be error rows to a separate table?
Hi All,
Question: How can I ID duplicate values in a particular column before generating a "Violation of PRIMARY KEY constraint" error?
Background: this SSIS package pulls rows from a remote server table for an insert to a local table. The local table is truncated in step 1 of this package. One of the source columns, "ProductName," is a varchar(50) NOT NULL, with no
constraints at all. In the destination table, that column has a primary key constraint. Even so, we don't expect duplicate primary key inserts due to the source data query. Nevertheless, I've been
tasked with identifying any duplicate ProductName values that may try to get inserted, piping them all to a "DuplicateInsertAttempt_ProductName" table, and sending an email to the interested parties. Since I have no way of knowing which row
should be imported and which should not, I assume the best method is to pipe all rows with a duplicate ProductName out so somebody else can determine which is right and which is wrong, at which point we'll need to improve the query of the source table.
What's the proper way to do this? I assume the "DuplicateInsertAttempt_ProductName" table needs identical schema to the import target table, but without any constraints. I also assume I must ID the duplicate values before attempting
the import so that no error is generated, but I'm not sure how to do this.
Any help would be greatly appreciated.
Thanks,
Ericagree about preventing a dupe or other error on some inconsequential dimension from killing a data mart load that takes a few hrs to run and is an important reporting system.
I looked into using the error output before, but i think it came up a bit short...
This is going from memory from a few years ago, but the columnid that comes out of the error data flow is an internal id for the column in the buffer that can't be easily used to get the column name.
No 'in flight'/in-process way exists to get the column name via something like thisbuffer.column[columnid].name unfortunately
In theory, the only way to get the column name was to initialise another version of the package (via loading the .dtsx xml) using the SMO .net libraries. I say in theory because I stopped considering it an option at that point
And the error code is fairly generic as well if i remember correctly. It's not the error that comes out of the db (Violation of UNIQUE KEY constraint 'x'. Cannot insert duplicate key in object 'dbo.y'. The duplicate key value is (y).) It's a generic
'insert failed'/'a constraint failed' type msg.
I usually leave the default ssis logging to handle all errors (and log them in the sysssislog table), and then I explicitly handle specific exceptions like dupes that I don't want to fail package/parent on error
Jakub @ Adelaide, Australia Blog -
Urgent Help Req.: Exception=ORABPEL-11162 Error while reading native data
Hi All,
I am getting below error: Exception=ORABPEL-11162
Error while reading native data.
[Line=6, Col=7|http://forums.oracle.com/forums/] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
Ensure that there is enough data from the specified position in the input.
Let me also give you the brief scenario of what I am trying to achieve.
INTERFACE FUNCTIONING:_
I have an interface which reads the records in a file in a chunk through ChunkRead adapter and and after one successful reading if chunk it calls the DB adapter to insert the records in the table.
Now these records are committed and next chunk is read and the process goes on till all the records are read.
After this the API is called which does the processing of these records.
Inserting records in the DB is a XA transaction which means if anything goes wrong while inserting the data, the records which are added earlier are rolled back.
ISSUE:_
Now the issue comes when I do the negative testing. Since my file is based on fixed length schema., I change the length of last record from 15 to 13. (say total are 10 records)
Now what happens is when chunkread tries to read the record of 15 length it gets only 13 characters and hence ignores the records.
But the chunkread reads all other 9 records correctly and sends this to DB adapter which now inserts them correctly in the DB.
But being a global transaction I want that if any record is missing from DB in comparison to those in file then whole transaction should roll back.
So I am unable to make this whole process as global transaction. This is because the ChunkRead adapter inspite of detecting the error doesn’t throw it back.
Moreover if this problem occurs in say next chunk then also I am unable to find out how to rollback the whole transaction. Because the first chunk was correct.
So basically two concerns are there:+
How to detect that chunkread adapter has missed one record?+
Secondly, If it’s detected then how should I rollback the transaction that caused earlier records to enter into database?+
Please let me know if anyone has faced this issue earlyer and how it got resolved. Any pointers regarding this would be of great help.
Also attached is the chunkread log for reference.
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: FileRejector::rejectTextualMessage errList=[oracle.tip.pc.services.translation.xlators.nxsd.ErrorList@a5213b]</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: FileRejector::rejectTextualMessage badCount=[1]</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.467-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: Rejecting message fileName=/rh01/s01/n01/Distributions/B2B/Gentran/In/855/Test.txt, startLine=4, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11162
Error while reading native data.
[Line=6, Col=7] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
Ensure that there is enough data from the specified position in the input.
}</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
PFB the version details :
SOA suite version : 10.1.3.3.1 and JDEV : 10.1.3.3
Edited by: SOA Team on Oct 6, 2008 10:48 PMJust a thought, you could set the terminator for the last field as {eol} instead of length, this means that it should read the last field regardless of the length.
Depending on the logic of Db adapter the error could be traped due to incorrect length.
If the file starts each row with a constant(s), e.g. 01 then you can terminate the previous line on that, this is the better option but relys on the file format.
The other option is a little thing call compensation, ouch. Basically this allows you to back out commited rows but you have to provide all the logic, it is generally something people avoid because of the complexity.
cheers
James -
To handle exception in insert query
Hi ,
I am trying it insert certain records from another table A to temp table B, while doing insert i am having exception of unique constraint in table B how can i check which record is throwing exception while inserting in table A
for eg:
insert into A
select * from B;
i need to handle exception in which record of B i am getting unique constraint errorHi,
If you add an error logging clause (with keywords LOG ERRORS), then you can insert a row into another table for each row that can't be inserted according to your INSERT statement.
To query table A to see which ids already exist in table B, you can say
SELECT *
FROM a
WHERE a_id IN (
SELECT b_id
FROM b
where b.b_id is the unique key in table b, and a.a_id is the value you're truing to insert into that column.
If you just want to skip the insert when a matching row already exists, then use MERGE instead of INSERT. -
I am just wondering if it's except-able to put and insert in the exception block? What I would like is if date2 is null kick off an error. if there are no records where date2 is null then go ahead and insert the new record. Is this common practice or should I use sql%rowcount or put count in to variable and check if greater then 0?
create or replace
PROCEDURE X_INSERT
(P_ID NUMBER,
P_DATE1 DATE,
P_DATE2 DATE
AS
a NUMBER;
BEGIN
select ID into a from X where ID = P_ID
AND DATE_2 IS NULL ;
if sql%found then
raise_application_error(-20000, 'record exists');
END IF;
exception
when no_data_found then
insert into X values (P_ID,P_DATE1, P_DATE2);
END X_INSERT;>
I am just wondering if it's except-able to put and insert in the exception block?
>
No - I do not think that approach is acceptable and would not recommend it.
You need any exception LOGGING (inserts) to be permanent even if the transaction is rolled back.
One way to accomplish this is to write a LOG procedure (e.g. SP_LOG) that uses PRAGMA AUTONOMOUS_TRANSACTION so that the logging will occur even if the original transaction is rolled back. You can have overloaded versions of SP_LOG that take different sets of parameters.
The code in the exception block would call the LOG procedure to do the logging and would pass it any information relevant to the exception and where it was caused. A sample generic EXCEPTION block might be
EXCEPTION
WHEN OTHERS THEN
/* Build error string to help debug problem */
v_error_text := ('Exception :'
|| SQLERRM
|| ' Parse error :'
|| TO_CHAR (SQLCODE)
|| ' at position '
|| TO_CHAR (DBMS_SQL.LAST_ERROR_POSITION)
|| ' SQL Text used :'
/* Log this error in a table - for researching problems. */
SP_LOG ( v_error_text );
END main_sp;There would normally be other parameters to the log procedure to identify the stored procedure and package name where the exception was raised, the exception error stack and so on.
The exception block might also need to re-raise the exception rather than make it disappear so that the caller is aware of the exception that occured.
In your case there is no real exception. You just want to log information.
So instead of raising an exception you would just modify your code to call the logging procedure.
if sql%found then
SP_LOG('Cannot INSERT record into myTable - record exists');
END IF; -
Insert error message into session
hi all,
I need to Insert error message into the log of SM35 session.
1. I have created a BDC that creates a session in SM35.
2. The session is scheduled daily and gets executed automatically.
3. there is a scenario where the session should be stopped manually with a error message.
the system doesnt generate any error automatically for that scenario
can any one pls tell me whether its possible to put a manual error into SM35 session log ?
Thanks in Advance,
SanthosiniHi,
There's a few ways you could do this;
Construct your message first (i.e. combine the message text and variables into one string, then move this into the table)
or
Don't store the text, instead store the message ID, number and variable parts of the message. This has the advantage if you're running a multi-language system the log can be used by users of different languages.
Regards,
Nick -
I am getting ORA-20001: Seed insert error while seed translatable text step
Hi,
I am getting this error while English to Arabic translation in the Seed translatable text step
ORA-20001: Seed insert error: WWV_FLOW_ICON_BAR.ICON_IMAGE_ALT ORA-00001: unique constraint (APEX_030200.WWV_FLOW_TRANSLATABLE_TEXT_PK) violated
Can i get any suggetion from your side.
Thanks,
narDid you ever figure this out. Because I also have this error.
-
sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0 We got this response(In firebug console) when we try to click on link (after leave webpage for 3 minuts ideal) which is AJAX based. Please reply ASAP because its urgent.
Hi SP,
Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
Thanks
We are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Hi! I'm stuck with debugging our AIR Application since it does crash very hard. After days of tracking down at least one point where the app crashes on AIR 3.5, 3.7 and AIR 3.8 beta (you see - I tried...).
AIR 3.5 finally reports this console output:
ScrollerTouch.onTargetMouseDown()-F true // A
ScrollerTouch.onTargetMouseDown()-I // B
targetV [object ScrollPane] // C
CRASH! // D
Exception fault: ReferenceError: Error #1065: Variable ::_fileSystemType is not defined.
at global/trace()[int:49]
at de.superclass.control::ScrollerTouch/onTargetMouseDown()[/path/to/.../ScrollerTouch.as:381]
at de.superclass.control::ScrollerTouch/onTargetMouseDown()
The code snipped:
trace("ScrollerTouch.onTargetMouseDown()-F", _scrollHorizontal ); // A
switch ( _scrollPolicyVertical )
case ScrollPolicy.ON:
trace("ScrollerTouch.onTargetMouseDown()-G");
_scrollVertical = true;
break;
case ScrollPolicy.OFF:
trace("ScrollerTouch.onTargetMouseDown()-H");
_scrollVertical = false;
break;
case ScrollPolicy.AUTO:
trace("ScrollerTouch.onTargetMouseDown()-I"); // B
default:
trace( "targetV", targetV ); // C
try
trace( "targetV.height", targetV.height );
catch( e: Error )
trace( "CRASH!" ); // D
_scrollVertical = Boolean( targetV.height < targetV.contentHeight ); // line 381
trace( "targetV.xxx" );
trace( "targetV.contentHeight", targetV.contentHeight );
return;
So accessing targetV.height somehow crashes very hard (app quits) but I have no clue at all. Actually, this code worked for a long time...
So please, what is ::_fileSystemType ?I changed the code again but the app keeps crashing. This is what XCode-Console says:
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Notice>: Formulating crash report for process APP_NAME[1191]
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jul 4 21:25:48 iRad-3 com.apple.launchd[1] (UIKitApplication:APP_NAME_SPACE[0x469][1191]) <Warning>: (UIKitApplication:APP_NAME_SPACE[0x469]) Job appears to have crashed: Segmentation fault: 11
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: Application 'UIKitApplication:APP_NAME_SPACE[0x469]' exited abnormally with signal 11: Segmentation fault: 11
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/APP_NAME_2013-07-04-212547_iRad-3.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Jul 4 21:25:55 iRad-3 kernel[0] <Debug>: launchd[1207] Builtin profile: container (sandbox)
Jul 4 21:25:55 iRad-3 kernel[0] <Debug>: launchd[1207] Container: /private/var/mobile/Applications/CDA04278-5D34-4609-BE71-D66FB16794C1 (sandbox)
Jul 4 21:25:56 iRad-3 kernel[0] <Debug>: launchd[1208] Builtin profile: PasteBoard (sandbox)
Jul 4 21:25:56 iRad-3 backboardd[26] <Warning>: CoreAnimation: updates deferred for too long
Jul 4 21:25:56 iRad-3 backboardd[26] <Warning>: CoreAnimation: timed out fence 2685b
And here's the Crash Log:
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Notice>: Formulating crash report for process APP_NAME[1191]
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: BKSendGSEvent ERROR sending event type 3001: (ipc/send) invalid destination port (0x10000003)
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jul 4 21:25:48 iRad-3 com.apple.launchd[1] (UIKitApplication:APP_NAME_SPACE[0x469][1191]) <Warning>: (UIKitApplication:APP_NAME_SPACE[0x469]) Job appears to have crashed: Segmentation fault: 11
Jul 4 21:25:48 iRad-3 backboardd[26] <Warning>: Application 'UIKitApplication:APP_NAME_SPACE[0x469]' exited abnormally with signal 11: Segmentation fault: 11
Jul 4 21:25:48 iRad-3 ReportCrash[1206] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/APP_NAME_2013-07-04-212547_iRad-3.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Jul 4 21:25:55 iRad-3 kernel[0] <Debug>: launchd[1207] Builtin profile: container (sandbox)
Jul 4 21:25:55 iRad-3 kernel[0] <Debug>: launchd[1207] Container: /private/var/mobile/Applications/CDA04278-5D34-4609-BE71-D66FB16794C1 (sandbox)
Jul 4 21:25:56 iRad-3 kernel[0] <Debug>: launchd[1208] Builtin profile: PasteBoard (sandbox)
Jul 4 21:25:56 iRad-3 backboardd[26] <Warning>: CoreAnimation: updates deferred for too long
Jul 4 21:25:56 iRad-3 backboardd[26] <Warning>: CoreAnimation: timed out fence 2685b
And here's the Crash Log:
Incident Identifier: 17615510-16A5-43B9-B8A5-2ED2C5A2EEBA
CrashReporter Key: 3f85661334bfff23c2d4128bc63674d30647c15b
Hardware Model: iPad3,3
Process: APP_NAME [1191]
Path: /var/mobile/Applications/CDA04278-5D34-4609-BE71-D66FB16794C1/APP_NAME.app/APP_NAME
Identifier: APP_NAME
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-07-04 21:25:47.935 +0200
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x4095e008
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 APP_NAME 0x008c71c8 0x1000 + 9200072
1 APP_NAME 0x005284ac 0x1000 + 5403820
2 APP_NAME 0x007b5edc 0x1000 + 8081116
3 APP_NAME 0x00002928 0x1000 + 6440
4 APP_NAME 0x0045f128 0x1000 + 4579624
5 APP_NAME 0x0045f5f8 0x1000 + 4580856
6 APP_NAME 0x0045eeb4 0x1000 + 4578996
7 APP_NAME 0x0045eab4 0x1000 + 4577972
8 APP_NAME 0x003d98d8 0x1000 + 4032728
9 APP_NAME 0x003c59c0 0x1000 + 3951040
10 APP_NAME 0x00443d24 0x1000 + 4468004
11 APP_NAME 0x009d5448 0x1000 + 10306632
12 APP_NAME 0x009d509c 0x1000 + 10305692
13 APP_NAME 0x009d4ad0 0x1000 + 10304208
14 APP_NAME 0x009d6618 0x1000 + 10311192
15 APP_NAME 0x00cf4d40 0x1000 + 13581632
16 APP_NAME 0x00a5f418 0x1000 + 10871832
17 APP_NAME 0x008d810c 0x1000 + 9269516
18 APP_NAME 0x009b45ac 0x1000 + 10171820
19 APP_NAME 0x009b5140 0x1000 + 10174784
20 UIKit 0x347ff51e -[UIWindow _sendTouchesForEvent:] + 314
21 UIKit 0x347ec7fc -[UIApplication sendEvent:] + 376
22 UIKit 0x347ec116 _UIApplicationHandleEvent + 6150
23 GraphicsServices 0x364e05a0 _PurpleEventCallback + 588
24 GraphicsServices 0x364e01ce PurpleEventCallback + 30
25 CoreFoundation 0x329b9170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
26 CoreFoundation 0x329b9112 __CFRunLoopDoSource1 + 134
27 CoreFoundation 0x329b7f94 __CFRunLoopRun + 1380
28 CoreFoundation 0x3292aeb8 CFRunLoopRunSpecific + 352
29 CoreFoundation 0x3292ad44 CFRunLoopRunInMode + 100
30 GraphicsServices 0x364df2e6 GSEventRunModal + 70
31 UIKit 0x348402fc UIApplicationMain + 1116
32 APP_NAME 0x008f5c0c 0x1000 + 9391116
33 APP_NAME 0x00d2b0e0 0x1000 + 13803744
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3ad76648 kevent64 + 24
1 libdispatch.dylib 0x3aca6974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3aca6654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3ad75eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ad76048 mach_msg + 36
2 CoreFoundation 0x329b9040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x329b7d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3292aeb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3292ad44 CFRunLoopRunInMode + 100
6 WebCore 0x3891a500 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
8 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3ad75eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ad76048 mach_msg + 36
2 APP_NAME 0x00480b04 0x1000 + 4717316
3 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
4 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x3ad8608c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3acd7d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3ace1f14 pthread_cond_wait + 36
3 APP_NAME 0x00a33ad4 0x1000 + 10693332
4 APP_NAME 0x0097d9e0 0x1000 + 9947616
5 APP_NAME 0x00a33938 0x1000 + 10692920
6 APP_NAME 0x00a3398c 0x1000 + 10693004
7 APP_NAME 0x00a336b8 0x1000 + 10692280
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3ad8608c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3acd7d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3ace1f14 pthread_cond_wait + 36
3 APP_NAME 0x00a33ad4 0x1000 + 10693332
4 APP_NAME 0x0097d9e0 0x1000 + 9947616
5 APP_NAME 0x00a33938 0x1000 + 10692920
6 APP_NAME 0x00a3398c 0x1000 + 10693004
7 APP_NAME 0x00a336b8 0x1000 + 10692280
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3ad866a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3ace43ce nanosleep + 138
2 APP_NAME 0x00a33724 0x1000 + 10692388
3 APP_NAME 0x00913638 0x1000 + 9512504
4 APP_NAME 0x009135d8 0x1000 + 9512408
5 APP_NAME 0x00a33938 0x1000 + 10692920
6 APP_NAME 0x00a3398c 0x1000 + 10693004
7 APP_NAME 0x00a336b8 0x1000 + 10692280
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3ad8608c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3acd7d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3acd7aa0 pthread_cond_timedwait + 40
3 APP_NAME 0x00a33b54 0x1000 + 10693460
4 APP_NAME 0x000a7254 0x1000 + 680532
5 APP_NAME 0x00a33938 0x1000 + 10692920
6 APP_NAME 0x00a3398c 0x1000 + 10693004
7 APP_NAME 0x00a336b8 0x1000 + 10692280
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3ad866a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3ace43ce nanosleep + 138
2 APP_NAME 0x00a33724 0x1000 + 10692388
3 APP_NAME 0x008caff0 0x1000 + 9215984
4 APP_NAME 0x008cae08 0x1000 + 9215496
5 APP_NAME 0x00a33938 0x1000 + 10692920
6 APP_NAME 0x00a3398c 0x1000 + 10693004
7 APP_NAME 0x00a336b8 0x1000 + 10692280
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 9 name: com.apple.NSURLConnectionLoader
Thread 9:
0 libsystem_kernel.dylib 0x3ad75eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ad76048 mach_msg + 36
2 CoreFoundation 0x329b9040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x329b7d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3292aeb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3292ad44 CFRunLoopRunInMode + 100
6 Foundation 0x332773d0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x332fae80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
9 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x3ad86594 __select + 20
1 CoreFoundation 0x329bd1f2 __CFSocketManager + 674
2 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
3 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 11:
0 libsystem_kernel.dylib 0x3ad86d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3acd4cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3acd4a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3acd48a0 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x3ad8608c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3acd7d68 _pthread_cond_wait + 704
2 libsystem_c.dylib 0x3aceb080 pthread_cond_timedwait_relative_np + 12
3 APP_NAME 0x00a7e558 0x1000 + 10999128
4 APP_NAME 0x00a7e200 0x1000 + 10998272
5 APP_NAME 0x00a7e0f8 0x1000 + 10998008
6 APP_NAME 0x00a33938 0x1000 + 10692920
7 APP_NAME 0x00a3398c 0x1000 + 10693004
8 APP_NAME 0x00a336b8 0x1000 + 10692280
9 libsystem_c.dylib 0x3acdf30e _pthread_start + 306
10 libsystem_c.dylib 0x3acdf1d4 thread_start + 4
Thread 13:
0 libsystem_kernel.dylib 0x3ad86d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3acd4cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3acd4a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3acd48a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x4095e000 r1: 0x2fdfdf58 r2: 0x0052844c r3: 0x2fdfdf1c
r4: 0x00000221 r5: 0x084d8060 r6: 0x2fdfdf14 r7: 0x2fdfdf88
r8: 0x2fdfdf20 r9: 0x000003fe r10: 0x4095e000 r11: 0x00000000
ip: 0x000002fc sp: 0x2fdfdf10 lr: 0x005284b0 pc: 0x008c71c8
cpsr: 0x20000010
This immediately occurs when I touch and move a little on a specific display object which listens to Mouse-Events DOWN, MOVE to drag it's contents. I think it has something to do with the event system or so. But I'm absolutely blind I guess.
What could I do?
Maybe you are looking for
-
Starting the weblogic server on the local machine
Hi, Whenever, I start the weblogic server locally, I get the following warning. <Warning> <Application Poller> <BEA-149417> <Another process is using this file 'domains\..\autodeploy\filename'. The server will attempt to deploy the application once i
-
HT4623 i have lost my address book after download of icloud, any ideas
i downloaded the latest update, and it installed icloud, but i have lost my contacts, any ideas
-
Can I publish a SWF for flash player 9
Is there a way to publish a SWF file that works in older versions of flash player in Catalyst CS5 or do they have to be published in the latest flash player?
-
Hey All, Want to add another Western Digital Drive to my BX Master. What is the largest size she accepts without using those utility programs? Also, on my earlier posts, had to go back to WIN98SE because my PC Alert III and 3d! did not work prop
-
Yesterday I started getting this error message, and it keeps appearing constantly: The following translators were not loaded due to errors: Spry.htm has configuration information that is invalid. XSLT.htm has configuration information that is invalid