Click here to donate to keep PhreeqcUsers open
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Beginners
»
Installation questions
»
Loading error for .p4w files in Phast for Windows
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Loading error for .p4w files in Phast for Windows (Read 3607 times)
swilke
Contributor
Posts: 7
Loading error for .p4w files in Phast for Windows
«
on:
July 16, 2018, 08:54:46 PM »
Good evening,
I am using Phast for Windows Version x64 3.4.0.12927 and am having trouble loading saved files in the programs own .p4w format. Whenever I attempt to open either a file I created myself or one of the two tutorial files "flow.p4w" or "transport.p4w" that are distributed with the tutorial slides, I get three error messages:
1. Failed to open document
2. An unsupported operation was attempted.
3. Exception thrown in destructor (f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\viewcore.cpp:59) An invalid argument was encountered.
In contrast, I can open the many example files that are installed with Phast for Windows just fine. Creating new files works, too. Starting the program as administrator doesn't help either. Could it be a problem related with external files like shapes or background images?
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: Loading error for .p4w files in Phast for Windows
«
Reply #1 on:
July 18, 2018, 12:41:33 AM »
Attach the p4w file, preferably for a flow-only simulation that fails to load, and we will take a look at it.
Logged
swilke
Contributor
Posts: 7
Re: Loading error for .p4w files in Phast for Windows
«
Reply #2 on:
July 19, 2018, 09:03:53 PM »
It didn't help to reinstall. Maybe something related to external files like shapes and images?
Logged
swilke
Contributor
Posts: 7
Re: Loading error for .p4w files in Phast for Windows
«
Reply #3 on:
July 19, 2018, 09:12:25 PM »
Just tried again and suddenly it worked and all files loaded. Restarted computer. Now nothing works and the loading fails... I am a bit confused.
Had to split the upload due to file size restrictions.
Logged
TS
Contributor
Posts: 2
Re: Loading error for .p4w files in Phast for Windows
«
Reply #4 on:
March 08, 2021, 05:41:39 AM »
Hi Everyone.
I have the same problem. Could you solve the problem?
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: Loading error for .p4w files in Phast for Windows
«
Reply #5 on:
March 08, 2021, 06:02:33 PM »
First, my apology to swilke if I did not reply to those posts.
We think the problem is that you may have more than one HDF dll (hdf5.dll).
Do the following at a Windows command prompt:
where hdf5.dll
If 2 or more instances are listed, then try rearranging your environmental variable path so that
C:\Program Files\USGS\phast-3.6.15100\bin\
occurs before the other location.
We will keep checking to reproduce the problem, but let me know whether this suggestion works.
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: Loading error for .p4w files in Phast for Windows
«
Reply #6 on:
March 08, 2021, 07:05:13 PM »
I did reproduce the problem. I "repaired" my HDF from an msi file, but I am not sure whether I actually installed a newer version or the repair made other changes. However, after the repair, I was able to open the files posted by swilke. We'll keep looking.
Logged
TS
Contributor
Posts: 2
Re: Loading error for .p4w files in Phast for Windows
«
Reply #7 on:
March 09, 2021, 02:26:12 PM »
Thanks for your request, but it doesn't work. But it was a good advice as well.
I have solved the problem nearly.
I unistalled the program modelmuse, hdf-exporter and the batch version of phast. When the windows version of Phast was alone, it runs without any problems. After then I reinstalled the batch version of Phast (i nead it because of the hdf-Exporter). Now it works nearly with all p4w.files, but not with all. It doesn't open the p4w.files with shapefile for chemistry definitions. The files with the restart-chemistry definition are open without a problem.
Best Regards
Tina
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: Loading error for .p4w files in Phast for Windows
«
Reply #8 on:
March 10, 2021, 12:23:47 AM »
We finally isolated the problem. There is a value in p4w files that is read incorrectly as a variable of the wrong size (32 bit instead of 64 bit). P4W mostly works, but if it fails, there is really no reliable work around.
Contact me offline through this forum and we can discuss options for you. We currently are working on new versions of all codes and will fix this bug in the next release. I think it only affects shape files.
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: Loading error for .p4w files in Phast for Windows
«
Reply #9 on:
March 22, 2024, 12:22:38 AM »
A fix (Phast for Windows Version 3.7.4-prerelease-1) is available at
https://github.com/usgs-coupled/wphast/releases
Hopefully new versions of all PHREEQC programs will be released in the next couple of months (today is March 21, 2024).
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Beginners
»
Installation questions
»
Loading error for .p4w files in Phast for Windows