You are here

[Fixed] Libreoffice 6.0.5 doesn't start on machines missing Visual C runtimes

23 posts / 0 new
Last post
capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
[Fixed] Libreoffice 6.0.5 doesn't start on machines missing Visual C runtimes

Hi,
With the last libreoffice's update, the software doesn't open either if I click on a file associated, or if I try to open it by poirtableapps' suite.
Libreoffice doesn't appaer in the process' list though if lunch it by command line.
I've this problem in windows 7 and windows 8.
Thanks

John T. Haller
John T. Haller's picture
Online
Last seen: 36 min 30 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Run Directly To Report Error

Please explore to LibreOfficePortable\App\libreoffice\program and run soffice.exe so that you can see the error it is reporting.

Sometimes, the impossible can become possible, if you're awesome!

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Missing DLL Error - On Unupdated Win-8.1

Experiencing the same on my unupdated Windows 8.1 system.

Running directly soffice.exe gives me the following error:

soffice.exe - System Error

The program can't start because api-ms-win-crt-heap-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

By the way, in my case, this the second app that cannot launch, the first one was the recently released Falkon browser, giving me the same error message.

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
Confirm error

MiK wrote:

The program can't start because api-ms-win-crt-heap-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

I confirm the error message

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Underscores vs Dashes

While experimenting with transplanting "api-ms-win-crt-..." DLLs from LibreOfficePortable 6.0.4 to 6.0.5, I've noticed they are named differently, i.e. old names use dashes, and the new ones use underscores.

Like: api-ms-win-crt-conio-l1-1-0.dll vs api_ms_win_crt_conio_l1_1_0.dll

Anyway, I've pasted all fifteen (15) of them, and this helped, LibreOfficePortable.exe launched, regardless there are many more api DLLs that now use underscores in their names, instead of dashes.

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Renaming Existing

I've done one more experiment by renaming the existing "api-ms-win-crt-...", and that does the trick too, program launches.

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
In what folder are these

In what folder are these files?

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
In program Folder

They are in "...\LibreOfficePortable\App\libreoffice\program\" folder.

Full, default, path of my installation is:

C:\PortableApps\LibreOfficePortable\App\libreoffice\program\

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
A Curiosity

I've even gone further with checking on this matter, and downloaded regular msi installers, both x86 and x64 versions, and found out that their "System", and "System64" folders contain those and other api dll's with names using dashes, not underscores.

So, the question is, to John, how did this happen that you ended up packing underscores instead of dashes?

And, another question is, since no one else is reporting the problem, does that mean that they pick up the api's with the correct names from the host systems?

*
Installers checked:
LibreOffice_6.0.5.2_Win_x86.msi
LibreOffice_6.0.5.2_Win_x64.msi

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
Instead I checked on my

Instead I checked on my another pc with windows 7. Libreoffice portable, with the file with underscores, perfectly works!

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Win-7 vs Win-7

So, what is the difference between the two systems, this new Win-7 PC and the other Win-7 mentioned in your original post?

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
I don't know. If you are able

I don't know. If you are able to suggest me something, I will checked.
However, I installed libreoffice portable on another pc with windows 8.1 and libreoffice doesn't start. In this libreoffice's version, the files name are with underscores

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Check and Compare 'System32' Folders

Okay, after taking a closer look at my own Windows system, I can now expand on my question, asking that you check your "System32" folders to see, if you have there any api DLLs with the "crt" segment, like: "api-ms-win-crt-"?

On my unupdated Win-8.1 system, I have none of those. Though, I have 263 other dll files of the "api-ms-win-..." variety.

*
Check and Compare > C:\Windows\System32\

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
In the win 7's folder C:

In the win 7's folder C:\Windows\System32 where libreoffice portable starts, there are the DLLs with the name with dashes.
In win 8.1's folder C:\Windows\System32, where Libreoffice portable doesn't start, there aren't these files

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Updated vs Not Updated

So, here is your answer. What I've gathered from the Internet, versions earlier than Win-10 need proper updates to have them.

But if they are missing, LibreOffice should still launch because it includes them in its own package.

Also, apps like Firefox, and Thunderbird, include them in their packages. On the other hand app like the new browser Falkon, does not. You can use it as an additional test to check your systems.

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
Ok. Now we will wait a new

Ok. Now we will wait a new release of libreoffice portable which will correct the error

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
I can wait ...

Nothing critical for me, I can wait even for the next version release.

But, regarding this faulty one, thanks to your early reporting, I could skip installing it as my default copy, plus, which is most important, I've learned new things in the process of investigating the matter.

Thx,

MiK

capcla
Offline
Last seen: 2 months 3 days ago
Joined: 2016-10-13 17:00
Yes, but there are many

Yes, but there are many people who will have this problem and they don't know how solve it.
Thank you for your capacity of investigation

John T. Haller
John T. Haller's picture
Online
Last seen: 36 min 30 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Fixed in LibreOffice Portable 6.0.5 Rev 3

This is fixed in 6.0.5 Rev 3. The <1MB patch is being automatically pushed to platform users now. Non-platform users can manually download it from the LibreOffice Portable homepage. A full installer download of Rev 3 is being compiled now and will be sent to The Document Foundation today. It will take ~2-14 days for them to post it.

I inadvertently used an old/broken template for this Fresh build that had underscores instead of dashes in the filenames. The files are oddly stored with underscores inside of the Visual C runtime installer but renamed on extraction. My apologies for the inconvenience.

Sometimes, the impossible can become possible, if you're awesome!

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Patch - No Fix

No fix for me ...

Applied the patch, still no go, found out that the new files are written to "...\LibreOfficePortable\App\libreoffice\" folder instead of its subfolder "...\LibreOfficePortable\App\libreoffice\program\".

*
Patch:
LibreOfficePortable_6.0.5_Rev_2_UpdateFrom_6.0.5_ONLY.paf.exe

John T. Haller
John T. Haller's picture
Online
Last seen: 36 min 30 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Rev 3

Apologies, it's been a long week. It's been fixed and posted as Rev 3.

UPDATE: Full installers built for 6.0.5 Rev 3 and sent to The Document Foundation for publishing...

Sometimes, the impossible can become possible, if you're awesome!

MiK
Offline
Last seen: 1 month 1 week ago
Joined: 2008-08-14 18:25
Patch Rev 3 - Fix Confirmed

It's all right, no apologies necessary, at least for me, as I stated previously it is a no critical issue for me, and it was easy to remedy once I knew what was going on. But, since only two users reported it, including me, I felt obliged to test the fix, and provide feedback.

The patch Rev 3 obviously works, I could tell it's been fixed just opening in 7-Zip, but have run fresh installations test anyway.

*
Patch:
LibreOfficePortable_6.0.5_Rev_3_UpdateFrom_6.0.5_ONLY.paf.exe

John T. Haller
John T. Haller's picture
Online
Last seen: 36 min 30 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Full Release Done

The full Rev 3 packages are now up in addition to the Rev 3 patch which is still available for existing 6.0.5 users.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments