Fixes #13754 by restoring the previous behaviour
wallet: Catch filesystem_error and raise InitError #13876
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1808-walletFsError changing 1 files +6 −1-
MarcoFalke commented at 4:06 PM on August 4, 2018: member
-
wallet: Catch filesystem_error and raise InitError fa8527ffec
- MarcoFalke added the label Wallet on Aug 4, 2018
- MarcoFalke added the label Needs gitian build on Aug 4, 2018
-
DrahtBot commented at 4:25 PM on August 4, 2018: member
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
- #11911 (Free CDBEnv instances when not in use by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
MarcoFalke commented at 4:49 PM on August 4, 2018: member
Before: <img width="509" alt="schermafbeelding 2018-07-24 om 17 43 26" src="https://user-images.githubusercontent.com/10217/43150605-9cf32192-8f6a-11e8-9333-87d074c8dd35.png">
After:

Using:
6f7a41d357d5e3fb4614fec0280477f3e71bbda1bb28f32461b1cc2c418c0c4d bitcoin-0.16.99-win64.ziphttps://transfer.sh/MPEy5/bitcoin-0.16.99-win64.zip - MarcoFalke added this to the milestone 0.17.0 on Aug 4, 2018
-
laanwj commented at 6:49 PM on August 4, 2018: member
certainly better utACK fa8527ffeced3f898e8f205483ef0ea7c51a9178
-
DrahtBot commented at 5:02 AM on August 5, 2018: member
<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit 2b67354aa584c4aabae049a67767ac7b70e2d01a (master):
2b4350b3e7d5c421f6a5e3efa3f92bc4...bitcoin-0.16.99-aarch64-linux-gnu-debug.tar.gz2220baa3092a5925ed3f19c2dab1173c...bitcoin-0.16.99-aarch64-linux-gnu.tar.gz38bbc2f366bd53ae12e475f9d929c502...bitcoin-0.16.99-arm-linux-gnueabihf-debug.tar.gz7e35e51bcef5c0822e50e4d574425850...bitcoin-0.16.99-arm-linux-gnueabihf.tar.gz58583014a487c60363ab9a1e9eb9793a...bitcoin-0.16.99-i686-pc-linux-gnu-debug.tar.gzeff6e1a1ad0b6949cd45c18cb8436c2c...bitcoin-0.16.99-i686-pc-linux-gnu.tar.gz42f48d4f15f8e57abb394a2d069c5c30...bitcoin-0.16.99-osx-unsigned.dmgc6af36e4556d32146dd998399f1a66aa...bitcoin-0.16.99-osx64.tar.gzc11bfcc1b924e9a30d29c5a6c1e12282...bitcoin-0.16.99-win32-debug.zip14a1031b8dd2a939ef6be7b561750e2a...bitcoin-0.16.99-win32-setup-unsigned.exe4391a26e6871dfa076d35f5e33b6cd1d...bitcoin-0.16.99-win32.zipac654ff1e7cd0fe4cfba68f133a009a5...bitcoin-0.16.99-win64-debug.zip000d039e38b60653176bfc2f33102657...bitcoin-0.16.99-win64-setup-unsigned.exe4481ab2adf6c4ccb0c9e3b4f7a00fa5c...bitcoin-0.16.99-win64.zip460d8b1162a2dfa7536e55241e8adccc...bitcoin-0.16.99-x86_64-linux-gnu-debug.tar.gzec5d467a4554c3779caada31b9a2c88b...bitcoin-0.16.99-x86_64-linux-gnu.tar.gz21019b9ed28c31e43916aace52bbb779...bitcoin-0.16.99.tar.gz63cb97fa78a22b9a586bf56a4f24d18e...bitcoin-linux-0.17-res.yml75910049e17a450778251c06f486505b...bitcoin-linux-build.log17c00e26b6b5f0752e35c9fc52eb5a8e...bitcoin-osx-0.17-res.yml8b5c428d06b213f52555ebe1a8018183...bitcoin-osx-build.log6785e40d210b959acdf3a335e6334ddd...bitcoin-win-0.17-res.yml1574e1a87a0a2e9d7a423377f6074877...bitcoin-win-build.log
Gitian builds for commit 04cb409e2c353fce1e6b02e08ae7e94c03b53185 (master and this pull):
a62d22de3424d212e66b8c3471c6dbd6...bitcoin-0.16.99-aarch64-linux-gnu-debug.tar.gz3c1e77fce10236935bfbbe1d5b52ebba...bitcoin-0.16.99-aarch64-linux-gnu.tar.gzddda94a56f576003a494bbcab0def6c6...bitcoin-0.16.99-arm-linux-gnueabihf-debug.tar.gz8e831bd41e3d19893859ab9b5929a106...bitcoin-0.16.99-arm-linux-gnueabihf.tar.gz0647405c445a615224a45210d1363492...bitcoin-0.16.99-i686-pc-linux-gnu-debug.tar.gz46e564bb6f0c1f33eb4135426eeba6c0...bitcoin-0.16.99-i686-pc-linux-gnu.tar.gzb1c11373543fbf5a539aa0d7f85b0400...bitcoin-0.16.99-osx-unsigned.dmg1553508c21655ef4bb738c77516e9918...bitcoin-0.16.99-osx64.tar.gzdfcca8625cd9adf3a3d6ae186862266c...bitcoin-0.16.99-win32-debug.zipe887774ff51cde1be8cbcb4274855712...bitcoin-0.16.99-win32-setup-unsigned.exe0c911a314af0650cb4af4bfb00f6a6c8...bitcoin-0.16.99-win32.zip064a6c24481ede85d930d6a0dfac89d1...bitcoin-0.16.99-win64-debug.zipa4bded483b567b90ca0c2bcaab8f4ee0...bitcoin-0.16.99-win64-setup-unsigned.exeb8214d6b1a647001458ed7091217001e...bitcoin-0.16.99-win64.zip8bfacce8b993a094fdfb60d2947b7544...bitcoin-0.16.99-x86_64-linux-gnu-debug.tar.gz63f05c3f929676c8e73cee1e76946708...bitcoin-0.16.99-x86_64-linux-gnu.tar.gzb72674f2734c25a6d9d0c29d2edb2e3a...bitcoin-0.16.99.tar.gzec4bf160f6b1f1905c180aff420fa25a...bitcoin-linux-0.17-res.ymle28abd8045ad107e9ca5efb0e7a78cd7...bitcoin-linux-build.log887bb44dc0a546837865e9cd92212a12...bitcoin-osx-0.17-res.yml18f82435e9815e78ddf30a9930151e79...bitcoin-osx-build.log13287ae60dd1838e9599aeac302608dd...bitcoin-win-0.17-res.ymla8481e5db30132ef151b76332486cc78...bitcoin-win-build.log
- DrahtBot removed the label Needs gitian build on Aug 5, 2018
- MarcoFalke removed this from the milestone 0.17.0 on Aug 5, 2018
- laanwj added this to the milestone 0.17.0 on Aug 8, 2018
-
laanwj commented at 1:33 PM on August 8, 2018: member
Adding to 0.17.0 milestone as I think this is a regression?
-
MarcoFalke commented at 1:59 PM on August 8, 2018: member
Regression in a sense that it throws a useless error as opposed to something more helpful.
-
MarcoFalke commented at 2:06 PM on August 8, 2018: member
Ideally we'd handle runtime errors more sanely and automatic as opposed to splattered catch clauses all over the place. Imo we should provide a copy-paste able stacktrace on runtime errors and a link to submit an issue with all the debugging information attached.
-
MarcoFalke commented at 2:06 PM on August 8, 2018: member
@Sjors Mind to take a quick look at the patch, please?
-
Sjors commented at 2:54 PM on August 8, 2018: member
For some reason this build throws an unexpected error for me, even when launching without
-walletparam (master does start):<img width="1010" alt="schermafbeelding 2018-08-08 om 16 52 06" src="https://user-images.githubusercontent.com/10217/43845154-a0b0b2f0-9b2b-11e8-844f-a7a17057e652.png">
-
MarcoFalke commented at 4:58 PM on August 8, 2018: member
@Sjors Interesting. I didn't change that part of the code at all. This comes very early in initialization:
https://github.com/bitcoin/bitcoin/blob/df9f71274645a917e2578c52a1c59745bce8112d/src/init.cpp#L1183
Are you sure you compare the "Gitian builds for commit 2b67354 (master)" with "Gitian builds for commit 04cb409 (master and this pull)"?
-
MarcoFalke commented at 8:12 PM on August 8, 2018: member
I just tried again and they work for me with a fresh account:

-
Sjors commented at 10:44 AM on August 9, 2018: member
@MarcoFalke I downloaded it (and master) straight from @DrahtBot and the link you posted (only your version). It's weird, but given that my error is created elsewhere in the code, and others don't see it, maybe just ignore?
-
ken2812221 commented at 11:09 AM on August 9, 2018: contributor
Tested ACK fa8527ffeced3f898e8f205483ef0ea7c51a9178
Although the message is a mess if the system setting is not English.

- MarcoFalke merged this on Aug 9, 2018
- MarcoFalke closed this on Aug 9, 2018
- MarcoFalke referenced this in commit 8eb9870052 on Aug 9, 2018
- MarcoFalke deleted the branch on Aug 9, 2018
- jasonbcox referenced this in commit 5c1f643c9f on Sep 13, 2019
- PastaPastaPasta referenced this in commit a992e025f1 on Feb 2, 2021
- PastaPastaPasta referenced this in commit ce89dc7c58 on Feb 3, 2021
- PastaPastaPasta referenced this in commit b08e60e529 on Feb 4, 2021
- DrahtBot locked this on Sep 8, 2021
Milestone
0.17.0