EAccess Violation

Questions about Wine on Linux
Locked
SergioF
Newbie
Newbie
Posts: 2
Joined: Sun Dec 25, 2016 8:38 pm

EAccess Violation

Post by SergioF »

Dears,

I am trying to run an application over Wine, but a memory access violation errors are making things hard. The application opens fine and I'm able to load the data. When I try to generate a graphic (one of the functions inside this application) one error raises.

exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 00456E0F in module 'ActivityPattern.exe'. Read of address 00000000.


I've search in google trying to find some answers, but without good results were found.

Below is attached a more detailed information provided by Application bug report.

Thanks!!!

date/time : 2017-03-11, 11:45:28, 83ms
computer name : XXXX
user name : user <admin>
operating system : Windows 7 Service Pack 1 build 7601
system language : English
system up time : 1 hour 3 minutes
program up time : 22 seconds
processors : 2x Intel(R) Pentium(R) 4 CPU 2.40GHz
physical memory : 2821/3962 MB (free/total)
free disk space : (C:) 399.05 GB
display mode : 1366x768, 32 bit
process id : $27
allocated memory : 16.98 MB
executable : ActivityPattern.exe
exec. date/time : 2011-02-15 06:58
version : 1.2.3.144
compiled with : Delphi 2006/07
madExcept version : 3.0k
callstack crc : $acfed141, $8b8fb879, $097ceb23
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 00456E0F in module 'ActivityPattern.exe'. Read of address 00000000.

main thread ($28):
00456e0f +00b ActivityPattern.exe SysUtils StrLen
00645b57 +01f ActivityPattern.exe agg_font_win32_tt font_engine_win32_tt_base.create_font
00645ea4 +060 ActivityPattern.exe agg_font_win32_tt font_engine_win32_tt_base.create_font_
00654f9f +0b7 ActivityPattern.exe Agg2D TAgg2D.Font
0065b04a +046 ActivityPattern.exe RenderTargets 1268 +2 TRTAGG.SetFont
00674a84 +120 ActivityPattern.exe ChrSeriesChart 1238 +7 TSeriesChart.DrawLegend
00677dc7 +08b ActivityPattern.exe ChrSeriesChart 1894 +7 TStatisticalChart.Draw
00691391 +019 ActivityPattern.exe ChrActivity 358 +2 TActivityChart.Draw
006b7a94 +100 ActivityPattern.exe Main 942 +19 TMainForm.UpdateChart
004b0eff +2bb ActivityPattern.exe Controls TControl.WndProc
004b4d55 +499 ActivityPattern.exe Controls TWinControl.WndProc
004c7af5 +4c1 ActivityPattern.exe Forms TCustomForm.WndProc
004b44e0 +02c ActivityPattern.exe Controls TWinControl.MainWndProc
004798ac +014 ActivityPattern.exe Classes StdWndProc
7ea62768 +e18 user32.dll ArrangeIconicWindows
7ea28ebb +48b user32.dll TranslateAccelerator
7ea3257f +05f user32.dll SendMessageA
0068e906 +14a ActivityPattern.exe DlgSettings 166 +22 TSettingsDialog.ApplySettings
0068fc45 +005 ActivityPattern.exe DlgSettings 520 +1 TSeriesChartSettingsDialog.ApplySettings
0067c5f3 +023 ActivityPattern.exe ChrSeriesChart 2701 +1 TStatChartSettingsDialog.ApplySettings
0068e7b4 +004 ActivityPattern.exe DlgSettings 134 +0 TSettingsDialog.ApplyBtnClick
004b1404 +064 ActivityPattern.exe Controls TControl.Click
0049219e +01e ActivityPattern.exe StdCtrls TButton.Click
0050e128 +068 ActivityPattern.exe Buttons TBitBtn.Click
004b0eff +2bb ActivityPattern.exe Controls TControl.WndProc
004b4d55 +499 ActivityPattern.exe Controls TWinControl.WndProc
00492048 +06c ActivityPattern.exe StdCtrls TButtonControl.WndProc
004b0b8c +024 ActivityPattern.exe Controls TControl.Perform
004b4e8b +023 ActivityPattern.exe Controls DoControlMsg
004b55ff +00b ActivityPattern.exe Controls TWinControl.WMCommand
004b0eff +2bb ActivityPattern.exe Controls TControl.WndProc
004b4d55 +499 ActivityPattern.exe Controls TWinControl.WndProc
004b44e0 +02c ActivityPattern.exe Controls TWinControl.MainWndProc
004798ac +014 ActivityPattern.exe Classes StdWndProc
7ea62768 +e18 user32.dll ArrangeIconicWindows
7ea28ebb +48b user32.dll TranslateAccelerator
7ea30398 +058 user32.dll SendMessageW
7bc71aca +10a ntdll.dll wine_server_call
7bc4c978 +048 ntdll.dll RtlImageNtHeader
7ea62768 +e18 user32.dll ArrangeIconicWindows
7ea6543f +05f user32.dll CallWindowProcA
004b4e37 +0d7 ActivityPattern.exe Controls TWinControl.DefaultHandler
004b1824 +010 ActivityPattern.exe Controls TControl.WMLButtonUp
004b0eff +2bb ActivityPattern.exe Controls TControl.WndProc
004b4d55 +499 ActivityPattern.exe Controls TWinControl.WndProc
00492048 +06c ActivityPattern.exe StdCtrls TButtonControl.WndProc
004b44e0 +02c ActivityPattern.exe Controls TWinControl.MainWndProc
004798ac +014 ActivityPattern.exe Classes StdWndProc
7ea62768 +e18 user32.dll ArrangeIconicWindows
7ea2aef2 +092 user32.dll DispatchMessageA
004cf3e0 +0fc ActivityPattern.exe Forms TApplication.ProcessMessage
004cf41a +00a ActivityPattern.exe Forms TApplication.HandleMessage
004cb9e7 +187 ActivityPattern.exe Forms TCustomForm.ShowModal
00692987 +037 ActivityPattern.exe ChrActivity 585 +6 TActivityChart.EditSettings
00678dcf +01b ActivityPattern.exe ChrSeriesChart 2107 +2 TStatisticalChart.EditSettings
006b7e2e +042 ActivityPattern.exe Main 1041 +6 TMainForm.InitNewChart
006b90c5 +03d ActivityPattern.exe Main 1445 +4 TMainForm.CreateLineSeriesChart
006b8cd1 +005 ActivityPattern.exe Main 1336 +0 TMainForm.NewDateChartActionExecute
0047920b +00f ActivityPattern.exe Classes TBasicAction.Execute
004c0361 +031 ActivityPattern.exe ActnList TContainedAction.Execute
004c1028 +050 ActivityPattern.exe ActnList TCustomAction.Execute
004b13ed +04d ActivityPattern.exe Controls TControl.Click
0052b600 +000 ActivityPattern.exe ComCtrls TToolButton.Click
004b0eff +2bb ActivityPattern.exe Controls TControl.WndProc
7ea0f216 +056 user32.dll GetCapture
004b0b8c +024 ActivityPattern.exe Controls TControl.Perform
004b45d6 +0aa ActivityPattern.exe Controls GetControlAtPos
004b469e +0a6 ActivityPattern.exe Controls TWinControl.ControlAtPos
004b0b8c +024 ActivityPattern.exe Controls TControl.Perform
004b48a9 +0a1 ActivityPattern.exe Controls TWinControl.IsControlMouseMsg
004b4c0f +353 ActivityPattern.exe Controls TWinControl.WndProc
0052fe19 +241 ActivityPattern.exe ComCtrls TToolBar.WndProc
004b44e0 +02c ActivityPattern.exe Controls TWinControl.MainWndProc
004798ac +014 ActivityPattern.exe Classes StdWndProc
7ea62768 +e18 user32.dll ArrangeIconicWindows
7ea2aef2 +092 user32.dll DispatchMessageA
004cf3e0 +0fc ActivityPattern.exe Forms TApplication.ProcessMessage
004cf41a +00a ActivityPattern.exe Forms TApplication.HandleMessage
004cf63a +096 ActivityPattern.exe Forms TApplication.Run
006c000c +074 ActivityPattern.exe ActivityPattern 68 +6 initialization
7bc75d7a +27a ntdll.dll RtlCaptureStackBackTrace

thread $2c:
7bc7a00c +08c ntdll.dll NtWaitForMultipleObjects
7bc7a06a +02a ntdll.dll NtWaitForSingleObject
7bc42849 +229 ntdll.dll NtFsControlFile
7bc71aca +10a ntdll.dll wine_server_call
7b86f2b6 +076 KERNEL32.dll ConnectNamedPipe
00450909 +00d ActivityPattern.exe madExcept CallThreadProcSafe
00450973 +037 ActivityPattern.exe madExcept ThreadExceptFrame
7bc75d7a +27a ntdll.dll RtlCaptureStackBackTrace
>> created by thread $2b at:
7e870649 +000 rpcrt4.dll

thread $2b:
7bc7a00c +08c ntdll.dll NtWaitForMultipleObjects
7bc71b16 +156 ntdll.dll wine_server_call
7b86c650 +050 KERNEL32.dll WaitForMultipleObjectsEx
7b86d2ac +01c KERNEL32.dll SetEvent
00450909 +00d ActivityPattern.exe madExcept CallThreadProcSafe
00450973 +037 ActivityPattern.exe madExcept ThreadExceptFrame
7bc75d7a +27a ntdll.dll RtlCaptureStackBackTrace
>> created by main thread ($28) at:
7e86be74 +000 rpcrt4.dll

thread $2a (TWorkerThread):
7bc7a00c +08c ntdll.dll NtWaitForMultipleObjects
7b86c650 +050 KERNEL32.dll WaitForMultipleObjectsEx
7b86c697 +027 KERNEL32.dll WaitForSingleObject
004df275 +019 ActivityPattern.exe VirtualTrees 6049 +3 TWorkerThread.Execute
00450a27 +02b ActivityPattern.exe madExcept HookedTThreadExecute
00478228 +034 ActivityPattern.exe Classes ThreadProc
00405440 +028 ActivityPattern.exe System 169 +0 ThreadWrapper
00450909 +00d ActivityPattern.exe madExcept CallThreadProcSafe
00450973 +037 ActivityPattern.exe madExcept ThreadExceptFrame
7bc75d7a +27a ntdll.dll RtlCaptureStackBackTrace
>> created by main thread ($28) at:
004df1ba +016 ActivityPattern.exe VirtualTrees 6012 +1 TWorkerThread.Create

modules:
00400000 ActivityPattern.exe 1.2.3.144 C:\Program Files\Activity Pattern
7b810000 KERNEL32.dll 5.1.2600.2180 C:\windows\system32
7bc10000 ntdll.dll 5.1.2600.2180 C:\windows\system32
7dd90000 usp10.dll C:\windows\system32
7ddd0000 olepro32.dll 5.0.4522.0 C:\windows\system32
7de30000 uxtheme.dll 10.0.0.0 C:\windows\system32
7e020000 winex11.drv 10.0.0.0 C:\windows\system32
7e1b0000 imm32.dll 5.1.2600.2180 C:\windows\system32
7e1d0000 msacm32.dll C:\windows\system32
7e200000 winmm.dll C:\windows\system32
7e2c0000 winspool.drv 5.1.2600.2180 C:\windows\system32
7e2f0000 comdlg32.dll 4.0.0.950 C:\windows\system32
7e3e0000 comctl32.dll 5.81.4704.1100 C:\windows\system32
7e4e0000 shlwapi.dll 6.0.2800.1692 C:\windows\system32
7e550000 shell32.dll 5.0.3900.6975 C:\windows\system32
7e790000 oleacc.dll 7.0.0.0 C:\windows\system32
7e7c0000 iphlpapi.dll 5.1.2600.2180 C:\windows\system32
7e7e0000 ws2_32.dll 5.1.2600.5512 C:\windows\system32
7e810000 wsock32.dll 4.0.0.0 C:\windows\system32
7e830000 rpcrt4.dll 5.1.2600.2180 C:\windows\system32
7e8b0000 gdi32.dll 10.0.0.0 C:\windows\system32
7e9d0000 user32.dll 5.1.2600.2180 C:\windows\system32
7eb20000 advapi32.dll 5.1.2600.2180 C:\windows\system32
7eb90000 ole32.dll 10.0.0.0 C:\windows\system32
7ecc0000 oleaut32.dll 6.0.6001.18000 C:\windows\system32
7efe0000 msimg32.dll C:\windows\system32
7eff0000 version.dll 5.1.2600.2180 C:\windows\system32

processes:
0e services.exe 0 0 normal C:\windows\system32
14 explorer.exe 0 0 normal C:\windows\system32
16 winedevice.exe 0 0 normal C:\windows\system32
1e plugplay.exe 0 0 normal C:\windows\system32
27 ActivityPattern.exe 0 0 normal C:\Program Files\Activity Pattern

cpu registers:
eax = 00000000
ebx = 00000000
ecx = ffffffff
edx = 009cc838
esi = 00000000
edi = 00000000
eip = 00456e0f
esp = 0033dfd8
ebp = 0033e000

stack dump:
0033dfd8 5c 5b 64 00 da 60 40 00 - 10 e3 33 00 72 13 72 1f \[d..`@...3.r.r.
0033dfe8 00 00 00 00 00 00 00 00 - 83 5a 64 00 e1 52 d5 02 .........Zd..R..
0033dff8 00 00 00 00 e1 52 d5 01 - 14 e0 33 00 a9 5e 64 00 .....R....3..^d.
0033e008 90 df 93 02 00 00 00 00 - e1 52 d5 01 58 e0 33 00 .........R..X.3.
0033e018 a4 4f 65 00 00 00 00 00 - 00 00 00 00 00 01 00 00 .Oe.............
0033e028 90 01 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e038 00 00 28 40 98 e0 33 00 - 00 4d 40 00 58 e0 33 00 ..(@[email protected].
0033e048 90 01 00 00 66 2f 40 00 - 00 00 00 00 40 48 d5 01 ....f/@.....@H..
0033e058 84 e0 33 00 4f b0 65 00 - 00 00 00 00 00 00 00 00 ..3.O.e.........
0033e068 01 00 00 00 00 00 00 00 - 00 00 00 00 00 00 28 40 ..............(@
0033e078 ac 70 65 00 38 c8 9c 00 - 90 df 93 00 e4 e2 33 00 .pe.8.........3.
0033e088 87 4a 67 00 00 00 00 00 - 00 00 00 00 00 00 28 40 .Jg...........(@
0033e098 28 e3 33 00 00 4d 40 00 - e4 e2 33 00 00 e3 33 00 ([email protected].
0033e0a8 38 c8 9c 00 90 df 93 00 - 00 00 00 00 00 00 00 00 8...............
0033e0b8 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e0c8 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e0d8 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e0e8 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e0f8 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0033e108 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................

disassembling:
[...]
0065b033 push 0
0065b035 push 0
0065b037 call -$76c8 ($653974) ; Agg2D.Deg2Rad
0065b037
0065b03c add esp, -8
0065b03f fstp qword ptr [esp]
0065b042 wait
0065b043 mov ecx, ebx
0065b045 mov edx, esi
0065b047 mov eax, [edi+$18]
0065b04a > call -$6167 ($654ee8) ; Agg2D.TAgg2D.Font
0065b04a
0065b04f 1269 push ebx
0065b050 movzx eax, byte ptr [ebp+8]
0065b054 push eax
0065b055 push 1
0065b057 fld qword ptr [ebp+$c]
0065b05a add esp, -$c
0065b05d fstp tbyte ptr [esp]
0065b060 wait
0065b061 call -$1e14aa ($479bbc) ; Math.Ceil
0065b061
[...]
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: EAccess Violation

Post by lahmbi5678 »

Upgrade to latest wine version, if you haven't already. Please run in a terminal and post output. If you are using a 64bit linux, you could try to create a 32bit wineprefix (basically your .wine folder, where your applications are installed and configs are stored).

https://wiki.winehq.org/FAQ#How_do_I_cr ... _system.3F

If all else fails, file a bug report for your application. Is there a free demo/trial version available?
Locked