Application Error

Questions about Wine on Linux
fargodwe

Re: Application Error

Post by fargodwe » Fri Dec 04, 2020 6:16 pm

I searched the net for the error and basically can't find anything referencing error messages directly from the tubecad1 executable. Even glassware's site has nothing on error messages. I sent another email a few minutes ago to the only email address I can find: sales@glass-ware.com with a picture of the error box, a request for a iist of error messages, what causes them and what the solutions are. I suspect none will be forthcoming since the program is so old I doubt there is even a maintainer. I feel what they do now is sell the old software and then questions/solutions for design of vacuum tube based circuits - especially for the audiophile - are discussed in the Journal.

There would seem to be a hint in the error message. It says "error reading TestReportFiler.Orientation" and "Operaton not supported on the selected printer". I interpret as saying it is trying to be sure the printer will support program-selection of the page orientation. As far as I know mine supports that, but I suspect for how old the program is it might not be using the correct command/syntax to "talk" to the printer or printer driver to ask if that is supported. The program shows my printer, which like most anymore, is wireless. It's aware of the printer that's why I think there is a problem in determining, perhaps from the printer driver, what the capabilities of the printer are.

If only I could get the source...

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Sat Dec 05, 2020 6:51 am

I think it is not worth waiting for an answer from glass-ware or writing again. John is the tube guru in the USA. He receives between 1000 and 1500 emails every day ...

fargodwe

Re: Application Error

Post by fargodwe » Sat Dec 05, 2020 7:42 am

Ok. Sorry we aren't able to resolve this. I would have no idea why the message is getting generated.

fargodwe

Re: Application Error

Post by fargodwe » Tue Dec 22, 2020 1:12 am

Got an email from John today. He said that the message is there because there is no default Windows printer. From what I read on the net about this wine takes the printers from linux and uses whatever is set as the default there if it using cups. For other it is supposed to use some kind of config file for lpr. I don't know what that config file would be or what it should like. My printer is set as default, and I *think* linux is using cups to work with it. In linux I set the printer to the default for the system but the program still gets the error.

I wanted to let you know about this in case you want to "play" with it some more. I will have to do some more searching and perhaps ask on the forum for some on default printer, etc.. I still think, considering TubeCAD1.EXE knows my printer is there, and that it seems to be implying the printer is not set for automatic rotation selection. At his point I won't bother John again since he did finally reply.

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Tue Dec 22, 2020 8:12 am

Thank you very much!

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Sat Jul 24, 2021 2:41 am

In wine 6.13 this app couldn't work the way we talked about. I tried also a new installation, but the program now always starts with this error message:

" is not a valid floating point value.

After that the hint of a big error appears... and the programm shuts down.

jkfloris
Level 10
Level 10
Posts: 1606
Joined: Thu Aug 14, 2014 10:10 am

Re: Application Error

Post by jkfloris » Sat Jul 24, 2021 10:34 am

Do you use a 32-bit Wineprefix?
Use winetricks to install comctl32
Set the LANG environment variable to C

Code: Select all

LANG=C wine TUBECAD1.EXE

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Sat Jul 24, 2021 12:04 pm

jkfloris wrote:
Sat Jul 24, 2021 10:34 am
Do you use a 32-bit Wineprefix?
Use winetricks to install comctl32
Set the LANG environment variable to C

Code: Select all

LANG=C wine TUBECAD1.EXE
When I do this, I get the same error message and a window with this message:

Code: Select all

0174:fixme:toolhelp:InterruptRegister16 (0000, 02DF00BA), stub.
0174:err:dc:CreateDCW no driver found for L""
wine: Unhandled page fault on read access to 00000011 at address 6640ADC9 (thread 0174), starting debugger...
Unhandled exception: page fault on read access to 0x00000011 in 32-bit code (0x6
640adc9).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:6640adc9 ESP:0104f4c0 EBP:00000000 EFLAGS:00010282(  R- --  I S - - - )
 EAX:fffffffe EBX:00a3a673 ECX:0000000f EDX:00000001
 ESI:0104f684 EDI:00a3a674
Stack dump:
0x0104f4c0:  00000000 0104f544 0104f4e8 7b027a51
0x0104f4d0:  0104f538 00000000 00000000 000000f1
0x0104f4e0:  6ca87658 0104f500 00000013 000000c4
0x0104f4f0:  0104f684 00a3a673 00000001 6640b6d3
0x0104f500:  00000000 00000000 0104f544 6ca87f70
0x0104f510:  0104f7a8 0104f530 0104f588 7bc27818
Backtrace:
=>0 0x6640adc9 (0x00000000)
0x6640adc9: cmpw        $64,0x4(%ecx,%eax,1)
Modules:
Module  Address                 Debug info      Name (26 modules)
PE        350000-  4b3000       Deferred        comctl32
PE        bb0000-  ce1000       Deferred        ole32
PE      61740000-61782000       Deferred        advapi32
PE      62fc0000-6304f000       Deferred        rpcrt4
PE      63480000-6348c000       Deferred        version
PE      63bc0000-63bd9000       Deferred        shcore
PE      64a40000-64a95000       Deferred        shlwapi
PE      68500000-6855b000       Deferred        combase
PE      68700000-6872f000       Deferred        uxtheme
PE      6a040000-6a062000       Deferred        msacm32
PE      6a400000-6a4bc000       Deferred        winmm
PE      6bc00000-6bc2a000       Deferred        sechost
PE      6bcc0000-6bd40000       Deferred        setupapi
PE      6c9c0000-6cc53000       Deferred        gdi32
PE      6ed00000-6ef24000       Deferred        user32
PE      70940000-70960000       Deferred        mpr
PE      70b40000-70c1f000       Deferred        ucrtbase
PE      70d00000-70e0a000       Deferred        comdlg32
PE      71200000-7121b000       Deferred        imm32
PE      7b000000-7b0e8000       Deferred        kernelbase
PE      7b600000-7b81b000       Deferred        kernel32
PE      7bc00000-7bc9c000       Deferred        ntdll
PE      7e210000-7e214000       Deferred        winex11
PE      7e9a0000-7e9a4000       Deferred        winevdm
PE      f7040000-f7917000       Deferred        shell32
PE      f7b30000-f7b3b000       Deferred        winspool
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
        0000003c    0
        00000040    0
        0000004c    0
        00000068    0
        000000a0    0
        000000bc    0
        000000d0    0
00000044 winedevice.exe
        00000048    0
        00000054    0
        00000058    0
        0000005c    0
00000060 winedevice.exe
        00000064    0
        0000006c    0
        00000070    0
        0000007c    0
        00000080    0
        00000084    0
00000074 explorer.exe
        00000078    0
        00000094    0
        00000098    0
0000008c plugplay.exe
        00000090    0
        000000a8    0
        000000ac    0
        000000b0    0
000000b4 svchost.exe
        000000b8    0
        000000c0    0
        000000c4    0
000000c8 rpcss.exe
        000000cc    0
        000000d4    0
        000000d8    0
        000000dc    0
        000000e0    0
        000000e4    0
00000138 winevdm.exe
        0000013c    0
        00000140    0
        0000014c    0
00000144 winedbg.exe
        00000148    0
        00000150    0
0000015c start.exe
        00000160    0
00000164 conhost.exe
        00000168    0
0000016c (D) C:\windows\system32\winevdm.exe
        00000170    0
        00000174    0 <==
        00000180    0
System information:
    Wine build: wine-6.13
    Platform: i386
    Version: Windows XP
    Host system: Linux
    Host version: 5.4.134-1-MANJARO

jkfloris
Level 10
Level 10
Posts: 1606
Joined: Thu Aug 14, 2014 10:10 am

Re: Application Error

Post by jkfloris » Sat Jul 24, 2021 5:16 pm

Did you install the program in a clean wineprefix? Or are there other programs/ winetricks installed?

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Sat Jul 24, 2021 11:48 pm

I did it in a new clean wineprefix.

jkfloris
Level 10
Level 10
Posts: 1606
Joined: Thu Aug 14, 2014 10:10 am

Re: Application Error

Post by jkfloris » Sun Jul 25, 2021 6:56 am

Unfortunately, I cannot reproduce the error on Debian Sid.
This is what I get:

Code: Select all

WINEPREFIX=/home/jkfloris/wine-prefix/tubecad/ WINEDLLOVERRIDES=winemenubuilder.exe=d WINEDEBUG=+dc /opt/wine-devel/bin/wine TUBECAD1.EXE
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
00bc:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
00c4:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
00c4:trace:dc:CreateDCW (driver=L"DISPLAY", device=(null), output=(null)): returning 01010038
00c4:trace:dc:SetTextColor  hdc=01010038 color=0x00000000
00c4:trace:dc:SetBkColor hdc=01010038 color=0x00ffffff
00c4:trace:dc:SetVirtualResolution (01010038 0 0 0 0)
...
However, I do see that some changes have been made to gdi32 in Wine 6.13 (dc:CreateDCW is a part of this).
Please create a regression bug report on bugzilla.
Hopefully Wine's developers can help you.

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Sun Jul 25, 2021 7:59 am

Some days ago there must have been an update of Cups. Yesterday evening I activated it again. Now I did the debugging.log ... and now it "works" like before (at the beginning of this thread - with printer in the program):

The program starts again with the attached ApplicationError:
Application_Error.png
Application_Error.png (6.9 KiB) Viewed 3255 times
If I don't push the OK-Button, everything is going on to work. The debugging.log shows this:

Code: Select all

0168:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
016c:fixme:toolhelp:InterruptRegister16 (0000, 02DF00BA), stub.
016c:fixme:commdlg:PrintDlg16 custom setup hook 038709CB no longer supported
016c:fixme:toolhelp:InterruptUnRegister16 (0000), stub.
Any chance to get this work? Or should I bring it to bugzilla?

steve_johnson56
Level 2
Level 2
Posts: 11
Joined: Sun Jul 18, 2021 6:00 pm

Re: Application Error

Post by steve_johnson56 » Mon Jul 26, 2021 5:42 pm

Since this program was only $10 I downloaded and installed it in a 32-bit prefix,

It has something to do with the actual method they are using to call for printing functions. When you don't answer that prompt and move on to running the program, anytime you try to use "Report" and then the print or preview options even though the printer does show as the default printer you still get an error message with that same call in it. I know when programming some of the print functions you can call will do the preview and the print, and I suspect something in that is not able to work with the printer. It's possible it's trying to call some function that wine doesn't provide or provide correctly. Perhaps a missing dll though I don't know. I do know once you've used winetricks and installed the comctl32 it will run exactly the same without specifying the LANG=C so I don't know if at this point it is making any difference or not.

I saw in the earlier posts in this thread that the support said it was not finding a default windows printer, but it doesn't seem to be the case. Any of the print where you are allowed to select the printer shows my printer. What seems to be failing is this TestReportFiler.Orientation. I have tried searching the net for it *hoping* it might be some kind of function from a programming language to perhaps point towards an error, but nothing comes up. So perhaps it a function defined in the program itself.

I don't know if there is someway to do some sort of wine debug that would show what/where the call to that function is and what it might be showing is happening when wine is trying to do that. I wish I did know how to do that type of debugging.

I will try some more on my own for a while and if I find some type of explanation for that error I'll post back.

steve_johnson56
Level 2
Level 2
Posts: 11
Joined: Sun Jul 18, 2021 6:00 pm

Re: Application Error

Post by steve_johnson56 » Mon Jul 26, 2021 8:13 pm

I had an idea - I installed cups pdf so I could select PDF in the printer setup. It shows and lets me set it. Again it fails with that same error box.

So, it must not be anything to do with wine talking to my linux printer driver. This leaves me thinking it is probably an old way of doing things (the program is old) that is not supported in wine. Perhaps some kind of 16-bit call that doesn't work in wine even in a 32-bit prefix.

Indeed the console log shows an umimplemented 16-bit call as soon as you select "Report"

Code: Select all

0120:fixme:commdlg:PrintDlg16 custom setup hook 038709CB no longer supported
Based on that, I'm thinking this will never work in wine since the hook is not longer supported. Might have to use a virtual machine to get it to work.

TJFO
Level 2
Level 2
Posts: 18
Joined: Tue Nov 17, 2020 5:37 am

Re: Application Error

Post by TJFO » Mon Jul 26, 2021 11:42 pm

steve_johnson56 wrote:
Mon Jul 26, 2021 8:13 pm
Perhaps some kind of 16-bit call that doesn't work in wine even in a 32-bit prefix.

Indeed the console log shows an umimplemented 16-bit call as soon as you select "Report"

Code: Select all

0120:fixme:commdlg:PrintDlg16 custom setup hook 038709CB no longer supported
Based on that, I'm thinking this will never work in wine since the hook is not longer supported. Might have to use a virtual machine to get it to work.
Thank you very much for your efforts! I think, that is the point: It is a 16bit call...

Post Reply