Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

ERROR: Cannot open native files

Please login with a confirmed email address before reporting spam

hi,
version: 4.1
error: cannot open native files

This popup warning happened usually these days, and i found the solver related to this in the comsol knowledge:

www.comsol.com/support/knowledgebase/1095/

But now, i have no access to the web page, could you please give me your hand?
Thanks.

1 Reply Last Post 1 avr. 2014, 10:35 UTC−4
COMSOL Moderator

Hello Yang Yulong

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 1 avr. 2014, 10:35 UTC−4
The problem is related to a Windows user name that contains national characters.

In COMSOL, if the the error node under the solver node is inspected, a message similar to (if the user is named José) will be visible:

Cannot open native file.
- Detail:
c:\Users\Jos?\.comsol\v42\recoveries\MPHRecovery5657date_Nov_1_2010_2-34_PM.mph\solution1.mphbin

Two alternative alternative workarounds can be used:

Specify a recovery directory without special national characters: Change the target of the COMSOL shortcut to e.g., [path]\comsol.exe -recoverydir c:\COMSOLRecoveries where [path] is the name of the COMSOL installation directory. To change the target, right-click the COMSOL icon and select Properties. In the Target edit field, add -recoverydir c:\COMSOLRecoveries to the comsol command like shown above.
A less recommended workaround is to turn off recovery files: Select the menu Options->Preferences, go to Save, clear the checkbox "Save recovery file". You can also add the -autosave off switch to the comsol start command (see point 1 above for instructions), by changing the shortcut target as outlined above. This latter option must be used if you run client/server and want to turn off recovery files.
The underlying problem is that COMSOL fails to save files in the home directory if the user name has national characters, for example José. The recovery files are used by COMSOL to save intermediate results so that if COMSOL crashes during a computation, the computation can be resumed from the last stored point. COMSOL is working on a fix for this character problem. This problem is much less common in version 4.2 than 4.1, so it is a good idea to upgrade to latest release if you haven't already.
The problem is related to a Windows user name that contains national characters. In COMSOL, if the the error node under the solver node is inspected, a message similar to (if the user is named José) will be visible: Cannot open native file. - Detail: c:\Users\Jos?\.comsol\v42\recoveries\MPHRecovery5657date_Nov_1_2010_2-34_PM.mph\solution1.mphbin Two alternative alternative workarounds can be used: Specify a recovery directory without special national characters: Change the target of the COMSOL shortcut to e.g., [path]\comsol.exe -recoverydir c:\COMSOLRecoveries where [path] is the name of the COMSOL installation directory. To change the target, right-click the COMSOL icon and select Properties. In the Target edit field, add -recoverydir c:\COMSOLRecoveries to the comsol command like shown above. A less recommended workaround is to turn off recovery files: Select the menu Options->Preferences, go to Save, clear the checkbox "Save recovery file". You can also add the -autosave off switch to the comsol start command (see point 1 above for instructions), by changing the shortcut target as outlined above. This latter option must be used if you run client/server and want to turn off recovery files. The underlying problem is that COMSOL fails to save files in the home directory if the user name has national characters, for example José. The recovery files are used by COMSOL to save intermediate results so that if COMSOL crashes during a computation, the computation can be resumed from the last stored point. COMSOL is working on a fix for this character problem. This problem is much less common in version 4.2 than 4.1, so it is a good idea to upgrade to latest release if you haven't already.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.