Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Windows Installer fails miserably #228

Open
djarvis opened this issue Dec 11, 2024 · 12 comments
Open

Latest Windows Installer fails miserably #228

djarvis opened this issue Dec 11, 2024 · 12 comments
Assignees

Comments

@djarvis
Copy link

djarvis commented Dec 11, 2024

Clean machine with .NET 9 installed.

Ran CodeProject.AI-Server_2.9.5_win_x64.exe and went through the wizard.

No errors appear yet service is not installed and this appears in the event viewer:

Faulting application name: CodeProject.AI.Server.exe, version: 2.7.0.0, time stamp: 0x67200000
Faulting module name: coreclr.dll, version: 9.0.24.52809, time stamp: 0x672049fc
Exception code: 0xc0000602
Fault offset: 0x000000000032a356
Faulting process id: 0x24d8
Faulting application start time: 0x01db4bebe97c51bb
Faulting application path: C:\Program Files\CodeProject\AI\server\CodeProject.AI.Server.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0\coreclr.dll
Report Id: f1bc4a62-e54b-4189-a072-449f334df817
Faulting package full name:
Faulting package-relative application ID:

Running setup.bat in C:\program files\CodeProject\AI yields:

         _Installing CodeProject.AI Analysis Module

======================================================================

               CodeProject.AI Installer

======================================================================

250.3Gb of 953Gb available on (No label) (Windows 10 x86_64 - windows)

General CodeProject.AI setup

Checking for VC++ Redist...v14 Present.
Creating Directories...done

GPU support

CUDA Present...Yes (CUDA 12.3, cuDNN 8.5, CUDA Toolkit: false)
Updating path to include cuDNN
ROCm Present...No
Checking for .NET 9.0...Checking runtimes...All good. Found .NET aspnetcore 9
Cannot find file "C:\Program Files\CodeProject\AI\modules\AI\modulesettings.json"

Reading settings.......done
Installing module (Internal)

This module cannot be installed on this system

Setup complete

Total setup time 00:00:01.98_

@djarvis
Copy link
Author

djarvis commented Dec 11, 2024

Version 2.8.0 works fine.

Some wonky dependency issue with 2.9.5:

Faulting application name: CodeProject.AI.Server.exe, version: 2.7.0.0, time stamp: 0x67200000
Faulting module name: coreclr.dll, version: 9.0.24.52809, time stamp: 0x672049fc
Exception code: 0xc0000602
Fault offset: 0x000000000032a356
Faulting process id: 0x1a0c
Faulting application start time: 0x01db4bef376ad88e
Faulting application path: C:\Program Files\CodeProject\AI\server\CodeProject.AI.Server.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0\coreclr.dll

@ChrisMaunder
Copy link
Contributor

What is your:

  • OS
  • architecture (arm64 or x64)
  • environment (native OS install or using a VM)

@djarvis
Copy link
Author

djarvis commented Dec 11, 2024

Windows Server 2022 Standard
x64: Processor 13th Gen Intel(R) Core(TM) i5-13500, 2500 Mhz, 14 Core(s), 20 Logical Processor(s)
Native OS install.

@ChrisMaunder
Copy link
Contributor

This looks like either an oddity with Windows Server vs Windows (consumer) or a permissions issue. We only support (and have only tested on) the consumer versions of windows, not the server version. My only suggestion is to check the event viewer to see if that sheds any light.

@djarvis
Copy link
Author

djarvis commented Dec 11, 2024

Probably not a permissions issue and probably not an OS-specific oddity as all prior versions work just fine. Maybe some new .NET 9 thing? I can try to pull down the source and build and run in debug and see what happens. Event viewer just shows what I pasted above:

Faulting application name: CodeProject.AI.Server.exe, version: 2.7.0.0, time stamp: 0x67200000
Faulting module name: coreclr.dll, version: 9.0.24.52809, time stamp: 0x672049fc
Exception code: 0xc0000602
Fault offset: 0x000000000032a356
Faulting process id: 0x1a0c
Faulting application start time: 0x01db4bef376ad88e
Faulting application path: C:\Program Files\CodeProject\AI\server\CodeProject.AI.Server.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.0\coreclr.dll

@VorlonCD
Copy link

Try uninstalling, deleting C:\Program Files\CodeProject before re-installing.

If still failing any thing of interest in here?

C:\Program Files\CodeProject\AI\logs\*.txt
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\install.log
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5Net\install.log

Maybe uninstall/reinstall .net 9 and reboot?

If you run dotnet --list-runtimes at a command prompt, you should see these, and they should all be the same build:

Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

The last one might not be needed but I always keep all three installed and at the exact same build.

Maybe disable antivirus?

Might get something else out of analyzing this file with WinDbg:
C:\Windows\System32\config\systemprofile\AppData\Local\CrashDumps\CodeProject.AI.Server.exe.*.dmp

@BuxtonCalvin
Copy link

I had the same installation problem and could not get the service to start. Using MS Windows Pro 11 latest updates and patches.

The solution was to delete the old AI sub-directory and all contents. Then manually install MS net (https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-9.0.101-windows-x64-installer). Reinstall code project 2.9.5, and the service then came up in my browser.

@randellhodges
Copy link

I have installed various versions, up to 2.6.5 on Windows Server 2022 (w/desktop ui) and haven't had any issue. Did you do a core install or install with a desktop? Right clicking and running as administrator? Maybe something broke after 2.6.5?

@ChrisMaunder
Copy link
Contributor

@BuxtonCalvin When you installed the latest, did you check the "delete old install and all data" checkbox?

@wimmme
Copy link

wimmme commented Dec 19, 2024

Hi, just to chime in. I am running CPAI for some years now, from almost the beginning actually.
It's running on a Windows Server 2022, and the installer almost never worked correctly (especially the modules part).
This one does ! (I did check the "delete old install and all data" option) .Great work !

Server version: 2.9.5 System: Windows Operating System: Windows (Windows 10 Redstone) CPUs: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (Intel) 1 CPU x 8 cores. 16 logical processors (x64) GPU (Primary): NVIDIA GeForce GT 1030 (2 GiB) (NVIDIA) Driver: 560.76, CUDA: 12.6.20 (up to: 12.6), Compute: 6.1, cuDNN: 8.6 System RAM: 64 GiB Platform: Windows BuildConfig: Release Execution Env: Native Runtime Env: Production Runtimes installed: .NET runtime: 9.0.0 .NET SDK: Not found Default Python: 3.12.8 Go: Not found NodeJS: 22.12.0 Rust: Not found Video adapter info: NVIDIA GeForce GT 1030: Driver Version 32.0.15.6076 Video Processor NVIDIA GeForce GT 1030 System GPU info: GPU 3D Usage 31% GPU RAM Usage 1 GiB Global Environment variables: CPAI_APPROOTPATH = <root> CPAI_PORT = 32168

@BuxtonCalvin
Copy link

@BuxtonCalvin When you installed the latest, did you check the "delete old install and all data" checkbox?

Yes. I installed with the checkbox checked. I also deleted the install from the Windows Apps menu. I went back and forth between installing working versions (2.8.0) and non-working (2.9.5) before applying the fix as per my note above. In my case, I'm pretty sure this was a dotnet issue.

@djarvis
Copy link
Author

djarvis commented Dec 19, 2024

I have not had the time unfortunately to experiment with the latest version. I have the 2.8.0 working and need my security camera system up and running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants