Project

General

Profile

Windows sandbox

Added by curious Cretin 8 months ago

Hi,

I used to start AdiIRC from within the windows sandbox.
Yesterday I updated Windows to 22H2 Build 19045.3324.
Now, when I try to start AdiIRC from within the sandbox, it immediately quits without any message.

Any Idea what could be reason for that?

Thank you!


Replies (15)

RE: Windows sandbox - Added by Per Amundsen 8 months ago

Maybe check your windows event viewer for clues.

Does it work if you download the old beta from https://adiirc.com/download.php?b=true ? (just replace AdiIRC.exe with one from there)

RE: Windows sandbox - Added by curious Cretin 8 months ago

I tested following versions:
AdiIRC64_45_2023-08-18
AdiIRC64_45_2022-02-20

Both show the same problem. They quit immediately after startup.

I started them via cmd, to capture error messages in the prompt, but: nothing.

The eventlog within the windows-sandbox is disabled.

Can this be the result of a missing .Net runtime? Does it need a specific version?

RE: Windows sandbox - Added by Per Amundsen 8 months ago

It needs .NET 4.5, but it also has dependencies on various windows components, not sure if that could be related.

RE: Windows sandbox - Added by curious Cretin 8 months ago

Is there a startup parameter to generate a debug logfile?

RE: Windows sandbox - Added by Per Amundsen 8 months ago

You can create a debug.txt file in your AdiIRC config folder, all .NET exceptions are saved there, but if it's a hard windows crash, it can't be logged since it happens outside .NET.

RE: Windows sandbox - Added by curious Cretin 8 months ago

I tried that, but: no luck. The file stays empty.
Seems to be something outside .NET indeed.

Have you tried it in Windows-Sandbox?
Can you reproduce the bug?

RE: Windows sandbox - Added by Per Amundsen 8 months ago

I have not used the windows sandbox since It needs hyper-v enabled, but I am using a different hypervisor for various VMs.

Have you tried earlier versions of AdiIRC?

One cause of AdiIRC not starting could be the sandbox doesn't allow AdiIRC to unpack it's API files. You could try manually adding https://adiirc.com/AdiIRCAPIv2.dll and https://adiirc.com/AdiIRCAPI.dll to the config folder. Just an idea.

RE: Windows sandbox - Added by Per Amundsen 8 months ago

Also make sure you are using 32 bit on 32 bit windows and 64 bit on 64 bit windows, not sure what bits the sandbox runs it. You could also try the "ARM" build on the download page, it does either 32/64 bit automatically.

RE: Windows sandbox - Added by curious Cretin 8 months ago

Interesting...
I tried the ARM Version in the sandbox and it threw a warning:

Is it possible, that some part of the software still needs .Net 3.5?

RE: Windows sandbox - Added by Per Amundsen 8 months ago

It's compiled against 4.5, can't really think of why it would want to install 3.5. Specially since the only difference between that version and the 32 and 64 bit, is the "ANY CPU" target instead of 32 or 64. Very strange indeed.

RE: Windows sandbox - Added by Per Amundsen 8 months ago

Disregard that, just looked again, it's compiled against .net 2.0, probably because of some limitations on windows ARM at the time. My bad.

RE: Windows sandbox - Added by curious Cretin 8 months ago

ok.

Well, I think i got it:
I tried to start Powershell in the Sandbox, but that behaves exactly like AdiIRC. It seems to start and immediatly quits.
Then I compiled a simple .Net 4.5 Winforms-Hello-World in x86, x64 and Any and tested it in the sandbox.
And suprise: It worked, but only as x86!
Then I tested the 32bit version of AdiIRC and it worked to.

Until last week I definetly used AdiIRC64_3.9.
I don't know what changed on my system.
I will just use 32bit from now on.

Thank you for your work!!!

RE: Windows sandbox - Added by Per Amundsen 8 months ago

That's really interesting, does native 64 bit programs work?

Wonder if the sandbox is accidentally creating a 32 bit hyper-v vm.

Glad you figured it out, 32 bit AdiIRC is perfectly fine.

RE: Windows sandbox - Added by curious Cretin 8 months ago

Yes. Native Apps like Notepade++ 64bit work.
I try to play around with it in next days to get some answers...

RE: Windows sandbox - Added by Per Amundsen 8 months ago

Very interesting, thanks for looking into this.

    (1-15/15)