64 Bit Standalone on Windows 11 won't load

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm
Location: Winnipeg, Canada

64 Bit Standalone on Windows 11 won't load

Post by raugert » Sat Oct 22, 2022 3:16 pm

I have had a few reports that my Windows 64 bit standalone app doesn't launch on Windows 11. However, the 32 bit standalone works ok. Is there something I'm missing ? I couldn't find anything in the standalone settings... or is there something the user needs to do in Windows 11 ?

thanks for any suggestions,
Richard
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by jacque » Sun Oct 23, 2022 5:39 pm

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by FourthWorld » Sun Oct 23, 2022 8:56 pm

Windows = DLL Hell. :)

As always, keep drivers up to date with the latest from the vendor and many issues go away.

As Dr Raney used to say, "This engine is very good at exposing bugs in device drivers." That would seem arrogant were it not so often proven true.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm
Location: Winnipeg, Canada

Re: 64 Bit Standalone on Windows 11 won't load

Post by raugert » Tue Oct 25, 2022 4:28 pm

Thanks Jacque and ForthWorld for the suggestions.

I read the bug report but it seems to be related to printers. Although my app doesn't have any printing features, I suppose it's possible that it has something to do with it. After all it is Windows :?

The weird thing is that the 32 bit app works fine but the 64 bit version doesn't ? I would have thought it would be the other way around..
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by jacque » Tue Oct 25, 2022 5:01 pm

Since the app crashes on startup, I'd guess LC loads print drivers as part of the launch process in case they're needed. For my app, the crash happens even if the user has no printer selected at all. Like you, not all users are affected but the workaround has worked in all cases so far.

Maybe one of the affected drivers isn't completely compatible with 64-bit?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: 64 Bit Standalone on Windows 11 won't load

Post by rmuzzini » Fri Oct 28, 2022 11:17 am

hi all. let me add a quick note:
as i wrote @ https://quality.livecode.com/show_bug.cgi?id=23659, i did a test on a.brand.new.pc. running win10 (windows 10, not 11). latest version available.

i connected it to my network, i opened the printer settings, it smelled my printer and set it automatically, adding the ms drivers. i don't know if that's the normal behavior in windows world, but it happened.
then i run my "test" app (single card app, with a single "hello!" button).
the bug prevented the app from starting.
i removed the printer.
i run again my app, successfully.

now, if the "workaround" for this is to tell my customers "hey, if you really wish to use my software, please do not install your printers the way microsoft does automatically. instead, remove them, download original drivers, install those one. or live without printing, you'll help to save trees"… well, if this is the suggested "workaround", once again i've got the feeling LC world is away a little from real life.
i don't know.
maybe it's me.

mrcoollion
Posts: 720
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: 64 Bit Standalone on Windows 11 won't load

Post by mrcoollion » Fri Oct 28, 2022 4:11 pm

Maybe the following fix works?!

In Settings, go to Printer properties -> Device Settings
and change “spooling@host from “auto” to “enabled”
Hope this helps!

For finding the settings see: https://oip.manual.canon/USRMA-0255-zz- ... 20Host%5D.

Regards,

Paul

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by jacque » Fri Oct 28, 2022 6:08 pm

We do have to tell our affected customers to change their printer driver settings, but since it doesn't happen on every PC it isn't a frequent issue. The LC team does want to fix this problem but they can't reproduce it in order to see what's happening. At first they thought it was limited to one vendor but it's been appearing on other machines occasionally. If you could add your machine model and other tech specs to the bug report it may help.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: 64 Bit Standalone on Windows 11 won't load

Post by rmuzzini » Mon Oct 31, 2022 9:19 am

jacque wrote:
Fri Oct 28, 2022 6:08 pm
If you could add your machine model and other tech specs to the bug report it may help.
hi.
i did it. more than 1 month ago. see https://quality.livecode.com/show_bug.cgi?id=23659#c29

regards.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by jacque » Mon Oct 31, 2022 6:14 pm

Great reports. Now I have two different names for you. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm
Location: Winnipeg, Canada

Re: 64 Bit Standalone on Windows 11 won't load

Post by raugert » Wed Nov 02, 2022 4:07 pm

The latest report from a user indicated that both the 32 and 64 bit apps worked in Window 10. But upon a fresh install of Windows 11 Pro, the 64 bit version no longer works. The 32 bit version is OK. He has no printers installed !

Maybe something else is going on in Windows 11, perhaps another setting somewhere. I'm a Mac guy so Windows is not my strong suit.. :wink:
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: 64 Bit Standalone on Windows 11 won't load

Post by jacque » Wed Nov 02, 2022 5:03 pm

The problem occurs even with no printers installed, just the existence of the MS drivers is the cause. They need to be deleted or replaced with the manufacturer's driver.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

rmuzzini
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Mon Oct 08, 2012 11:30 am

Re: 64 Bit Standalone on Windows 11 won't load

Post by rmuzzini » Wed Nov 02, 2022 5:26 pm

jacque wrote:
Wed Nov 02, 2022 5:03 pm
The problem occurs even with no printers installed, just the existence of the MS drivers is the cause. They need to be deleted or replaced with the manufacturer's driver.
not in my tests. removing the printer was enough.
i did the trick 3 or 4 times: install printer->run app -> failure ->remove printer -> run app -> good -> install printer->run app-> failure and so on ad libitum. i did not uninstall anything. i had to simply add/remove the printer, letting ms do that automatically regarding the drivers.

time to call hercule poirot. or even insp. clouseau.
regards.

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1209
Joined: Thu Apr 11, 2013 11:27 am

Re: 64 Bit Standalone on Windows 11 won't load

Post by LCMark » Thu Nov 03, 2022 9:31 am

rmuzzini wrote:
Wed Nov 02, 2022 5:26 pm
not in my tests. removing the printer was enough.
i did the trick 3 or 4 times: install printer->run app -> failure ->remove printer -> run app -> good -> install printer->run app-> failure and so on ad libitum. i did not uninstall anything. i had to simply add/remove the printer, letting ms do that automatically regarding the drivers.

time to call hercule poirot. or even insp. clouseau.
regards.
@rmuzzini : There is a command line program attached to https://quality.livecode.com/show_bug.cgi?id=23659 - https://quality.livecode.com/attachment.cgi?id=11184. SInce you seem to be able to reproduce the problem on your machine could you add the printer(s) which cause the problem, then run that command from the command prompt and see if it crashes - posting whatever output it generates into the console to the bug report.

The program does nothing special - it just does exactly the same sequence of Windows API calls which the engine does when it initializes printing (specifically it looks up the default printer and fetches its settings).

As it stands, we have been unable to reproduce the problem - despite trying numerous configurations which makes it almost impossible to figure out *why* the crash on startup occurs.

That being said - there will be a patch in the next 9.6.9 build (rc-2) which attempts to ignore any exceptions which occur when initializing the printer - I'm not sure this will actually work or not, but in the absence of being able to determine the exact cause its worth a try.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”