Verfasst am: 08.04.2014, 15:41
Titel: Absturz bei Verwendung von uiputfile
Hallo zusammen,
Ich schreibe ein aufwendigeres Programm, welches ein Messgerät steuert und die gemessenen Daten verarbeitet und verwaltet. Der Rechner auf dem das Programm später laufen soll hat zwar das aktuelle Matlab installiert aber keinen Internetzugriff (daher lässt sich Matlab nicht öffnen - nur Netzwerklinzens). Also hab ich das Programm in eine .exe gepackt und es läuft.
Natürlich speichert das Programm auch Daten. Für die Abfrage wohin die Datei gespeichert werden soll verwende ich den Befehl uiputfile. Dieser Befehl funktioniert eigentlich einwandfrei. Jedoch bin ich auf folgendes Problem gestoßen:
Wenn die Funktion aktiv wird öffnet sich das Fenster und ich kann ohne Probleme einen Pfad auswählen und einen Namen vergeben. Wenn ich jedoch den Butten "Neuen Ordner erstellen" klicke stürzt das gesamte Programm ab. D.h. alle Fenster schließen sich ohne Sicherheitsabfrage. Das ist sehr fatal, da dann alle Messungen verloren gehen.
Der Fehler tritt nur vereinzelt auf und lässt sich nur bedingt reproduzieren.
An dem Ort wo der neue Ordner erstellt werden sollte, befindet sich nun ein Fehlerlog. Dieser sagt mir jedoch nur, dass kein core dump erstellt werden konnte. Ich stelle den log trotzdem nachfolgend rein.
Code:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0b3a500a, pid=2476, tid=1572
#
# JRE version: 7.0_11-b21
# Java VM: Java HotSpot(TM) Client VM (23.6-b04 mixed mode windows-x86 )
# Problematic frame:
# C 0x0b3a500a memcpy+0x5a
#
# 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 (0x206f7800): JavaThread "Thread-7" [_thread_in_native, id=1572, stack(0x22970000,0x229f0000)]
EAX=0x0a749004 is an unknown value
EBX=0x00000000 is an unknown value
ECX=0x00000001 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x229ec2d4 is pointing into the stack for thread: 0x206f7800
EBP=0x229ec2dc is pointing into the stack for thread: 0x206f7800
ESI=0x0a749000 is an unknown value
EDI=0x229ed3b8 is pointing into the stack for thread: 0x206f7800
Stack: [0x22970000,0x229f0000], sp=0x229ec2d4, free space=496k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0b3a500a memcpy+0x5a
C 0x23ae2d96 ADL_Main_Control_Create+0x3b06
C 0x2346510e
C [SHELL32.dll+0x577c9] PathProcessCommand+0x2896
C [SHELL32.dll+0x58026] PathProcessCommand+0x30f3
C [SHELL32.dll+0x16f8d2] Ordinal7+0x562d4
C [COMDLG32.dll+0x2acf6]
C [COMDLG32.dll+0x72ed] GetOpenFileNameA+0x424e
C [COMDLG32.dll+0x277f] GetFileTitleA+0x21c
C [USER32.dll+0x8734] GetDC+0x6d
C [USER32.dll+0x13ce4] EnumDisplaySettingsA+0x27d
C [USER32.dll+0x13b30] EnumDisplaySettingsA+0xc9
C [USER32.dll+0x13d5c] DefDlgProcW+0x22
C [USER32.dll+0x8734] GetDC+0x6d
C [USER32.dll+0x8816] GetDC+0x14f
C [USER32.dll+0x1927b] GetParent+0x16c
C [USER32.dll+0x192e3] SendMessageW+0x49
C [comctl32.dll+0x748b5] Ordinal384+0x589fa
C [comctl32.dll+0x75726] CreateToolbar+0xb67
C [USER32.dll+0x8734] GetDC+0x6d
C [USER32.dll+0x8816] GetDC+0x14f
C [USER32.dll+0x89cd] GetWindowLongW+0x127
C [USER32.dll+0x8a10] DispatchMessageW+0xf
C [USER32.dll+0x174ff] IsDialogMessageW+0xdb
C [USER32.dll+0x1763c] CallMsgFilterW+0x12e
C [USER32.dll+0x149c4] GetCursorFrameInfo+0x1cc
C [USER32.dll+0x14a06] DialogBoxIndirectParamAorW+0x36
C [USER32.dll+0x2208d] DialogBoxIndirectParamW+0x1b
C [COMDLG32.dll+0x355f] GetOpenFileNameA+0x4c0
C [COMDLG32.dll+0x2dad7]
C [COMDLG32.dll+0x3349] GetOpenFileNameA+0x2aa
C [COMDLG32.dll+0x17c7d] GetSaveFileNameW+0x52
C [libmwnativedialogs.dll+0x98ac] pf::dialog::NativeDialogFactory::GetAlert+0x16cc
C [libmwnativedialogs.dll+0xb221] pf::dialog::NativeDialogFactory::GetAlert+0x3041
C [libmwnativedialogs.dll+0x6704] pf::dialog::FileDialog::DelegateRun+0x54
C [libmwnativedialogs.dll+0x68d3] pf::dialog::FileSaveDialog::Run+0x13
C 0x79595172 Java_com_mathworks_util_NativeJava_showNativeFileDialogMulti+0x222
j com.mathworks.util.NativeJava.showNativeFileDialogMulti(JZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZLjava/lang/String;I)Ljava/lang/Object;+0
j com.mathworks.mwswing.MJFileChooserPerPlatform$RunnableNativeDispatch.runNative()V+37
j com.mathworks.mwswing.MJFileChooserPerPlatform$RunnableNativeDispatch.runWindows()V+22
j com.mathworks.mwswing.MJFileChooserPerPlatform$RunnableNativeDispatch.run()V+7
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
C 0x6e8fa3ba JVM_Clone+0x4982a
C 0x6e9a97de JVM_FindSignal+0x602de
C 0x6e8fa5a3 JVM_Clone+0x49a13
C 0x6e8fa607 JVM_Clone+0x49a77
C 0x6e8a315f jio_fprintf+0x17f
C 0x6e91a6b7 JVM_Clone+0x69b27
C 0x6e91a820 JVM_Clone+0x69c90
C 0x6e94f009 JVM_FindSignal+0x5b09
C [MSVCR100.dll+0x5c556] endthreadex+0x3a
C [MSVCR100.dll+0x5c600] endthreadex+0xe4
C [kernel32.dll+0xb729] GetModuleFileNameA+0x1ba
Other Threads:
0x0594a800 VMThread [stack: 0x09070000,0x09170000][id=2548]
0x0594b400 WatcherThread [stack: 0x09470000,0x09570000][id=1048]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 14784K, used 11282K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 73% used [0x10030000, 0x109a4870, 0x10d10000)
from space 1600K, 100% used [0x10d10000, 0x10ea0000, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 11802K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 24% used [0x12030000, 0x12bb6928, 0x12bb6a00, 0x15030000)
compacting perm gen total 32768K, used 18025K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 55% used [0x18030000, 0x191ca428, 0x191ca600, 0x1a030000)
No shared spaces configured.
GC Heap History (10 events):
Event: 19.092 GC heap before
{Heap before GC invocations=41(full0):
def new generation total 14784K, used 14318K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 100% used [0x10030000, 0x10d10000, 0x10d10000)
from space 1600K, 70% used [0x10ea0000, 0x10fbbb60, 0x11030000)
to space 1600K, 0% used [0x10d10000, 0x10d10000, 0x10ea0000)
tenured generation total 49152K, used 10304K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 20% used [0x12030000, 0x12a40060, 0x12a40200, 0x15030000)
compacting perm gen total 32768K, used 16980K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 51% used [0x18030000, 0x190c5038, 0x190c5200, 0x1a030000)
No shared spaces configured.
Event: 19.101 GC heap after
Heap after GC invocations=42(full0):
def new generation total 14784K, used 898K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 0% used [0x10030000, 0x10030000, 0x10d10000)
from space 1600K, 56% used [0x10d10000, 0x10df0918, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 10673K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 21% used [0x12030000, 0x12a9c600, 0x12a9c600, 0x15030000)
compacting perm gen total 32768K, used 16980K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 51% used [0x18030000, 0x190c5038, 0x190c5200, 0x1a030000)
No shared spaces configured.
}
Event: 19.744 GC heap before
{Heap before GC invocations=42(full0):
def new generation total 14784K, used 14082K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 100% used [0x10030000, 0x10d10000, 0x10d10000)
from space 1600K, 56% used [0x10d10000, 0x10df0918, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 10673K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 21% used [0x12030000, 0x12a9c600, 0x12a9c600, 0x15030000)
compacting perm gen total 32768K, used 17412K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 53% used [0x18030000, 0x19131158, 0x19131200, 0x1a030000)
No shared spaces configured.
Event: 19.752 GC heap after
Heap after GC invocations=43(full0):
def new generation total 14784K, used 1172K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 0% used [0x10030000, 0x10030000, 0x10d10000)
from space 1600K, 73% used [0x10ea0000, 0x10fc5310, 0x11030000)
to space 1600K, 0% used [0x10d10000, 0x10d10000, 0x10ea0000)
tenured generation total 49152K, used 10894K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 22% used [0x12030000, 0x12ad3830, 0x12ad3a00, 0x15030000)
compacting perm gen total 32768K, used 17412K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 53% used [0x18030000, 0x19131158, 0x19131200, 0x1a030000)
No shared spaces configured.
}
Event: 20.134 GC heap before
{Heap before GC invocations=43(full0):
def new generation total 14784K, used 14356K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 100% used [0x10030000, 0x10d10000, 0x10d10000)
from space 1600K, 73% used [0x10ea0000, 0x10fc5310, 0x11030000)
to space 1600K, 0% used [0x10d10000, 0x10d10000, 0x10ea0000)
tenured generation total 49152K, used 10894K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 22% used [0x12030000, 0x12ad3830, 0x12ad3a00, 0x15030000)
compacting perm gen total 32768K, used 17555K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 53% used [0x18030000, 0x19154f60, 0x19155000, 0x1a030000)
No shared spaces configured.
Event: 20.142 GC heap after
Heap after GC invocations=44(full0):
def new generation total 14784K, used 636K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 0% used [0x10030000, 0x10030000, 0x10d10000)
from space 1600K, 39% used [0x10d10000, 0x10daf390, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 11472K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 23% used [0x12030000, 0x12b643f8, 0x12b64400, 0x15030000)
compacting perm gen total 32768K, used 17555K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 53% used [0x18030000, 0x19154f60, 0x19155000, 0x1a030000)
No shared spaces configured.
}
Event: 29.500 GC heap before
{Heap before GC invocations=44(full0):
def new generation total 14784K, used 13820K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 100% used [0x10030000, 0x10d10000, 0x10d10000)
from space 1600K, 39% used [0x10d10000, 0x10daf390, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 11472K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 23% used [0x12030000, 0x12b643f8, 0x12b64400, 0x15030000)
compacting perm gen total 32768K, used 17704K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 54% used [0x18030000, 0x1917a2c8, 0x1917a400, 0x1a030000)
No shared spaces configured.
Event: 29.507 GC heap after
Heap after GC invocations=45(full0):
def new generation total 14784K, used 822K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 0% used [0x10030000, 0x10030000, 0x10d10000)
from space 1600K, 51% used [0x10ea0000, 0x10f6dac8, 0x11030000)
to space 1600K, 0% used [0x10d10000, 0x10d10000, 0x10ea0000)
tenured generation total 49152K, used 11472K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 23% used [0x12030000, 0x12b643f8, 0x12b64400, 0x15030000)
compacting perm gen total 32768K, used 17704K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 54% used [0x18030000, 0x1917a2c8, 0x1917a400, 0x1a030000)
No shared spaces configured.
}
Event: 31.453 GC heap before
{Heap before GC invocations=45(full0):
def new generation total 14784K, used 14006K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 100% used [0x10030000, 0x10d10000, 0x10d10000)
from space 1600K, 51% used [0x10ea0000, 0x10f6dac8, 0x11030000)
to space 1600K, 0% used [0x10d10000, 0x10d10000, 0x10ea0000)
tenured generation total 49152K, used 11472K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 23% used [0x12030000, 0x12b643f8, 0x12b64400, 0x15030000)
compacting perm gen total 32768K, used 17874K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 54% used [0x18030000, 0x191a4a80, 0x191a4c00, 0x1a030000)
No shared spaces configured.
Event: 31.461 GC heap after
Heap after GC invocations=46(full0):
def new generation total 14784K, used 1600K [0x10030000, 0x11030000, 0x12030000)
eden space 13184K, 0% used [0x10030000, 0x10030000, 0x10d10000)
from space 1600K, 100% used [0x10d10000, 0x10ea0000, 0x10ea0000)
to space 1600K, 0% used [0x10ea0000, 0x10ea0000, 0x11030000)
tenured generation total 49152K, used 11802K [0x12030000, 0x15030000, 0x18030000)
the space 49152K, 24% used [0x12030000, 0x12bb6928, 0x12bb6a00, 0x15030000)
compacting perm gen total 32768K, used 17874K [0x18030000, 0x1a030000, 0x1e030000)
the space 32768K, 54% used [0x18030000, 0x191a4a80, 0x191a4c00, 0x1a030000)
No shared spaces configured.
}
Deoptimization events (0 events):
No events
Internal exceptions (10 events):
Event: 31.665 Thread 0x04bf5400 Threw 0x1080c5b8 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.666 Thread 0x04bf5400 Threw 0x10813668 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.666 Thread 0x04bf5400 Threw 0x1081cd30 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.669 Thread 0x04bf5400 Threw 0x10822298 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.670 Thread 0x04bf5400 Threw 0x10829ce8 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.678 Thread 0x04bf5400 Threw 0x10831cf8 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.679 Thread 0x206f8000 Threw 0x10847028 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.681 Thread 0x04bf5400 Threw 0x10838be8 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.682 Thread 0x206f8400 Threw 0x10851fb0 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Event: 31.684 Thread 0x04bf5400 Threw 0x1085d968 at C:\jdk7u1_32P\jdk7u11\hotspot\src\share\vm\prims\jvm.cpp:1166
Events (10 events):
Event: 31.681 Thread 0x206f8400 Thread added: 0x206f8400
Event: 31.681 loading class 0x201937f0
Event: 31.681 loading class 0x201937f0 done
Event: 31.683 Executing VM operation: RevokeBias
Event: 31.683 Executing VM operation: RevokeBias done
Event: 31.684 loading class 0x20193b38
Event: 31.684 loading class 0x20193b38 done
Event: 34.522 Executing VM operation: RevokeBias
Event: 34.522 Executing VM operation: RevokeBias done
Event: 34.522 Thread 0x206f6400 Thread exited: 0x206f6400
Der Rechner auf dem das Problem auftritt hat genauso wie der Rechner mit dem programmiert wurde, Matlab 2013b installiert und ist auch ein XP Rechner (SP3).
Auf dem "Programmier"-Rechner konnte ich den Fehler nicht herbeirufen.
Hat jemand eine Idee warum dieser Fehler auftritt und wie man ihn beheben könnte?
Ich habe den Support angeschrieben. Mal sehn ob es was bringt.
Einstellungen und Berechtigungen
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.