Originally posted by: JTE7_Nuno_Valle
Hello all,
I'm using CPLEX through Java for the first time and I'm not very into computing so I'm sorry if my question is dumb, but here it goes:
I modeled my problem and solved it with no problem. Then I set the model to use a LazyConstraintCallback. My separation algorithm is able to find cuts but I get this problem when the routine tries to add the cuts to the model.
#
-
A fatal error has been detected by the Java Runtime Environment:
#
-
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fee5b8ab91, pid=5496, tid=3064
#
-
JRE version: 7.0_02-b13
-
Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0-b10 mixed mode windows-amd64 compressed oops)
-
Problematic frame:
-
C http://cplex123.dll+0x37ab91
#
-
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
-
If you would like to submit a bug report, please visit:
-
http://bugreport.sun.com/bugreport/crash.jsp
-
The crash happened outside the Java Virtual Machine in native code.
-
See problematic frame for where to report the bug.
#
T H R E A D
Current thread (0x000000000051b000): JavaThread "main"
_thread_in_native, id=3064, stack(0x00000000036e0000,0x00000000037e0000) siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008
Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000000000009, RDX=0x0000000008e6fd10
RSP=0x00000000037dd2b0, RBP=0x0000000007cb9120, RSI=0x00000000088d1ef0, RDI=0x000000000051b1d0
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x00000000088d1ef0
R12=0x0000000008c64730, R13=0x00000000037de760, R14=0x0000000000000073, R15=0x00000000000000c6
RIP=0x000007fee5b8ab91, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x00000000037dd2b0)
0x00000000037dd2b0: 0000000000000002 0000000000000800
0x00000000037dd2c0: 00000000037de760 0000000000000000
0x00000000037dd2d0: 0000000000000800 000000006740cad2
0x00000000037dd2e0: 000000000051b000 0000000000000800
0x00000000037dd2f0: 0000000000000003 0000000000000318
0x00000000037dd300: 000000000051b1d0 0000000067357db7
0x00000000037dd310: 0000000000000000 00000000037dd4b8
0x00000000037dd320: 00000000000000c6 00000000088d1ef0
0x00000000037dd330: 00000000037de760 0000000008c64730
0x00000000037dd340: 000000000051b000 000007fee5debf80
0x00000000037dd350: 00000000037dd4b8 00000000000000c6
0x00000000037dd360: 000000000051b1d0 0000000000000000
0x00000000037dd370: 4000000000000000 0000000000000047
0x00000000037dd380: 0000000007cb9120 00000000088d1ef0
0x00000000037dd390: 0000000000000000 000000000051be18
0x00000000037dd3a0: 00000000000000c6 fffffffffffffffe
Instructions: (pc=0x000007fee5b8ab91)
0x000007fee5b8ab71: 48 85 ed 74 0d 48 8b b4 24 d8 00 00 00 48 85 f6
0x000007fee5b8ab81: 75 0a b8 ec 03 00 00 e9 be 00 00 00 48 8b 42 28
0x000007fee5b8ab91: 48 63 50 08 4c 63 40 0c 48 ff c2 4c 89 e1 45 33
0x000007fee5b8aba1: c9 e8 69 3d d4 ff 85 c0 74 0a b8 f8 03 00 00 e9
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x0000000000000009 is an unknown value
RDX=0x0000000008e6fd10 is an unknown value
RSP=0x00000000037dd2b0 is pointing into the stack for thread: 0x000000000051b000
RBP=0x0000000007cb9120 is an unknown value
RSI=0x00000000088d1ef0 is an unknown value
RDI=0x000000000051b1d0 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x00000000088d1ef0 is an unknown value
R12=0x0000000008c64730 is an unknown value
R13=0x00000000037de760 is pointing into the stack for thread: 0x000000000051b000
R14=0x0000000000000073 is an unknown value
R15=0x00000000000000c6 is an unknown value
Stack:
0x00000000036e0000,0x00000000037e0000, sp=0x00000000037dd2b0, free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C
http://cplex123.dll+0x37ab91 CPXcutcallbackadd+0xc1
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j ilog.cplex.Cplex.CPXcutcallbackadd(JJIIDI[I[DI)I+0
j ilog.cplex.CpxCutCallback.addCut(DI[I[DDI)V+119
j ilog.cplex.CpxCutCallback.addCut(Lilog/concert/IloConstraint;I)Lilog/concert/IloConstraint;+121
j ilog.cplex.IloCplex$LazyConstraintCallback.add(Lilog/concert/IloConstraint;)Lilog/concert/IloConstraint;+9
j rsdvrp.LazyCallback.main()V+332
j ilog.cplex.CpxCallback.callmain()Ljava/lang/Object;+4
j ilog.cplex.CpxLazyConstraintCallbackFunction.callIt(JJILjava/lang/Object;[I)I+86
v ~StubRoutines::call_stub
j ilog.cplex.Cplex.CPXmipopt(JJ)I+0
j ilog.cplex.CplexI.solve()V+68
j ilog.cplex.IloCplex.solve()Z+4
j rsdvrp.MIP.<init>(II[I[[D)V+102
j rsdvrp.RSDVRP.main([Ljava/lang/String;)V+52
v ~StubRoutines::call_stub
P R O C E S S
Java Threads: ( => current thread )
0x0000000007358000 JavaThread "Service Thread" daemon
_thread_blocked, id=5608, stack(0x0000000008600000,0x0000000008700000) 0x0000000007356000 JavaThread "C2 CompilerThread1" daemon
_thread_blocked, id=6128, stack(0x0000000008500000,0x0000000008600000) 0x0000000007351000 JavaThread "C2 CompilerThread0" daemon
_thread_blocked, id=5916, stack(0x0000000008300000,0x0000000008400000) 0x0000000007350000 JavaThread "Attach Listener" daemon
_thread_blocked, id=2848, stack(0x0000000008170000,0x0000000008270000) 0x0000000007348800 JavaThread "Signal Dispatcher" daemon
_thread_blocked, id=6044, stack(0x0000000007f70000,0x0000000008070000) 0x00000000035d6000 JavaThread "Finalizer" daemon
_thread_blocked, id=5036, stack(0x0000000007d10000,0x0000000007e10000) 0x00000000035cd000 JavaThread "Reference Handler" daemon
_thread_blocked, id=2080, stack(0x0000000007af0000,0x0000000007bf0000) =>0x000000000051b000 JavaThread "main"
_thread_in_native, id=3064, stack(0x00000000036e0000,0x00000000037e0000) Other Threads:
0x00000000035c5800 VMThread
stack: 0x0000000007970000,0x0000000007a70000 id=2472 0x0000000007375000 WatcherThread
stack: 0x0000000007e70000,0x0000000007f70000 id=4748 VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 18496K, used 7616K [0x00000000eb600000, 0x00000000ecaa0000, 0x0000000100000000)
eden space 15872K, 47% used [0x00000000eb600000,0x00000000ebd70208,0x00000000ec580000)
from space 2624K, 0% used [0x00000000ec810000,0x00000000ec810000,0x00000000ecaa0000)
to space 2624K, 0% used [0x00000000ec580000,0x00000000ec580000,0x00000000ec810000)
PSOldGen total 42240K, used 0K [0x00000000c2200000, 0x00000000c4b40000, 0x00000000eb600000)
object space 42240K, 0% used [0x00000000c2200000,0x00000000c2200000,0x00000000c4b40000)
PSPermGen total 21248K, used 4315K [0x00000000bd000000, 0x00000000be4c0000, 0x00000000c2200000)
object space 21248K, 20% used [0x00000000bd000000,0x00000000bd436c18,0x00000000be4c0000)
Code Cache [0x00000000037e0000, 0x0000000003a50000, 0x00000000067e0000)
total_blobs=384 nmethods=41 adapters=296 free_code_cache=48617Kb largest_free_block=49766720
Dynamic libraries:
0x000000013ffc0000 - 0x000000013fff3000 C:\Program Files\Java\jdk1.7.0_02\bin\java.exe
0x0000000077ae0000 - 0x0000000077c8c000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000077870000 - 0x000000007798f000 C:\Windows\system32\kernel32.dll
0x000007fefe190000 - 0x000007fefe1fc000 C:\Windows\system32\KERNELBASE.dll
0x000000006fa10000 - 0x000000006fa65000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\midas64.dll
0x000000006f9e0000 - 0x000000006fa08000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_base.m64
0x000000006f980000 - 0x000000006f9d8000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_nt.m64
0x000000006f950000 - 0x000000006f975000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_registry.m64
0x000000006f910000 - 0x000000006f949000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_extra.m64
0x000000006f8f0000 - 0x000000006f90d000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_net.m64
0x000000006f8a0000 - 0x000000006f8e8000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\plugin_fragments.m64
0x0000000180000000 - 0x0000000180023000 C:\Program Files\BitDefender\BitDefender 2011\Active Virus Control\Midas_00084_004\leaktests.m64
0x000007fefe320000 - 0x000007fefe3fb000 C:\Windows\system32\ADVAPI32.dll
0x000007feffc90000 - 0x000007feffd2f000 C:\Windows\system32\msvcrt.dll
0x000007feffdd0000 - 0x000007feffdef000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefe400000 - 0x000007fefe52e000 C:\Windows\system32\RPCRT4.dll
0x0000000077610000 - 0x000000007770a000 C:\Windows\system32\USER32.dll
0x000007feffd60000 - 0x000007feffdc7000 C:\Windows\system32\GDI32.dll
0x000007feff5d0000 - 0x000007feff5de000 C:\Windows\system32\LPK.dll
0x000007feff910000 - 0x000007feff9da000 C:\Windows\system32\USP10.dll
0x000007fefc150000 - 0x000007fefc344000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_fa62ad231704eab7\COMCTL32.dll
0x000007feff6f0000 - 0x000007feff761000 C:\Windows\system32\SHLWAPI.dll
0x000007feffd30000 - 0x000007feffd5e000 C:\Windows\system32\IMM32.DLL
0x000007feff5e0000 - 0x000007feff6e9000 C:\Windows\system32\MSCTF.dll
0x0000000073710000 - 0x00000000737e1000 C:\Program Files\Java\jdk1.7.0_02\jre\bin\msvcr100.dll
0x0000000067260000 - 0x000000006793a000 C:\Program Files\Java\jdk1.7.0_02\jre\bin\server\jvm.dll
0x000007feec390000 - 0x000007feec399000 C:\Windows\system32\WSOCK32.dll
0x000007fefe530000 - 0x000007fefe57d000 C:\Windows\system32\WS2_32.dll
0x000007fefe790000 - 0x000007fefe798000 C:\Windows\system32\NSI.dll
0x000007fefcea0000 - 0x000007fefcedb000 C:\Windows\system32\WINMM.dll
0x0000000077cb0000 - 0x0000000077cb7000 C:\Windows\system32\PSAPI.DLL
0x0000000073880000 - 0x000000007388f000 C:\Program Files\Java\jdk1.7.0_02\jre\bin\verify.dll
0x0000000073850000 - 0x0000000073878000 C:\Program Files\Java\jdk1.7.0_02\jre\bin\java.dll
0x0000000073830000 - 0x0000000073845000 C:\Program Files\Java\jdk1.7.0_02\jre\bin\zip.dll
0x000007fee5810000 - 0x000007fee668d000 C:\ILOG\CPLEX_Studio123\cplex\bin\x64_win64\cplex123.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Djava.library.path=C:\ILOG\CPLEX_Studio123\cplex\bin\x64_win64
java_command: rsdvrp.RSDVRP
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files (x86)\MiKTeX 2.8\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files (x86)\Graphviz 2.28\bin;C:\ILOG\CPLEX_Studio123\opl\bin\x64_win64;C:\ILOG\CPLEX_Studio123\opl\oplide\;C:\ILOG\CPLEX_Studio123\cplex\bin\x64_win64;C:\ILOG\CPLEX_Studio123\cpoptimizer\bin\x64_win64
USERNAME=NUNO
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel
S Y S T E M
OS: Windows 7 , 64 bit Build 7600
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 4053864k(1484740k free), swap 10131452k(7001964k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (22.0-b10) for windows-amd64 JRE (1.7.0_02-b13), built on Nov 17 2011 13:51:15 by "java_re" with unknown MS VC++:1600
time: Wed Feb 08 15:56:13 2012
elapsed time: 0 seconds
I would appreciate some help please.
Best Regards,
Nuno
#CPLEXOptimizers#DecisionOptimization