Vaadin23 application won't load - script vaadin-bundle-xxx.cache.js 404 not found - vaadin-flow

I'm working on a Vaadin application running under tomcat in a WAR file.
I'm trying to simply upgrade it from Vaadin 22 to Vaadin 23.
It was loading reliably with Vaadin 22 but now it fails to load with Vaadin 23.
The WAR file is named pcom.war and within it web.xml contains:
<servlet-mapping>
<servlet-name>PCOM</servlet-name>
<url-pattern>/pcom/*</url-pattern>
</servlet-mapping>
Therefore, the URL I trying to load the web application from, and from which Vaadin is failing to load successfully, is: http://localhost:8080/pcom/pcom/.
The index.html generated by Vaadin in META-INF/VAADIN/webapp/index.html in pcom.war contains (line breaks added for clarity):
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<style>body, #outlet {
height: 100vh;
width: 100%;
margin: 0;
}</style>
<script defer="defer" src="VAADIN/build/vaadin-bundle-67fde5fb08b0f134e867.cache.js"></script>
</head>
<body>
<div id="outlet"></div>
</body>
</html>
Note the src="VAADIN/build/vaadin-bundle-... relative URL. This is correct, relative to index.html as it sits within the META-INF contents of pcom.war:
0 07-29-2022 14:33 META-INF/
79 07-29-2022 14:33 META-INF/MANIFEST.MF
0 07-29-2022 14:33 META-INF/VAADIN/
0 07-29-2022 14:33 META-INF/VAADIN/config/
1844 07-29-2022 14:33 META-INF/VAADIN/config/flow-build-info.json
1658 07-29-2022 14:33 META-INF/VAADIN/config/stats.json
0 07-29-2022 14:33 META-INF/VAADIN/webapp/
0 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/
0 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/
1051904 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-1-cfc74d1f13c51748c7ba.cache.js
259593 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-1-cfc74d1f13c51748c7ba.cache.js.gz
607425 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-2-737c0b4498b03051df61.cache.js
158040 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-2-737c0b4498b03051df61.cache.js.gz
67025 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-3-460383d2eeb67dbda1eb.cache.js
23477 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-3-460383d2eeb67dbda1eb.cache.js.gz
27991 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-4-9ba06ea1fd5a6da385f4.cache.js
8040 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-4-9ba06ea1fd5a6da385f4.cache.js.gz
3518 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-5-a21e874ef30c99e3575f.cache.js
1480 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-5-a21e874ef30c99e3575f.cache.js.gz
138893 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-6-5710b84bf57453285225.cache.js
46654 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-6-5710b84bf57453285225.cache.js.gz
86955 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-bundle-67fde5fb08b0f134e867.cache.js
26514 07-29-2022 14:33 META-INF/VAADIN/webapp/VAADIN/build/vaadin-bundle-67fde5fb08b0f134e867.cache.js.gz
365 07-29-2022 14:33 META-INF/VAADIN/webapp/index.html
273 07-29-2022 14:33 META-INF/VAADIN/webapp/index.html.gz
But when I load the application, FireFox inspector shows this error:
Note the reported error loading http://localhost:8080/pcom/VAADIN/build/vaadin-bundle-67fde5fb08b0f134e867.cache.js.
That URL is incorrect and generates a 404 error - I can verify this using curl(1).
However I can use curl(1) to successfully load the correct URL, which is http://localhost:8080/pcom/pcom/VAADIN/build/vaadin-bundle-67fde5fb08b0f134e867.cache.js.
Why does Vaadin 23 rewrite the URL in the index.html file so as to make it unloadable??
FYI, also filed as Vaadin Flow Bug #14239.
UPDATE
Vaadin has reverted the change which caused this problem. Yay.

The problem can be solved as in the comments of your reported Vaadin bug.
Add /VAADIN/* to the servlet mapping:
<servlet-mapping>
<servlet-name>VaadinBugServlet</servlet-name>
<url-pattern>/demo/*</url-pattern>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>

Related

to many files when starting new jhipster project

i follow the tutorial from matt on:
http://jhipster.github.io/video-tutorial/
when i do cloc . i see i have much and much more files i would expect:
$ cloc .
66717 text files.
20401 unique files.
24466 files ignored.
http://cloc.sourceforge.net v 1.60 T=128.46 s (115.7 files/s, 15523.0 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Javascript 13322 222956 357190 1266221
HTML 676 6984 1047 44885
CSS 76 1883 932 22029
Java 262 3548 1854 15641
XML 53 3383 1395 11307
LESS 79 1388 1546 7269
C/C++ Header 18 1032 300 5109
YAML 190 221 346 3466
CoffeeScript 47 783 699 2467
make 58 417 523 1271
Bourne Shell 31 234 202 1097
Maven 1 12 34 824
Perl 2 87 170 584
DTD 1 179 177 514
SASS 5 42 25 273
C++ 4 43 26 260
IDL 6 38 0 167
Bourne Again Shell 3 28 36 140
D 6 0 0 118
Scala 1 16 7 118
JavaServer Faces 3 3 0 109
Smarty 6 17 30 91
DOS Batch 1 24 2 64
Python 1 7 7 36
XSLT 1 5 0 32
C# 2 3 1 27
ASP.Net 2 5 0 23
C 1 7 4 23
OCaml 1 5 15 6
Lisp 1 0 0 6
PowerShell 1 2 2 4
Lua 1 0 0 2
--------------------------------------------------------------------------------
SUM: 14862 243352 366570 1384183
--------------------------------------------------------------------------------
why is that?
in total it is 610 mb large!
it seems there are a lot of node modules:
$ du -h -d1
584M ./node_modules
24K ./gulp
26M ./src
64K ./.mvn
610M .
is this correct?
and what do i need to add to source control?
thanks
This is normal. Most of those files are NPM dependencies, as you mentioned.
The generated .gitignore should already be configured properly and will ignore node_modules.

Access violation registering Canvas classes

I have been getting a few bug reports for an access violation that occurs while registering Canvas classes at startup, more specifically performing an #IntfClear during TCustomDX10Context.CheckDevice.
Full bugreport:
date/time : 2014-06-04, 18:05:43, 594ms
computer name : <...>
user name : <...>
registered owner : <...>
operating system : Windows 7 x64 Service Pack 1 build 7601
system language : English
system up time : 54 minutes 48 seconds
program up time : 99 milliseconds
processors : 4x Intel(R) Core(TM) i5 CPU 661 # 3.33GHz
physical memory : 5055/8055 MB (free/total)
free disk space : (C:) 91.84 GB
display mode : 1920x1080, 32 bit
process id : $18c0
allocated memory : 71.76 MB
executable : <...>.exe
exec. date/time : 2014-05-29 22:36
version : 3.2.1.2
compiled with : Delphi XE3
madExcept version : 4.0.6
callstack crc : $077d2d6c, $53160fd9, $53160fd9
exception number : 1
exception class : EAccessViolation
exception message : Zugriffsverletzung bei Adresse 077D2D6C. Lesen von Adresse 000000AE.
main thread ($d0):
077d2d6c +000 ???
0040e028 +010 <...>.exe System 191 +0 #IntfClear
0096af25 +0cd <...>.exe FMX.Context.DX10 TCustomDX10Context.CheckDevice
00976559 +005 <...>.exe FMX.Canvas.D2D RegisterCanvasClasses
00990c6c +000 <...>.exe FMX.Platform.Win 3404 +0 TPlatformWin.RegisterCanvasClasses
009d6312 +056 <...>.exe FMX.Types TCanvasManager.GetDefaultCanvas
009d62aa +00e <...>.exe FMX.Types TCanvasManager.CreateFromWindow
00a0574e +026 <...>.exe FMX.Forms TCustomForm.CreateHandle
009fff91 +0b9 <...>.exe FMX.Forms TCommonCustomForm.InitializeNewForm
00a054fa +006 <...>.exe FMX.Forms TCustomForm.InitializeNewForm
009ffce4 +094 <...>.exe FMX.Forms TCommonCustomForm.Create
00a056c6 +016 <...>.exe FMX.Forms TCustomForm.Create
009fb947 +057 <...>.exe FMX.Forms TApplication.CreateForm
009fbb0b +05f <...>.exe FMX.Forms TApplication.RealCreateForms
00988861 +011 <...>.exe FMX.Platform.Win 461 +1 TPlatformWin.Run
009fe821 +0d1 <...>.exe FMX.Forms TApplication.Run
00beccf4 +2c0 <...>.exe <...> 106 +39 initialization
75863388 +010 kernel32.dll BaseThreadInitThunk
thread $186c:
778a0156 +0e ntdll.dll NtWaitForMultipleObjects
76e715f1 +fa KERNELBASE.dll WaitForMultipleObjectsEx
758619f3 +89 kernel32.dll WaitForMultipleObjectsEx
75330864 +00 USER32.dll MsgWaitForMultipleObjectsEx
75330b64 +1a USER32.dll MsgWaitForMultipleObjects
004a42e9 +0d <...>.exe madExcept CallThreadProcSafe
004a434e +32 <...>.exe madExcept ThreadExceptFrame
75863388 +10 kernel32.dll BaseThreadInitThunk
>> created by main thread ($d0) at:
734878e1 +00 gdiplus.dll
thread $1288: <priority:1>
7789f8ca +0e ntdll.dll NtWaitForSingleObject
76e714a5 +92 KERNELBASE.dll WaitForSingleObjectEx
7586118f +3e kernel32.dll WaitForSingleObjectEx
75861143 +0d kernel32.dll WaitForSingleObject
004a42e9 +0d <...>.exe madExcept CallThreadProcSafe
004a434e +32 <...>.exe madExcept ThreadExceptFrame
75863388 +10 kernel32.dll BaseThreadInitThunk
>> created by main thread ($d0) at:
54377390 +00 nvwgf2um.dll
thread $28c:
778a1f3f +0b ntdll.dll NtWaitForWorkViaWorkerFactory
75863388 +10 kernel32.dll BaseThreadInitThunk
thread $1bcc:
778a1f3f +0b ntdll.dll NtWaitForWorkViaWorkerFactory
75863388 +10 kernel32.dll BaseThreadInitThunk
modules:
00400000 <...>.exe 3.2.1.2 C:\<...>
10000000 nvspcap.dll 10.11.15.0 C:\Windows\system32
53c10000 nvwgf2um.dll 9.18.13.2723 C:\Windows\system32
603d0000 AcGenral.DLL 6.1.7601.18128 C:\Windows\AppPatch
606d0000 atkdx11disp.dll 7.14.10.305 C:\Windows\system32
60700000 d3d10_1core.dll 6.2.9200.16492 C:\Windows\system32
60750000 d3d10_1.dll 6.2.9200.16492 C:\Windows\system32
60780000 security.dll 6.1.7600.16385 C:\Windows\system32
60790000 FaultRep.dll 6.1.7601.17514 C:\Windows\system32
607f0000 sfc_os.DLL 6.1.7600.16385 C:\Windows\system32
60800000 sfc.dll 6.1.7600.16385 C:\Windows\system32
6ed00000 d3d11.dll 6.2.9200.16570 C:\Windows\system32
706d0000 dxgi.dll 6.2.9200.16492 C:\Windows\system32
70ca0000 propsys.dll 7.0.7601.17514 C:\Windows\system32
70e00000 d3d9.dll 6.1.7601.17514 C:\Windows\system32
70fd0000 nvapi.dll 9.18.13.2723 C:\Windows\system32
71a50000 comctl32.dll 6.10.7601.17514 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2
71bf0000 winmm.dll 6.1.7601.17514 C:\Windows\system32
72150000 samcli.dll 6.1.7601.17514 C:\Windows\system32
73210000 MSACM32.dll 6.1.7600.16385 C:\Windows\system32
73230000 d3d8thk.dll 6.1.7600.16385 C:\Windows\system32
73440000 gdiplus.dll 6.1.7601.18120 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36
73890000 apphelp.dll 6.1.7601.17514 C:\Windows\system32
738e0000 MPR.dll 6.1.7600.16385 C:\Windows\system32
73ca0000 wsock32.dll 6.1.7600.16385 C:\Windows\system32
73f20000 SECUR32.DLL 6.1.7601.18443 C:\Windows\system32
74090000 dwmapi.dll 6.1.7600.16385 C:\Windows\system32
74100000 UxTheme.dll 6.1.7600.16385 C:\Windows\system32
742e0000 comctl32.dll 5.82.7601.18201 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5
74f90000 profapi.dll 6.1.7600.16385 C:\Windows\system32
74fa0000 USERENV.dll 6.1.7601.17514 C:\Windows\system32
750b0000 ntmarta.dll 6.1.7600.16385 C:\Windows\system32
750e0000 sophos_detoured.dll 10.3.3.128 C:\Program Files (x86)\Sophos\Sophos Anti-Virus
75130000 winspool.drv 6.1.7601.17514 C:\Windows\system32
75190000 version.dll 6.1.7600.16385 C:\Windows\system32
752a0000 CRYPTBASE.dll 6.1.7600.16385 C:\Windows\syswow64
752b0000 SspiCli.dll 6.1.7601.18443 C:\Windows\syswow64
75310000 USER32.dll 6.1.7601.17514 C:\Windows\syswow64
75410000 iertutil.dll 11.0.9600.17041 C:\Windows\syswow64
75630000 SETUPAPI.dll 6.1.7601.17514 C:\Windows\syswow64
757d0000 PSAPI.DLL 6.1.7600.16385 C:\Windows\syswow64
757e0000 api-ms-win-downlevel-normaliz-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
757f0000 NSI.dll 6.1.7600.16385 C:\Windows\syswow64
75800000 WLDAP32.dll 6.1.7601.17514 C:\Windows\syswow64
75850000 kernel32.dll 6.1.7601.18409 C:\Windows\syswow64
759f0000 DEVOBJ.dll 6.1.7601.17621 C:\Windows\syswow64
75a10000 RPCRT4.dll 6.1.7601.18205 C:\Windows\syswow64
75b00000 WININET.dll 11.0.9600.17041 C:\Windows\syswow64
75cc0000 shell32.dll 6.1.7601.18429 C:\Windows\syswow64
76910000 WS2_32.dll 6.1.7601.17514 C:\Windows\syswow64
769b0000 api-ms-win-downlevel-advapi32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
769c0000 MSCTF.dll 6.1.7600.16385 C:\Windows\syswow64
76a90000 comdlg32.dll 6.1.7601.17514 C:\Windows\syswow64
76b10000 api-ms-win-downlevel-shlwapi-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
76b50000 msvcrt.dll 7.0.7601.17744 C:\Windows\syswow64
76c00000 api-ms-win-downlevel-ole32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
76c10000 ole32.dll 6.1.7601.17514 C:\Windows\syswow64
76d70000 normaliz.DLL 6.1.7600.16385 C:\Windows\syswow64
76d80000 CLBCatQ.DLL 2001.12.8530.16385 C:\Windows\syswow64
76e10000 CFGMGR32.dll 6.1.7601.17621 C:\Windows\syswow64
76e40000 sechost.dll 6.1.7600.16385 C:\Windows\SysWOW64
76e60000 KERNELBASE.dll 6.1.7601.18409 C:\Windows\syswow64
76eb0000 IMM32.DLL 6.1.7601.17514 C:\Windows\system32
76f10000 USP10.dll 1.626.7601.18009 C:\Windows\syswow64
76fb0000 WINTRUST.dll 6.1.7601.18205 C:\Windows\syswow64
76fe0000 api-ms-win-downlevel-version-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
76ff0000 CRYPT32.dll 6.1.7601.18277 C:\Windows\syswow64
77110000 MSASN1.dll 6.1.7601.17514 C:\Windows\syswow64
77120000 ADVAPI32.dll 6.1.7601.18247 C:\Windows\syswow64
771c0000 oleaut32.dll 6.1.7601.17676 C:\Windows\syswow64
77250000 SHLWAPI.dll 6.1.7601.17514 C:\Windows\syswow64
772b0000 api-ms-win-downlevel-user32-l1-1-0.dll 6.2.9200.16492 C:\Windows\syswow64
772c0000 GDI32.dll 6.1.7601.18275 C:\Windows\syswow64
77350000 urlmon.dll 11.0.9600.17041 C:\Windows\syswow64
77850000 LPK.dll 6.1.7601.18177 C:\Windows\syswow64
77880000 ntdll.dll 6.1.7601.18247 C:\Windows\SysWOW64
processes:
0000 Idle 0 0 0
0004 System 0 0 0
0120 smss.exe 0 0 0
01c8 csrss.exe 0 0 0
0210 wininit.exe 0 0 0
0224 csrss.exe 1 0 0
0250 services.exe 0 0 0
0260 lsass.exe 0 0 0
0268 lsm.exe 0 0 0
02d4 winlogon.exe 1 0 0
02f4 svchost.exe 0 0 0
0330 ATKFUSService.exe 0 0 0
0344 nvvsvc.exe 0 0 0
0360 nvSCPAPISvr.exe 0 0 0
038c svchost.exe 0 0 0
03c8 atiesrxx.exe 0 0 0
03f8 svchost.exe 0 0 0
014c svchost.exe 0 0 0
0298 svchost.exe 0 0 0
0228 svchost.exe 0 0 0
0454 audiodg.exe 0 0 0
04ac SavService.exe 0 0 0
04b8 atieclxx.exe 1 0 0
04c8 nvxdsync.exe 1 0 0
04d0 nvvsvc.exe 1 0 0
0614 ATKFastUserSwitching.exe 1 18 11 normal
0660 dwm.exe 1 18 2 high
0678 explorer.exe 1 356 266 normal
0790 svchost.exe 0 0 0
07e4 svchost.exe 0 0 0
0490 spoolsv.exe 0 0 0
082c taskhost.exe 1 25 23 normal
08d0 NvTmru.exe 1 9 4 normal C:\Program Files (x86)\NVIDIA Corporation\NVIDIA Update Core
0924 NvBackend.exe 1 9 4 normal C:\Program Files (x86)\NVIDIA Corporation\Update Core
0944 ANIWConnService.exe 0 0 0
0980 ANIWZCSdS.exe 0 0 0
099c RtlService.exe 0 0 0
09dc flux.exe 1 22 13 normal C:\Users\<...>\AppData\Local\FluxSoftware\Flux
09f4 SpotifyWebHelper.exe 1 9 3 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
0a3c nvtray.exe 1 81 5 normal
0a74 BCUService.exe 0 0 0
0aac FABS.exe 0 0 0
0ae0 RtWLan.exe 1 0 0
0b48 NvNetworkService.exe 0 0 0
0ba8 nvstreamsvc.exe 0 0 0
0610 spotify.exe 1 222 81 normal C:\Users\<...>\AppData\Roaming\Spotify
046c razerhid.exe 1 9 5 normal C:\Program Files (x86)\Razer\Arctosa
09c8 BCU.exe 1 9 4 normal C:\Program Files (x86)\DeviceVM\Browser Configuration Utility
0b9c jusched.exe 1 9 2 normal C:\Program Files (x86)\Common Files\Java\Java Update
0b84 PnkBstrA.exe 0 0 0
0910 PnkBstrB.exe 0 0 0
0920 SAVAdminService.exe 0 0 0
09d4 ALsvc.exe 0 0 0
0c70 swc_service.exe 0 0 0
0c98 svchost.exe 0 0 0
0cac swi_service.exe 0 0 0
0cec TurboBoost.exe 0 0 0
0d30 ALMon.exe 1 47 40 normal C:\Program Files (x86)\Sophos\AutoUpdate
0d60 WLIDSVC.EXE 0 0 0
0e04 WLIDSVCM.EXE 0 0 0
0efc WmiPrvSE.exe 0 0 0
0ff0 SearchIndexer.exe 0 0 0
0af0 svchost.exe 0 0 0
11b8 nvstreamsvc.exe 1 0 0
11cc conhost.exe 1 0 0
127c wmpnetwk.exe 0 0 0
130c svchost.exe 0 0 0
11d0 svchost.exe 0 0 0
1304 SpotifyHelper.exe 1 52 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
1134 SpotifyHelper.exe 1 33 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
15c8 SpotifyHelper.exe 1 13 3 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
17a8 dllhost.exe 0 0 0
151c LMS.exe 0 0 0
14b0 svchost.exe 0 0 0
1018 UNS.exe 0 0 0
059c SpotifyHelper.exe 1 142 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
08d8 SpotifyHelper.exe 1 11 1 normal C:\Users\<...>\AppData\Roaming\Spotify\Data
0abc chrome.exe 1 375 53 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
0eb4 chrome.exe 1 12 5 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
12d8 chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
0da8 chrome.exe 1 719 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
10bc chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
1114 chrome.exe 1 9 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
0968 chrome.exe 1 11 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
1220 chrome.exe 1 10 1 normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
1974 jucheck.exe 1 12 6 normal C:\Program Files (x86)\Common Files\Java\Java Update
0778 chrome.exe 1 251 1 below normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
1144 WINWORD.EXE 1 474 118 normal C:\Program Files (x86)\Microsoft Office\Office14
0cc4 OSPPSVC.EXE 0 0 0
17b8 splwow64.exe 1 4 2 normal
1410 SearchProtocolHost.exe 0 0 0
1258 SearchFilterHost.exe 0 0 0 idle
18e0 chrome.exe 1 209 1 below normal C:\Users\<...>\AppData\Local\Google\Chrome\Application
18c0 <...>.exe 1 36 34 normal C:\<...>
cpu registers:
eax = 00000000
ebx = 00000000
ecx = 00000000
edx = 00000008
esi = 0018fca4
edi = 077d2d6c
eip = 077d2d6c
esp = 0018fc60
ebp = 077d2444
stack dump:
0018fc60 a4 fc 18 00 44 24 7d 07 - 6c 2d 7d 07 44 24 00 06 ....D$}.l-}.D$..
0018fc70 2c 63 de 6e 48 81 7d 07 - 6c 2d 7d 07 00 00 00 00 ,c.nH.}.l-}.....
0018fc80 01 00 00 00 00 00 00 00 - ac fc 18 00 42 00 d2 6e ............B..n
0018fc90 6c 2d 7d 07 01 00 00 00 - 58 25 7d 07 44 24 7d 07 l-}.....X%}.D$}.
0018fca0 3c 27 7d 07 3c 27 7d 07 - 3c a6 d0 6e c0 fc 18 00 <'}.<'}.<..n....
0018fcb0 1b ff d1 6e 6c 2d 7d 07 - 44 24 7d 07 a0 00 00 00 ...nl-}.D$}.....
0018fcc0 cc fc 18 00 43 25 d1 6e - 3c 27 7d 07 e0 fc 18 00 ....C%.n<'}.....
0018fcd0 6d 6d d1 6e fc 26 7d 07 - 00 00 00 00 3c 24 7d 07 mm.n.&}.....<$}.
0018fce0 ec fc 18 00 f1 26 d1 6e - 10 24 7d 07 f8 fc 18 00 .....&.n.$}.....
0018fcf0 52 c1 d4 6e 3c 24 7d 07 - 14 fd 18 00 5f 39 d1 6e R..n<$}....._9.n
0018fd00 10 24 7d 07 04 34 d1 6e - 10 24 7d 07 66 38 d1 6e .$}..4.n.$}.f8.n
0018fd10 10 24 7d 07 28 fd 18 00 - 5f 34 d1 6e 00 00 00 00 .$}.(..._4.n....
0018fd20 16 00 00 00 90 05 00 00 - 34 fd 18 00 c5 25 d1 6e ........4....%.n
0018fd30 10 24 7d 07 40 fd 18 00 - d1 f5 d4 6e 3c 27 7d 07 .$}.#......n<'}.
0018fd40 84 fd 18 00 2b e0 40 00 - 74 27 7d 07 80 fd 18 00 ....+.#.t'}.....
0018fd50 2a af 96 00 60 fd 18 00 - 9c 98 40 00 84 fd 18 00 *...`.....#.....
0018fd60 6c fd 18 00 9c 98 40 00 - 84 fd 18 00 94 fd 18 00 l.....#.........
0018fd70 9c 98 40 00 84 fd 18 00 - a0 00 00 00 00 00 75 60 ..#...........u`
0018fd80 00 00 00 00 bc fd 18 00 - 5e 65 97 00 71 0c 99 00 ........^e..q...
0018fd90 15 63 9d 00 10 fe 18 00 - 9c 98 40 00 bc fd 18 00 .c........#.....
disassembling:
[...]
0040e01c jz loc_40e02c
0040e01e mov dword ptr [eax], 0
0040e024 push eax
0040e025 push edx
0040e026 mov eax, [edx]
0040e028 > call dword ptr [eax+8]
0040e02b pop eax
0040e02c ret
This is by no means happening on all machines but seems to be a very rare issue.
EDIT:
Following the suggestion of #Graymatter I've been able to establish an SSCCE.
program SSCCE;
{$APPTYPE CONSOLE}
{$R *.res}
uses System.SysUtils, FMX.Context.DX10;
begin
try
TCustomDX10Context.CheckDevice;
WriteLn('Everything went fine, guess we have to dig deeper.');
except
on E: Exception do Writeln(E.ClassName, ': ', E.Message);
end;
Write('Press enter to exit.');
ReadLn;
end.
The output produced is Zugriffsverletzung bei Adresse 05C1006C. Lesen von Adresse 06F29ED3 Any suggestions as to what to do about that ?

RVM not working after installing properly?

Ok so I had RVM working before but after I upgraded to Mountain Lion it appears to be gone? So I tried reinstalling it:
Ayman$ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 200 0 --:--:-- --:--:-- --:--:-- 755
100 9979 100 9979 0 0 5911 0 0:00:01 0:00:01 --:--:-- 5911
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 67 0 0:00:01 0:00:01 --:--:-- 102
100 1047k 100 1047k 0 0 159k 0 0:00:06 0:00:06 --:--:-- 245k
Upgrading the RVM installation in /Users/Ayman/.rvm/
RVM PATH line found in /Users/Ayman/.zshrc.
RVM sourcing line found in /Users/Ayman/.zlogin.
Upgrade Notes:
* No new notes to display.
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Upgrade of RVM in /Users/Ayman/.rvm/ is complete.
# Ayman ####,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
rvm 1.15.5 (stable) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]
Should be installed right? Should be ready to go but...
Ayman$ which rvm
Ayman$ rvm requirements
-bash: rvm: command not found
Ayman$ rvm use 1.9.2 --default
-bash: rvm: command not found
Now sure what to do? Looked at my .bash_profile and .bashrc to see what's there:
Ayman$ ls -la
total 136
drwxr-xr-x+ 26 Ayman staff 884 Aug 23 20:44 .
drwxr-xr-x 6 root admin 204 Aug 8 19:27 ..
-rw------- 1 Ayman staff 3 Jun 16 15:21 .CFUserTextEncoding
-rw-r--r--# 1 Ayman staff 21508 Aug 23 08:03 .DS_Store
drwx------ 10 Ayman staff 340 Aug 23 07:57 .Trash
-rw------- 1 Ayman staff 9089 Aug 23 20:47 .bash_history
-rw-r--r-- 1 Ayman staff 106 Aug 22 21:17 .bash_profile
-rw-r--r-- 1 Ayman staff 24 Aug 23 20:47 .bashrc
drwxr-xr-x 3 Ayman staff 102 Aug 21 20:41 .bundler
drwxr-xr-x 3 Ayman staff 102 Jun 24 21:45 .gem
-rw-r--r-- 1 root staff 155 Aug 21 22:52 .gemrc
-rw-r--r-- 1 Ayman staff 61 Aug 21 19:40 .gitconfig
-rw-r--r-- 1 Ayman staff 14 Aug 23 08:14 .irb_history
-rw------- 1 Ayman staff 2415 Aug 23 20:44 .mysql_history
drwxr-xr-x 29 Ayman staff 986 Aug 23 20:58 .rvm
-rw-r--r-- 1 Ayman staff 118 Jun 24 21:25 .zlogin
-rw-r--r-- 1 Ayman staff 59 Jun 24 21:25 .zshrc
drwx------+ 18 Ayman staff 612 Aug 23 08:02 Desktop
drwx------+ 5 Ayman staff 170 Jun 24 23:04 Documents
drwx------+ 19 Ayman staff 646 Aug 22 21:05 Downloads
drwx------# 47 Ayman staff 1598 Aug 9 22:30 Library
drwx------+ 3 Ayman staff 102 Jun 16 15:21 Movies
drwx------+ 5 Ayman staff 170 Jun 24 23:05 Music
drwx------+ 57 Ayman staff 1938 Aug 19 22:40 Pictures
drwxr-xr-x+ 5 Ayman staff 170 Jun 16 15:21 Public
drwxr-xr-x 5 Ayman staff 170 Aug 23 07:57 Sites
Here is my nano .bashprofile:
PS1="\u$ "
alias ll="ls -lahG"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Here is my nano .bashrc (I changed it per instructions in another stackoverflow answer):
PATH=$PATH:~/.rvm/bin
Any clue as to what to try next? Thanks!
to force update of rc files:
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles
Mac OS runs .bash_profile but not .bash_rc when you create a new terminal. Move those PATH things into .bash_profile and run again.
As to your second problem, seems you add wrong things into PATH. Add followings into .bash_profile:
PATH=$PATH:$HOME/.rvm/scripts # Add RVM to PATH for scripting
. rvm > /dev/null

Heroku help Amazon RDS rails push database error

I get a 503 Error when trying to push my database to Amazon RDS
Home#PC /c/rails/konkurranceportalen (master)
$ heroku db:push
Loaded Taps v0.3.19
Auto-detected local database: mysql://root#127.0.0.1/konkurranceportalen?encodin
g=utf8
Warning: Data in the app 'vinderhimlen' will be overwritten and will not be reco
verable.
! WARNING: Potentially Destructive Action
! This command will affect the app: vinderhimlen
! To proceed, type "vinderhimlen" or re-run this command with --confirm vind
erhimlen
> vinderhimlen
Sending schema
Schema: 100% |==========================================| Time: 00:01:07
Sending indexes
admins: 100% |==========================================| Time: 00:00:01
schema_migrat: 100% |==========================================| Time: 00:00:01
slugs: 100% |==========================================| Time: 00:00:02
Sending data
7 tables, 138 records
admins: 100% |==========================================| Time: 00:00:00
kategoris: 0% | | ETA: --:--:--
Saving session to push_201103182120.dat..
!!! Caught Server Exception
HTTP CODE: 503
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Application Error</title></head>
</head>
<body>
<iframe src="https://s3.amazonaws.com/heroku_pages/error.html">
<p>Application Error</p>
</iframe>
</body>
</html>
Home#PC /c/rails/konkurranceportalen (master)
$
My Heroku log http://pastie.org/1687466
The problem were that Amazon RDS firewall did block Heroku.
In Amazon AWS > Amazon RDS I did go into the security group and did add a EC2 Security Group.
With following details:
Security Group: default
AWS Account ID: 098166147350

Swapping problem for Rails app on slicehost

I have a Rails 2.3.8 app hosted and running on slicehost (256M). I am not familiar at all with the back-end, I basically followed the steps from the slicehost tutorials to install Apache. The memory usage being very high, I then changed my Apache conf file to reduce the MaxClient number to 10... but my slice is still swapping.
Here is what the memory usage I get after just a few clicks on my site:
top - 23:57:12 up 28 min, 2 users, load average: 0.43, 0.54, 0.30
Tasks: 79 total, 1 running, 78 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.1%sy, 0.0%ni, 97.8%id, 0.1%wa, 0.0%hi, 0.0%si, 2.0%st
Mem: 262364k total, 258656k used, 3708k free, 260k buffers
Swap: 524280k total, 262772k used, 261508k free, 6328k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4004 web-app 20 0 178m 72m 1888 S 0 28.4 0:04.38 ruby1.8
4001 web-app 20 0 172m 61m 1932 S 0 24.2 0:02.72 ruby1.8
3941 root 20 0 164m 57m 1672 S 0 22.5 0:21.44 ruby
3990 web-app 20 0 209m 21m 1696 S 0 8.4 0:18.00 ruby1.8
3950 web-app 20 0 165m 7464 1548 S 0 2.8 0:20.40 ruby1.8
3684 mysql 20 0 224m 6504 2084 S 0 2.5 0:14.34 mysqld
3938 root 20 0 53632 3048 1036 S 1 1.2 0:01.50 starling
3839 root 20 0 243m 1456 1248 S 0 0.6 0:00.34 apache2
3897 www-data 20 0 243m 1452 1072 S 0 0.6 0:00.04 apache2
3894 www-data 20 0 243m 1368 1008 S 0 0.5 0:00.04 apache2
3895 www-data 20 0 243m 1220 960 S 0 0.5 0:00.02 apache2
3888 root 20 0 46520 1204 1100 S 0 0.5 0:02.29 ruby1.8
3866 root 20 0 17648 1184 896 S 0 0.5 0:00.08 bash
3896 www-data 20 0 243m 1180 952 S 0 0.4 0:00.00 apache2
3964 www-data 20 0 243m 1164 956 S 0 0.4 0:00.02 apache2
3892 www-data 20 0 243m 1132 956 S 0 0.4 0:00.00 apache2
3948 www-data 20 0 243m 1132 956 S 0 0.4 0:00.00 apache2
3962 www-data 20 0 243m 1132 956 S 0 0.4 0:00.02 apache2
3963 www-data 20 0 243m 1132 956 S 0 0.4 0:00.00 apache2
3965 www-data 20 0 243m 1080 888 S 0 0.4 0:00.00 apache2
3887 root 20 0 89008 960 796 S 0 0.4 0:00.00 ApplicationPool
I'm not sure what to do next... I could upgrade to a larger slice but for now I have almost no traffic on this app, so I think it's more a problem with my configuration or maybe my code?
Any concrete recommendations would be welcome!
Thanks
It looks like your rails app is using all your available memory. I would recommend three things:
Upgrade the memory on your server. 256MB is not very much for a Rails app. Going to 512 may alleviate your problem. If that solves it, you then need to consider the additional cost ($18/mo) vs how much time it will take to track down performance issues.
Profile your application to figure out which requests are consuming the most memory. This is likely going to be places where you're finding a lot of records and possibly including some associated tables too. There are a couple of tools out there to help you narrow down possible trouble areas. I've used oink but there are definitely others. Once you figure out where the problems are, you can make some tweaks to try and reduce the memory usage.
Assuming you're using Passenger with Apache, you can reduce the number of concurrent requests in the Passenger config file. This might be useful for that https://serverfault.com/questions/15350/running-ruby-on-rails-app-on-apache-passenger-to-much-memory
In short, 256MB is tight for a Rails application. You did not really give any specifics on how you are running rails, but I assume you are using Apache with the Passenger module. The Passenger module can be configured on how many instances it keeps running. You have 4 ruby instances running under the web-app account. I guess those come from Passenger. In the configuration, you can limit how many instances Passenger starts. This will reduce the memory requirements.
On the other hand, when working with only 256MB, and when you are only hosting 1 rails application, it might be better to go for another setup. The setup that I used myself before was an Nginx web server, and a mongrel cluster with 2 mongrels (on 192MB, and application was only for testing purposes). Basically that means that at any one time, you can process 2 (and only 2) rails requests in parallel. The setup is maybe a bit harder than Apache+Passenger, but definitely not difficult. I think that is a more performant solution when you stick with the 256MB.

Resources