I attempted a clean installation of Eclipse 4.2 (SR1), Haskell Platform 2012.4.0.0 (GHC 7.4.2), EclipseFP 2.4.1 on Windows 7 (x64).
Downloading the plugin from http://eclipsefp.sf.net/updates I got these errors related to several files missing from the plugin package
An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
The file "C:\Program Files\eclipse\plugins\net.sf.eclipsefp.haskell.compat_2.2.4.jar" does not exist
I was able to compile the helpers adding the missing files (They are included in the zip file!)
However restarting eclipse both scion-browser and buildwrapper crash at startup.
I have this message in the scion-browser console but the file local.db does not exist
Error
Sat Dec 22 19:07:30 CET 2012
Error loading local database
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Error
Sat Dec 22 19:07:28 CET 2012
Error reading answer from Browser Server
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Last edit: pavel 2012-12-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you turn on debug output for scion-browser in the preferences and see if the error is clearer?
For the plugin issue, I'd say it's Eclipse or the sourceforge site misbehaving, since that file has been there for a while...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all thank you for the reply.
Debugging is turned on but the only message I see in the console is the following.
{"filepath":"C:\JavaProjects\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs\local.db","command":"load-local-db","rebuild":true}
I also tried to run scion-browser from the console entering the above command but the program crashes immediately.
I checked paths, deleted and built several times scion-browser. The only strange thing is that scion-browser.exe has two different file size
11940 kb, 23635 kb, depending if scion-browser-0.2.13 is already present in the \AppData\Roaming\cabal folder or not.
I have only one haskell platform installed (2012.4.0.0) and I can build from the command line without any problem. Firewall and antivirus are turned off.
I am afraid this information does not help too much. Is there anything else I can try?
!ENTRY net.sf.eclipsefp.haskell.browser 4 4 2012-12-26 18:02:36.650
!MESSAGE Error reading answer from Browser Server
!STACK 0
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY net.sf.eclipsefp.haskell.browser 4 0 2012-12-26 18:02:37.992
!MESSAGE Error loading local database
!STACK 0
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Something's weird: the console should show you the \ escaped in paths, so you should see "filepath":"C:\JavaProjects\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs\local.db","command":"load-local-db","rebuild":true}
If you try that on the command line, does it work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the error message. Exception Code c000001d is very generic.
I also run (the same) scion-browser.exe on another PC with a different processor and obtained the same error.
Version=1
EventType=APPCRASH
EventTime=130010235085830230
ReportType=2
Consent=1
ReportIdentifier=f517bdb6-4f91-11e2-ae00-005056c00008
IntegratorReportIdentifier=f517bdb5-4f91-11e2-ae00-005056c00008
WOW64=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=scion-browser.exe
Sig[1].Name=Application Version
Sig[1].Value=0.0.0.0
Sig[2].Name=Application Timestamp
Sig[2].Value=50db35eb
Sig[3].Name=Fault Module Name
Sig[3].Value=scion-browser.exe
Sig[4].Name=Fault Module Version
Sig[4].Value=0.0.0.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=50db35eb
Sig[6].Name=Exception Code
Sig[6].Value=c000001d
Sig[7].Name=Exception Offset
Sig[7].Value=00828957
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1040
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=0a9e
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=0a9e372d3b4ad19135b953a78882e789
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=0a9e
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=0a9e372d3b4ad19135b953a78882e789
UI[2]=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
UI[3]=scion-browser.exe has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
LoadedModule[1]=C:\Windows\SysWOW64\ntdll.dll
LoadedModule[2]=C:\Windows\syswow64\kernel32.dll
LoadedModule[3]=C:\Windows\syswow64\KERNELBASE.dll
LoadedModule[4]=C:\Windows\syswow64\ADVAPI32.DLL
LoadedModule[5]=C:\Windows\syswow64\msvcrt.dll
LoadedModule[6]=C:\Windows\SysWOW64\sechost.dll
LoadedModule[7]=C:\Windows\syswow64\RPCRT4.dll
LoadedModule[8]=C:\Windows\syswow64\SspiCli.dll
LoadedModule[9]=C:\Windows\syswow64\CRYPTBASE.dll
LoadedModule[10]=C:\Windows\syswow64\GDI32.dll
LoadedModule[11]=C:\Windows\syswow64\USER32.dll
LoadedModule[12]=C:\Windows\syswow64\LPK.dll
LoadedModule[13]=C:\Windows\syswow64\USP10.dll
LoadedModule[14]=C:\Windows\syswow64\SHELL32.DLL
LoadedModule[15]=C:\Windows\syswow64\SHLWAPI.dll
LoadedModule[16]=C:\Windows\syswow64\WS2_32.dll
LoadedModule[17]=C:\Windows\syswow64\NSI.dll
LoadedModule[18]=C:\Windows\system32\WSOCK32.DLL
LoadedModule[19]=C:\Windows\system32\IMM32.DLL
LoadedModule[20]=C:\Windows\syswow64\MSCTF.dll
LoadedModule[21]=C:\Program Files\CheckPoint\ZAForceField\WOW64\Plugins\ISWSHEX.dll
LoadedModule[22]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
LoadedModule[23]=C:\Windows\syswow64\WINTRUST.dll
LoadedModule[24]=C:\Windows\syswow64\CRYPT32.dll
LoadedModule[25]=C:\Windows\syswow64\MSASN1.dll
LoadedModule[26]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCP80.dll
LoadedModule[27]=C:\Windows\syswow64\ole32.dll
LoadedModule[28]=C:\Windows\system32\profapi.dll
LoadedModule[29]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[30]=C:\Windows\system32\rsaenh.dll
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=scion-browser.exe
AppPath=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But in the console, if you launch scion-browser and paste in the JSON command, you don't get any error in the scion-browser output, just that crash? I actually have the same setup as you (same HP, GHC and OS), so it's not a generic OS issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems to be linked specifically to scion-browser or one of the library it's using, since buildwrapper seems to work and not crash. Never seen this before and as I said I use the same OS as you. Have you tried to rebuild manually scion-browser? Close EclipseFP, then run cabal update and cabal install scion-browser --reinstall
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried reinstall, and additionally reinstalled HP and EclipseFP 2.4.2 from scratch.
Unfortunately scion-browser keeps crashing. Buildwrapper is also crashing. Sorry I did not mention it before.
This is the list of packages in my cabal folder after EclipseFP installation.
Do you see anything strange? A conflicting library?
Do you want to send you my scion-browser and buildwrapper files?
Well the libraries are fine since the things build, but the problem is at runtime. I have no idea. Send me one of the exe if you want I can see if it launches here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No crash for me:
D:\tmp>scion-browser --version
scion-browser executable, version 0.2.13
D:\tmp>scion-browser
{"filepath":"local.db","command":"load-local-db","rebuild":true}
Migrating: CREATE TABLE "DbPackage"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT
NULL,"version" VARCHAR NOT NULL,"doc" VARCHAR NULL,CONSTRAINT "UniqueVersion" UN
IQUE ("name","version"))
Migrating: CREATE TABLE "DbModule"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT N
ULL,"doc" VARCHAR NULL,"packageId" INTEGER NOT NULL REFERENCES "DbPackage")
Migrating: CREATE TABLE "DbDecl"("id" INTEGER PRIMARY KEY,"declType" VARCHAR NOT
NULL,"name" VARCHAR NOT NULL,"doc" VARCHAR NULL,"kind" VARCHAR NULL,"signature"
VARCHAR NULL,"equals" VARCHAR NULL,"moduleId" INTEGER NOT NULL REFERENCES "DbMo
dule")
Migrating: CREATE TABLE "DbTyVar"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT NU
LL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbFunDep"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT N
ULL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbContext"("id" INTEGER PRIMARY KEY,"shown" VARCHAR NOT
NULL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbConstructor"("id" INTEGER PRIMARY KEY,"name" VARCHAR
NOT NULL,"signature" VARCHAR NOT NULL,"declId" INTEGER NOT NULL REFERENCES "DbDe
cl")
scion-browser: user error (Can't find package database in C:\Program Files (x86)
\Haskell Platform\2012.4.0.0\lib)
The final error is normal since your paths are not correct on my machine, but no crash. I've adapted your command to just create a db file in the current folder. the local.db file is created.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also did a clean install (on my XP 32 bit machine) tonight, and buildwrapper keeps crashing, with the occasional error message from scion-browser.
1)I cleaned out
C:\Documents and Settings\eclipseuser\Application Data\cabal
C:\Documents and Settings\eclipseuser\Application Data\ghc
2)Downloaded latest version of eclipse (4.2)
3)Installed eclipsefp 2.4.2
Strangely I have the exact same configuration on the win 7 64 bit machine, and it works fine (I updated eclipsefp yesterday I think, and installed eclipse a few months ago), so I dare not touch that!:)
Maybe I will try reinstalling everything from scratch again (on 32 bit machine) in a couple of weeks. Sometimes these things help..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I put my error in a separate thread, as it has been requested before. I put it here because I noticed that Pavel's buildwrapper was also crashing. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK on both machines I got a list of all the installed packages, and then compared. Quite a few of the packages on the 64 bit machine (the one for which eclipsefp works) are older. However the two I focussed on are zlib (because of the error message I was getting in https://sourceforge.net/p/eclipsefp/discussion/371922/thread/844fd476/) and network (because you mentioned it). The versions are as follows :
32 bit XP (not working)
* network
Synopsis: Low-level networking interface
Default available version: 2.4.0.1
Installed versions: 2.3.1.0
Homepage: https://github.com/haskell/network
License: BSD3
zlib
Synopsis: Compression and decompression in the gzip and zlib formats
Default available version: 0.5.4.0
Installed versions: 0.5.4.0
License: BSD3
Just to check I wasnt doing anything nutty, I created a new user profile and manually downloaded the following packages and installed in the following order :
I tried a diagnostic startup, disabling services and applications hoping to discover some conflict, and an in-place installation of win7 64bit, but the problem is still there.
I tried to install EclipseFP in two other machines. In one is working (Win 64bit, never installed before eclipse and haskell) in the other (32bit, previous version of eclipse and haskell removed) still crashing.
zlib
Synopsis: Compression and decompression in the gzip and zlib formats
Default available version: 0.5.4.0
Installed versions: 0.5.4.0
License: BSD3
I also inspected the permissions since I have this message on the event viewer but everything seems fine (I have administrative privileges)
Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program scion-browser.exe because of this error.
Program: scion-browser.exe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Pavel, if nothing tells you what file or path is causing the problems, maybe you can check:
- in the dist folder (or under .dist-buildwrapper/dist) of scion-browser, check build/autogen/Path_scion_browser.hs and check the paths are ok.
- you can try to find the Paths.hi file from the ghc-paths project (C:\Users\username\AppData\Roaming\cabal\ghc-paths-0.1.0.8\ghc-7.4.2\GHC on my machine) and check the paths in that file are correct (it's a binary file but readable in a text editor). Check the value of libdir and such.
- does ghc-pkg check report broken packages?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) in Paths_<projectname>.hs files I had an outdated reference
getLibDir = getPrefixDirRel "<projectname>-<version>\ghc-7.0.4"
replacing 7.0.4 with 7.4.2 buildwrapper stopped to crash.
Before installing EclipseFP 2.4.x, I removed the HP and installed the new one.
2) in Paths.hi the paths are correct
3) ghc-pkg does not report broken packages, only some warning
WARNING: cache is out of date: C:\Users\<user>\AppData\Roaming\ghc\i386-mingw32-7.4.2\package.conf.d\package.cache
use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: C:\Users\<user>\AppData\Roaming\cabal\doc\zip-archive-0.1.2.1\html\zip-archive.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\<user>\AppData\Roaming\cabal\doc\zip-archive-0.1.2.1\html doesn't exist or isn't a directory
(repeated for many packages).
BTW, ghc-pkg recache does not "fix".
In summary, buildwrapper now works, scion-browser is still crashing.
This is the stack trace
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I attempted a clean installation of Eclipse 4.2 (SR1), Haskell Platform 2012.4.0.0 (GHC 7.4.2), EclipseFP 2.4.1 on Windows 7 (x64).
Downloading the plugin from http://eclipsefp.sf.net/updates I got these errors related to several files missing from the plugin package
An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
The file "C:\Program Files\eclipse\plugins\net.sf.eclipsefp.haskell.compat_2.2.4.jar" does not exist
eclipse\plugins\net.sf.eclipsefp.haskell.ghccompiler_2.2.4.jar
eclipse\plugins\net.sf.eclipsefp.haskell.hlint_2.3.2.jar
eclipse\plugins\net.sf.eclipsefp.haskell.hugs_2.3.1.jar
eclipse\plugins\net.sf.eclipsefp.haskell.profiler_2.3.2.jar
eclipse\plugins\net.sf.eclipsefp.haskell.style_2.3.1.jar
I was able to compile the helpers adding the missing files (They are included in the zip file!)
However restarting eclipse both scion-browser and buildwrapper crash at startup.
I have this message in the scion-browser console but the file local.db does not exist
{"filepath":"C:\JavaProjects\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs\local.db","command":"load-local-db","rebuild":true}
Any suggestion? TIA
This the output of buildwrapper
C:\Users\Paolo\AppData\Roaming\cabal\bin\buildwrapper.exe outline --file=src\Main.hs --tempfolder=.dist-buildwrapper --cabalpath=C:\Program Files (x86)\Haskell Platform\2012.4.0.0\lib\extralibs\bin\cabal.exe --cabalfile=C:\JavaProjects\helloworld\helloworld.cabal --cabalflags=
C:\Users\Paolo\AppData\Roaming\cabal\bin\buildwrapper.exe build1 --file=src\Main.hs --tempfolder=.dist-buildwrapper --cabalpath=C:\Program Files (x86)\Haskell Platform\2012.4.0.0\lib\extralibs\bin\cabal.exe --cabalfile=C:\JavaProjects\helloworld\helloworld.cabal --cabalflags=
C:\Users\Paolo\AppData\Roaming\cabal\bin\buildwrapper.exe synchronize1 --file=src\Main.hs --force=true --tempfolder=.dist-buildwrapper --cabalpath=C:\Program Files (x86)\Haskell Platform\2012.4.0.0\lib\extralibs\bin\cabal.exe --cabalfile=C:\JavaProjects\helloworld\helloworld.cabal --cabalflags=
build-wrapper-json:"src\Main.hs"
C:\Users\Paolo\AppData\Roaming\cabal\bin\buildwrapper.exe tokentypes --file=src\Main.hs --tempfolder=.dist-buildwrapper --cabalpath=C:\Program Files (x86)\Haskell Platform\2012.4.0.0\lib\extralibs\bin\cabal.exe --cabalfile=C:\JavaProjects\helloworld\helloworld.cabal --cabalflags=
eclipse.buildId=M20120914-1800
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
Error
Sat Dec 22 19:07:30 CET 2012
Error loading local database
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
eclipse.buildId=M20120914-1800
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
Error
Sat Dec 22 19:07:28 CET 2012
Error reading answer from Browser Server
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Last edit: pavel 2012-12-24
Can you turn on debug output for scion-browser in the preferences and see if the error is clearer?
For the plugin issue, I'd say it's Eclipse or the sourceforge site misbehaving, since that file has been there for a while...
First of all thank you for the reply.
Debugging is turned on but the only message I see in the console is the following.
{"filepath":"C:\JavaProjects\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs\local.db","command":"load-local-db","rebuild":true}
I also tried to run scion-browser from the console entering the above command but the program crashes immediately.
I checked paths, deleted and built several times scion-browser. The only strange thing is that scion-browser.exe has two different file size
11940 kb, 23635 kb, depending if scion-browser-0.2.13 is already present in the \AppData\Roaming\cabal folder or not.
I have only one haskell platform installed (2012.4.0.0) and I can build from the command line without any problem. Firewall and antivirus are turned off.
I am afraid this information does not help too much. Is there anything else I can try?
This is the eclipse error log.
!SESSION 2012-12-26 18:02:12.138 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY net.sf.eclipsefp.haskell.browser 4 4 2012-12-26 18:02:36.650
!MESSAGE Error reading answer from Browser Server
!STACK 0
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY net.sf.eclipsefp.haskell.browser 4 0 2012-12-26 18:02:37.992
!MESSAGE Error loading local database
!STACK 0
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
To run from the command line, run scion-browser. Then paste in the JSON command as you have above. You say it crashes, does it give any error?
Something's weird: the console should show you the \ escaped in paths, so you should see "filepath":"C:\JavaProjects\.metadata\.plugins\net.sf.eclipsefp.haskell.browser\scion-browser-0.2-dbs\local.db","command":"load-local-db","rebuild":true}
If you try that on the command line, does it work?
OK, the post formatting removes the double slashes, ignore previous post. Backslashes must be doubled in JSON.
This is the error message. Exception Code c000001d is very generic.
I also run (the same) scion-browser.exe on another PC with a different processor and obtained the same error.
Version=1
EventType=APPCRASH
EventTime=130010235085830230
ReportType=2
Consent=1
ReportIdentifier=f517bdb6-4f91-11e2-ae00-005056c00008
IntegratorReportIdentifier=f517bdb5-4f91-11e2-ae00-005056c00008
WOW64=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=scion-browser.exe
Sig[1].Name=Application Version
Sig[1].Value=0.0.0.0
Sig[2].Name=Application Timestamp
Sig[2].Value=50db35eb
Sig[3].Name=Fault Module Name
Sig[3].Value=scion-browser.exe
Sig[4].Name=Fault Module Version
Sig[4].Value=0.0.0.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=50db35eb
Sig[6].Name=Exception Code
Sig[6].Value=c000001d
Sig[7].Name=Exception Offset
Sig[7].Value=00828957
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1040
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=0a9e
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=0a9e372d3b4ad19135b953a78882e789
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=0a9e
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=0a9e372d3b4ad19135b953a78882e789
UI[2]=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
UI[3]=scion-browser.exe has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
LoadedModule[1]=C:\Windows\SysWOW64\ntdll.dll
LoadedModule[2]=C:\Windows\syswow64\kernel32.dll
LoadedModule[3]=C:\Windows\syswow64\KERNELBASE.dll
LoadedModule[4]=C:\Windows\syswow64\ADVAPI32.DLL
LoadedModule[5]=C:\Windows\syswow64\msvcrt.dll
LoadedModule[6]=C:\Windows\SysWOW64\sechost.dll
LoadedModule[7]=C:\Windows\syswow64\RPCRT4.dll
LoadedModule[8]=C:\Windows\syswow64\SspiCli.dll
LoadedModule[9]=C:\Windows\syswow64\CRYPTBASE.dll
LoadedModule[10]=C:\Windows\syswow64\GDI32.dll
LoadedModule[11]=C:\Windows\syswow64\USER32.dll
LoadedModule[12]=C:\Windows\syswow64\LPK.dll
LoadedModule[13]=C:\Windows\syswow64\USP10.dll
LoadedModule[14]=C:\Windows\syswow64\SHELL32.DLL
LoadedModule[15]=C:\Windows\syswow64\SHLWAPI.dll
LoadedModule[16]=C:\Windows\syswow64\WS2_32.dll
LoadedModule[17]=C:\Windows\syswow64\NSI.dll
LoadedModule[18]=C:\Windows\system32\WSOCK32.DLL
LoadedModule[19]=C:\Windows\system32\IMM32.DLL
LoadedModule[20]=C:\Windows\syswow64\MSCTF.dll
LoadedModule[21]=C:\Program Files\CheckPoint\ZAForceField\WOW64\Plugins\ISWSHEX.dll
LoadedModule[22]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
LoadedModule[23]=C:\Windows\syswow64\WINTRUST.dll
LoadedModule[24]=C:\Windows\syswow64\CRYPT32.dll
LoadedModule[25]=C:\Windows\syswow64\MSASN1.dll
LoadedModule[26]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCP80.dll
LoadedModule[27]=C:\Windows\syswow64\ole32.dll
LoadedModule[28]=C:\Windows\system32\profapi.dll
LoadedModule[29]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[30]=C:\Windows\system32\rsaenh.dll
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=scion-browser.exe
AppPath=C:\Users\Paolo\AppData\Roaming\cabal\bin\scion-browser.exe
But in the console, if you launch scion-browser and paste in the JSON command, you don't get any error in the scion-browser output, just that crash? I actually have the same setup as you (same HP, GHC and OS), so it's not a generic OS issue.
No output in the console. Just a crash.
Is there any other command I can test in the console?
It seems to be linked specifically to scion-browser or one of the library it's using, since buildwrapper seems to work and not crash. Never seen this before and as I said I use the same OS as you. Have you tried to rebuild manually scion-browser? Close EclipseFP, then run cabal update and cabal install scion-browser --reinstall
I tried reinstall, and additionally reinstalled HP and EclipseFP 2.4.2 from scratch.
Unfortunately scion-browser keeps crashing. Buildwrapper is also crashing. Sorry I did not mention it before.
This is the list of packages in my cabal folder after EclipseFP installation.
Do you see anything strange? A conflicting library?
Do you want to send you my scion-browser and buildwrapper files?
aeson-0.6.1.0
attoparsec-0.10.3.0
base-unicode-symbols-0.2.2.4
base64-bytestring-1.0.0.0
bktrees-0.3.1
blaze-builder-0.3.1.0
blaze-builder-conduit-0.5.0.3
blaze-html-0.4.3.4
blaze-html-0.5.1.3
blaze-markup-0.5.1.4
buildwrapper-0.6.4
case-insensitive-0.4.0.4
citeproc-hs-0.3.6
cmdargs-0.10.1
colour-2.3.3
conduit-0.5.5
cpphs-1.15
date-cache-0.3.0
derive-2.5.11
digest-0.0.1.2
dlist-0.5
fast-logger-0.3.1
ghc-paths-0.1.0.9
Graphalyze-0.13.0.1
graphviz-2999.14.1.0
hashable-1.2.0.2
haskeline-0.7.0.3
haskell-src-exts-1.13.5
hexpat-0.20.3
highlighting-kate-0.5.3.3
hlint-1.8.39
hoogle-4.2.14
hs-bibutils-4.15
hscolour-1.20.3
http-types-0.7.3.0.1
json-0.7
lifted-base-0.2.0.2
List-0.5.1
monad-control-0.3.1.4
monad-logger-0.2.3.1
multiset-0.2.1
network-conduit-0.6.2.1
pandoc-1.9.4.5
pandoc-types-1.9.1
parallel-io-0.3.3
path-pieces-0.1.2
persistent-1.1.3.1
persistent-sqlite-1.1.2
persistent-template-1.1.2
polyparse-1.8
pool-conduit-0.1.1
regex-pcre-builtin-0.94.4.3.8.31
regex-tdfa-1.1.8
resource-pool-0.2.1.1
resourcet-0.4.4
safe-0.3.3
scion-browser-0.2.13
semigroups-0.8.5
silently-1.2.4.1
simple-sendfile-0.2.10
strict-0.3.2
stylish-haskell-0.5.5.2
tagsoup-0.12.8
tar-0.4.0.1
temporary-1.1.2.4
texmath-0.6.1.1
transformers-base-0.4.1
uniplate-1.6.10
unix-compat-0.4.1.0
unordered-containers-0.2.3.0
utf8-string-0.3.7
vault-0.2.0.4
void-0.5.10
wai-1.3.0.1
warp-1.3.6
wl-pprint-text-1.1.0.0
xml-1.3.12
yaml-0.8.1.2
zip-archive-0.1.2.1
Well the libraries are fine since the things build, but the problem is at runtime. I have no idea. Send me one of the exe if you want I can see if it launches here.
I just sent you a mail with a link to the files.
No crash for me:
D:\tmp>scion-browser --version
scion-browser executable, version 0.2.13
D:\tmp>scion-browser
{"filepath":"local.db","command":"load-local-db","rebuild":true}
Migrating: CREATE TABLE "DbPackage"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT
NULL,"version" VARCHAR NOT NULL,"doc" VARCHAR NULL,CONSTRAINT "UniqueVersion" UN
IQUE ("name","version"))
Migrating: CREATE TABLE "DbModule"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT N
ULL,"doc" VARCHAR NULL,"packageId" INTEGER NOT NULL REFERENCES "DbPackage")
Migrating: CREATE TABLE "DbDecl"("id" INTEGER PRIMARY KEY,"declType" VARCHAR NOT
NULL,"name" VARCHAR NOT NULL,"doc" VARCHAR NULL,"kind" VARCHAR NULL,"signature"
VARCHAR NULL,"equals" VARCHAR NULL,"moduleId" INTEGER NOT NULL REFERENCES "DbMo
dule")
Migrating: CREATE TABLE "DbTyVar"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT NU
LL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbFunDep"("id" INTEGER PRIMARY KEY,"name" VARCHAR NOT N
ULL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbContext"("id" INTEGER PRIMARY KEY,"shown" VARCHAR NOT
NULL,"declId" INTEGER NOT NULL REFERENCES "DbDecl")
Migrating: CREATE TABLE "DbConstructor"("id" INTEGER PRIMARY KEY,"name" VARCHAR
NOT NULL,"signature" VARCHAR NOT NULL,"declId" INTEGER NOT NULL REFERENCES "DbDe
cl")
scion-browser: user error (Can't find package database in C:\Program Files (x86)
\Haskell Platform\2012.4.0.0\lib)
The final error is normal since your paths are not correct on my machine, but no crash. I've adapted your command to just create a db file in the current folder. the local.db file is created.
Thank you. I am checking my system to see if there is any conflicting application or setting.
I also did a clean install (on my XP 32 bit machine) tonight, and buildwrapper keeps crashing, with the occasional error message from scion-browser.
1)I cleaned out
C:\Documents and Settings\eclipseuser\Application Data\cabal
C:\Documents and Settings\eclipseuser\Application Data\ghc
2)Downloaded latest version of eclipse (4.2)
3)Installed eclipsefp 2.4.2
Strangely I have the exact same configuration on the win 7 64 bit machine, and it works fine (I updated eclipsefp yesterday I think, and installed eclipse a few months ago), so I dare not touch that!:)
Maybe I will try reinstalling everything from scratch again (on 32 bit machine) in a couple of weeks. Sometimes these things help..
I put my error in a separate thread, as it has been requested before. I put it here because I noticed that Pavel's buildwrapper was also crashing. Thanks
Yes, the two problems seem similar: crashing on windows, when everything built fine. Maybe a issue with one of the low level library like network?
OK on both machines I got a list of all the installed packages, and then compared. Quite a few of the packages on the 64 bit machine (the one for which eclipsefp works) are older. However the two I focussed on are zlib (because of the error message I was getting in https://sourceforge.net/p/eclipsefp/discussion/371922/thread/844fd476/) and network (because you mentioned it). The versions are as follows :
32 bit XP (not working)
* network
Synopsis: Low-level networking interface
Default available version: 2.4.0.1
Installed versions: 2.3.1.0
Homepage: https://github.com/haskell/network
License: BSD3
Synopsis: Compression and decompression in the gzip and zlib formats
Default available version: 0.5.4.0
Installed versions: 0.5.4.0
License: BSD3
64 bit win7 (working)
* network
Synopsis: Low-level networking interface
Default available version: 2.4.0.1
Installed versions: 2.3.0.13
Homepage: https://github.com/haskell/network
License: BSD3
Synopsis: Compression and decompression in the gzip and zlib formats
Default available version: 0.5.4.0
Installed versions: 0.5.3.3
License: BSD3
Do you know how I can force reinstallation using the older versions of network and zlib? Thanks
I have attached the lists of all packages installed on the two systems, incase anyone is interested in doing a diff...:)
and here is the 64 bit installation (see attachment)
Just to check I wasnt doing anything nutty, I created a new user profile and manually downloaded the following packages and installed in the following order :
buildwrapper
scion-browser
hoogle
hlint
sourcegraph
stylish-haskell
and I still got the same error. Which package depends on network?
I tried a diagnostic startup, disabling services and applications hoping to discover some conflict, and an in-place installation of win7 64bit, but the problem is still there.
I tried to install EclipseFP in two other machines. In one is working (Win 64bit, never installed before eclipse and haskell) in the other (32bit, previous version of eclipse and haskell removed) still crashing.
These are packages installed in my (first) PC
network
Synopsis: Low-level networking interface
Default available version: 2.4.0.1
Installed versions: 2.3.1.0
Homepage: https://github.com/haskell/network
License: BSD3
zlib
Synopsis: Compression and decompression in the gzip and zlib formats
Default available version: 0.5.4.0
Installed versions: 0.5.4.0
License: BSD3
I also inspected the permissions since I have this message on the event viewer but everything seems fine (I have administrative privileges)
Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program scion-browser.exe because of this error.
Program: scion-browser.exe
Pavel, if nothing tells you what file or path is causing the problems, maybe you can check:
- in the dist folder (or under .dist-buildwrapper/dist) of scion-browser, check build/autogen/Path_scion_browser.hs and check the paths are ok.
- you can try to find the Paths.hi file from the ghc-paths project (C:\Users\username\AppData\Roaming\cabal\ghc-paths-0.1.0.8\ghc-7.4.2\GHC on my machine) and check the paths in that file are correct (it's a binary file but readable in a text editor). Check the value of libdir and such.
- does ghc-pkg check report broken packages?
First of all, thank you for the support.
1) in Paths_<projectname>.hs files I had an outdated reference
getLibDir = getPrefixDirRel "<projectname>-<version>\ghc-7.0.4"
replacing 7.0.4 with 7.4.2 buildwrapper stopped to crash.
Before installing EclipseFP 2.4.x, I removed the HP and installed the new one.
2) in Paths.hi the paths are correct
3) ghc-pkg does not report broken packages, only some warning
WARNING: cache is out of date: C:\Users\<user>\AppData\Roaming\ghc\i386-mingw32-7.4.2\package.conf.d\package.cache
use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: C:\Users\<user>\AppData\Roaming\cabal\doc\zip-archive-0.1.2.1\html\zip-archive.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\<user>\AppData\Roaming\cabal\doc\zip-archive-0.1.2.1\html doesn't exist or isn't a directory
(repeated for many packages).
BTW, ghc-pkg recache does not "fix".
In summary, buildwrapper now works, scion-browser is still crashing.
This is the stack trace
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:187)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:133)
at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:212)
at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:92)
at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:848)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)