Alfis icon indicating copy to clipboard operation
Alfis copied to clipboard

Can't start, missing library api-ms-win-shcore-scaling-l1-1-1.dll

Open xaozai opened this issue 4 years ago • 18 comments

01 error

vc_redist.x64.exe установлено. ОС: Win7x64

xaozai avatar Mar 29 '21 09:03 xaozai

There is a description of a similar problem here: https://github.com/ultralight-ux/ultralight/issues/50

xaozai avatar Mar 29 '21 09:03 xaozai

Thanks for the report and the link!

Please, test this build. alfis_v0.3.5_issue7_test.zip

Revertron avatar Mar 29 '21 09:03 Revertron

Now the message about the missing library is not displayed, but the application still does not start. It just ends silently.

Here is what is contained in the windows log:

Имя сбойного приложения: alfis_v0.3.5_issue7_test.exe, версия: 0.3.5.0, отметка времени: 0x60619bfa
Имя сбойного модуля: alfis_v0.3.5_issue7_test.exe, версия: 0.3.5.0, отметка времени 0x60619bfa
Код исключения: 0xc000001d
Смещение ошибки: 0x000000000011b68b
Идентификатор сбойного процесса: 0xd7c
Время запуска сбойного приложения: 0x01d7247def072ea8
Путь сбойного приложения: C:\alfis\alfis_v0.3.5_issue7_test.exe
Путь сбойного модуля: C:\alfis\alfis_v0.3.5_issue7_test.exe
Код отчета: 2d76f29e-9071-11eb-826e-7824af3a6abd

Нет доступа к файлу  по одной из следующих причин: либо возникли проблемы с сетевым подключением, диском с файлом или хранилищем с драйверами, установленными на этом компьютере, либо этот диск отсутствует. Программа Alternative Free Identity System будет закрыта из-за этой ошибки. 
 
Программа: Alternative Free Identity System 

Контейнер ошибки 3979108659, тип 528131967
Имя события: APPCRASH
Ответ: Нет данных
Идентификатор CAB: 0

Сигнатура проблемы:
P1: alfis_v0.3.5_issue7_test.exe
P2: 0.3.5.0
P3: 60619bfa
P4: alfis_v0.3.5_issue7_test.exe
P5: 0.3.5.0
P6: 60619bfa
P7: c000001d
P8: 000000000011b68b
P9: 
P10: 

Вложенные файлы:
C:\Users\user\AppData\Local\Temp\WERCAE0.tmp.WERInternalMetadata.xml

Эти файлы можно найти здесь:
C:\Users\user\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_alfis_v0.3.5_iss_94f43b542e2f5941426dad12691a9666f0971e_0eaadcab

Символ анализа: 
Повторный поиск решения: 0
Идентификатор отчета: 2d76f29e-9071-11eb-826e-7824af3a6abd
Состояние отчета: 0

xaozai avatar Mar 29 '21 09:03 xaozai

Although, the application ends with an error in the log, but the file blockchain.db appeared in the directory with the program. This is a SQLite database, there is a description of the structure, but there is no data.

xaozai avatar Mar 29 '21 09:03 xaozai

Although, the application ends with an error in the log, but the file blockchain.db appeared in the directory with the program. This is a SQLite database, there is a description of the structure, but there is no data.

Do you have alfis.toml in that directory as well? What if you try to run it with Administrator privileges?

Revertron avatar Mar 29 '21 12:03 Revertron

Yes, alfis.toml is in the program directory. I tried to run the application with administrator rights - this did not affect the behavior. The same appcrash.

xaozai avatar Mar 29 '21 12:03 xaozai

I overcame my laziness, installed mingw and tried to compile the binaries myself. At the very end, the following message was displayed:

...
Compiling alfis v0.3.5 (C:\Temp\alfis)
warning: panic message is not a string literal
  --> src\main.rs:49:26
   |
49 |         Err(f) => panic!(f.to_string()),
   |                          ^^^^^^^^^^^^^
   |
   = note: `#[warn(non_fmt_panic)]` on by default
   = note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
   |
49 |         Err(f) => panic!("{}", f.to_string()),
   |                          ^^^^^
help: or use std::panic::panic_any instead
   |
49 |         Err(f) => std::panic::panic_any(f.to_string()),
   |                   ^^^^^^^^^^^^^^^^^^^^^^

warning: 1 warning emitted

    Finished dev [optimized + debuginfo] target(s) in 10m 01s

The binary in the target\debug folder has been created, but it won't start. The same message is displayed as in my first post :)

xaozai avatar Mar 29 '21 12:03 xaozai

Okay, I've fixed a warning. But I don't really know what the second error is and how to fix it. The original one is understandable - those functions to work with HighDPI screens appeared only in Windows 8.1, so you have a very old OS.

Revertron avatar Mar 29 '21 13:03 Revertron

I understand that this OS is no longer supported, but I still work in it. I don't like Windows versions greather than 7 :) Just like many other users... And my main OS on my home PC is Linux...

Well, I managed to run Alfis on windows 7 x64.

git pull origin
cargo build

Now the build went through without any warnings.

Next, I downloaded api-ms-win-shcore-scaling-l1-1-1.dll from this link, copied it to the directory where the alfis binary is located and ... It started :)

So, if you do not intend to further investigate and support the work of Alfis on Windows 7, I think this issue can be closed.

xaozai avatar Mar 29 '21 13:03 xaozai

Maybe the simplest solution would be to add a flag for compiling without High DPI screens support )

xaozai avatar Mar 29 '21 14:03 xaozai

I can say that he uses non-MSDN Windows 7 image, something like "by Vasya" castrated system. In that case only clean install of system without such changes would fix issue. I saw such problems with i2pd users, the reason was always such systems with cut out components.

r4sas avatar Mar 29 '21 16:03 r4sas

I use Windows 7 Professional SP1. Nothing was specially cut out of it.

xaozai avatar Mar 29 '21 17:03 xaozai

Hah, so that functional available since 8.1? In that case only upgrading can help I think.

r4sas avatar Mar 30 '21 13:03 r4sas

Haha, found it: https://github.com/Revertron/Alfis/blob/cb8b207f341cab58d750c2d96f215c78314c1270/Cargo.toml#L41 https://github.com/Revertron/Alfis/blob/cb8b207f341cab58d750c2d96f215c78314c1270/src/main.rs#L33-L34

So maybe here any other solutions to work on old system without that API?

r4sas avatar Mar 30 '21 13:03 r4sas

@r4sas, that test build above is built without these lines :)

Revertron avatar Mar 30 '21 14:03 Revertron

2021-03-30 18:05:48,338 ←[36mINFO ←[0m [alfis::Main] Starting ALFIS 0.3.5
2021-03-30 18:05:48,338 ←[36mINFO ←[0m [alfis::Main] Loaded settings: Settings { origin: "", key_file: "", listen: "[::]:4244", public: false, peers: [], dns: Dns { listen: "0.0.0.0:53", threads: 20, forwarders: ["94.140.14.14:53", "94.140.15.15:53"] }, mining: Mining { threads: 0 } }
2021-03-30 18:05:48,338 ←[36mINFO ←[0m [alfis::Main] No blocks found in DB
2021-03-30 18:05:48,338 ←[35mDEBUG←[0m [alfis::dns::authority] Authority dir (zones) not found, skipping.
2021-03-30 18:05:48,351 ←[35mDEBUG←[0m [alfis::p2p::network] Started node listener on [::]:4244
2021-03-30 18:05:48,747 ←[35mDEBUG←[0m [alfis::web_ui] Command {"cmd":"loaded"}
2021-03-30 18:05:48,747 ←[36mINFO ←[0m [alfis::web_ui] Current blockchain height is 0
2021-03-30 18:05:50,316 ←[31mERROR←[0m [alfis::web_ui] Something wrong with webview, exiting

That's with default IE 11. Webview appears, JS error shown, and after that error in console at last line.

image

r4sas avatar Mar 30 '21 15:03 r4sas

Removing lines from https://github.com/Revertron/Alfis/issues/7#issuecomment-810277389 and latest fix from https://github.com/Revertron/Alfis/commit/11bc887fbb5051f6ad30c5d5f234185cf53ea914 make able to start Alfis on Win 7.

r4sas avatar Apr 01 '21 10:04 r4sas

With 0.3.8 api-ms-win-shcore-scaling-l1-1-1.dll still has to be manually applied.

xaozai avatar Apr 01 '21 11:04 xaozai