WineHQ
Bug Tracking Database – Bug 34463

 Bugzilla

 

Last modified: 2014-12-31 12:27:03 UTC  

thai2english loads ok but crashes on startup

Bug 34463 - thai2english loads ok but crashes on startup
thai2english loads ok but crashes on startup
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: oleaut32
1.6
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
http://www.thai2english.com/downloadi...
: download
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-09-06 08:19 UTC by rob
Modified: 2014-12-31 12:27 UTC (History)
2 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: 87c459ab2359784f238c30073b1adc0111876987
Distribution: ---
Staged patchset:


Attachments
bugreport and terminal output (20.50 KB, text/plain)
2013-09-06 08:19 UTC, rob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rob 2013-09-06 08:19:47 UTC
Created attachment 45883 [details]
bugreport and terminal output

Hi

I am trying to get a program thai2english to run with wine 1.6 (I have tried it with 1.7 but get the same rusults). I am not sure if anything can be done but would appreciate any help

Regards Rob genrobgen5@gmail.com

linux distr debian wheezy (recently updated)
gcc version 4.6.3 (Debian 4.6.3-14)
thai2english-setup-2.3.4233.exe    http://www.thai2english.com/downloading/thai2english-setup-2.3.4233.exe

started with wine '/root/.wine/drive_c/Program Files/Thai2English/thai2english.exe'

there was a windows type message saying t2e-dbsetup.exe encountered a serious problem and needs to close
Comment 1 Bruno Jesus 2013-09-06 08:37:02 UTC
Not critical, read http://bugs.winehq.org/page.cgi?id=fields.html#importance

Do not run wine as root.
Comment 2 Austin English 2013-09-06 13:29:00 UTC
Confirming. You'll need winetricks dotnet40 to get this far.

Looks OLE related:
fixme:ole:CoGetDefaultContext -1 {000001c6-0000-0000-c000-000000000046} 0x470d2f0 stub
fixme:ole:Context_QueryInterface interface not implemented {51372ae0-cae7-11cf-be81-00aa00a2fa25}
fixme:variant:VarDecRound semi-stub!

Unhandled Exception: System.OverflowException: Value was either too large or too small for a Decimal.
   at System.Decimal.FCallRound(Decimal& d, Int32 decimals)
   at T2EDbSetup.SetupForm.?()
   at T2EDbSetup.SetupForm.DoSetup()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

austin@aw25 ~ $ sha1sum thai2english-setup-2.3.4233.exe 
d0d90ebf59b82b3aaa3b5bd531e047e929eff199  thai2english-setup-2.3.4233.exe
austin@aw25 ~ $ du -h thai2english-setup-2.3.4233.exe 
58M	thai2english-setup-2.3.4233.exe
austin@aw25 ~ $ wine --version
wine-1.7.1-126-g3b16325
Comment 3 Andrew Eikum 2013-09-19 09:07:02 UTC
A patch implementing VarDecRound is in current wine-git and will be in Wine 1.7.3. Please retest with the patch and see if this is improved.
Comment 4 Austin English 2013-09-19 13:03:13 UTC
(In reply to comment #3)
> A patch implementing VarDecRound is in current wine-git and will be in Wine
> 1.7.3. Please retest with the patch and see if this is improved.

Yep, works fine in wine-1.7.2-78-gfb96cb5.
Comment 5 rob 2013-09-23 03:26:04 UTC
To Andrew Eikum <aeikum@codeweavers.com>
   Austin English <austinenglish@gmail.com> 

Hi

I tried the patch mplementing VarDecRound, unfortunately it does not seem to have helped with [Bug 34463] thai2english.

I think there is going to be more than one bug. The visable bug at the moment is CoGetContextToken apartment not initialised. I did a 

WINEDEBUG=+ole,+relay  wine '/root/.wine/drive_c/Program Files/Thai2English/thai2english.exe' 2>/log

followed by

grep 'CoGetContextToken'

to give

002c:Call ole32.CoGetContextToken(030be730) ret=791f525b
trace:ole:CoGetContextToken (0x30be730)
err:ole:CoGetContextToken apartment not initialised
002c:Ret  ole32.CoGetContextToken() retval=800401f0 ret=791f525b
002d:Call ole32.CoGetContextToken(045be790) ret=791f525b
trace:ole:CoGetContextToken (0x45be790)
002d:Ret  ole32.CoGetContextToken() retval=00000000 ret=791f525b
0030:Call ole32.CoGetContextToken(046be710) ret=791f525b
trace:ole:CoGetContextToken (0x46be710)
trace:ole:CoGetContextToken apt->context_token=0x188750
0030:Ret  ole32.CoGetContextToken() retval=00000000 ret=791f525b


retval=800401f0 refers to return CO_E_NOTINITIALIZED in CoGetContextToken in
wine-1.7.2/dlls/ole32/compobj.c so apartment_find_multi_threaded() fails.

I suspect the following bit of code fails

    LIST_FOR_EACH( cursor, &apts )
    {
        struct apartment *apt = LIST_ENTRY( cursor, struct apartment, entry );
        if (apt->multi_threaded)
        {
            result = apt;
            apartment_addref(result);
            break;
        }
    }

this piece of code looks for a struct apartment in &apts (or possibly it might create one if none exists)

&apts created by

static struct list apts = LIST_INIT( apts ); /* protected by csApartment */

however there does not appear to be any struct apartment or an appropriate pointer in struct list

I am not sure how the program is supposed to work but there is a problem here.

Rob
Comment 6 Bruno Jesus 2013-09-23 07:35:51 UTC
(In reply to comment #5)
> I tried the patch mplementing VarDecRound, unfortunately it does not seem to
> have helped with [Bug 34463] thai2english.
> 
> I think there is going to be more than one bug. The visable bug at the moment
> is CoGetContextToken apartment not initialised.

Hi, there is a general rule about one problem per bug. The original bug (VarDecRound not working) was fixed, now please open new bugs for other problems.

Also remember that console fixme messages are not always a problem, only open a new bug if the application really does not work.
Comment 7 Alexandre Julliard 2013-09-27 13:41:08 UTC
Closing bugs fixed in 1.7.3.
Comment 8 Alexandre Julliard 2013-11-15 13:39:53 UTC
Removing 1.6.x milestone from bugs included in 1.6.1.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers