SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 48895: Optimization/evaluation might fail with "ERROR: TKTException code = 6 (Access violation)..."

DetailsHotfixAboutRate It

SAS Promotion Optimization optimization/evaluation might fail with the following error in the MerchIngelGridSvr.log file:

2012-12-20 10:00:18,809 [RequestThread-100687] DEBUG TKMI - 20121220:10.00.17.46: Error: job 'rpp_process_[8]' encountered a fatal error 2012-12-20 10:00:18,809 [RequestThread-100687] DEBUG TKMI - 20121220:10.00.17.48: 2012-12-20 10:00:18,809 [RequestThread-100687] DEBUG TKMI - ERROR: TKTException code = 6 (Access violation) 2012-12-20 10:00:18,809 [RequestThread-100687] DEBUG TKMI - #4 0x00007fe34b871cd1 in tkmi_exception_handler (thread=0x276f, ctxt=0x7fe217013fdc, code=TKTE_UnknownException) at /sas/wky/mva-m1ro52/di/src/tkmi_exception.c:77 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #5 0x00007fe35b4b7116 in bktExcept () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkmk.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #6 0x00007fe35b4ba11b in bkt_segv () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkmk.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #7 0x00007fe35b4b76e4 in bkt_signal_handler () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkmk.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #8 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #9 0x00007fe34babf3c4 in CalculateStoreDemand (context=0x0) at /sas/wky/mva-m1ro52/dippr/src/rpp_opt_util.c:2597 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #10 0x00007fe34b860253 in logic_fn (ctxt=0x7fe34b1b55f8, req=0x7fe24d6b9388, thread=0x7fe34702f130, cb=0x7fe35109a4c8) at /sas/wky/mva-m1ro52/di/src/job_manager.c:1293 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #11 0x00007fe352198d0b in basicPuddleMain () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkepdl.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #12 0x00007fe35b4b5926 in sktMain () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkmk.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #13 0x00007fe35b4 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - 20121220:10.00.17.48: b6f7b in bktMain () from /in/SAUA/sfw/sas/SASFoundation/9.3/sasexe/tkmk.so 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #14 0x00000037b0e07851 in start_thread () from /lib64/libpthread.so.0 2012-12-20 10:00:18,810 [RequestThread-100687] DEBUG TKMI - #15 0x000000317cce76dd in clone () from /lib64/libc.so.6

Optimization/evaluation fails because the number of locations in the plan is small compared to the number of processors used for optimization.

The workaround for this issue is to set MAX_CPU_THREADS=2 in server.xml by editing the com.sas.solutions.di.tkmiserver.captain.onlineopt.args property as described in Chapter 22 of the SAS® Revenue Optimization Administrator's Guide.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Promotion OptimizationMicrosoft® Windows® for x645.2_M15.2_M29.3 TS1M29.3 TS1M2
Linux for x645.2_M15.2_M29.3 TS1M29.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.