http://bugs.winehq.org/show_bug.cgi?id=11818
Summary: matlab r16 / 2006b / 7.3.0 hangs on startup with X in 16bpp mode Product: Wine Version: 0.9.56. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: a.hurst@shef.ac.uk
Matlab 7.3.0, aka matlab r16, aka matlab 2006b, hangs on starting up with X desktop in 16 bpp mode.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #1 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-02 13:25:06 --- Created an attachment (id=11081) --> (http://bugs.winehq.org/attachment.cgi?id=11081) +snoop output
beware - uncompresses to ~20MB
the bug being in msvcrt is my best guess, since matlab's jvm is built on msvcrt.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #2 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-02 13:28:38 --- As with bug 11019, there is a call to awt._Java_sun_awt_Win32GraphicsEnvironment_initDisplay@8, with no subsequent RET.
Up until commit 5461d505d727411f8de3f7846c5d1e8ed6343247, where 11019 appears, this version of matlab works fine with X in 24bpp mode.
http://bugs.winehq.org/show_bug.cgi?id=11818
Andrew Charles Hurst a.hurst@shef.ac.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #3 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-02 15:30:44 --- regression test underway.. worked in 0.9.40
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #4 from Lei Zhang thestig@google.com 2008-03-02 23:49:00 --- Is this only a problem in 16 bpp? Does Matlab work at 24 or 32 bpp?
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #5 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-03 07:44:31 --- It works with 24bpp X up until commit 5461d505d727411f8de3f7846c5d1e8ed6343247
http://bugs.winehq.org/show_bug.cgi?id=11818
Andrew Charles Hurst a.hurst@shef.ac.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jwhite@codeweavers.com Component|msvcrt |gdi32
--- Comment #6 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-03 08:54:42 --- Bug is caused by commit fa239446951f5fb5b2377e0cd99901c74bd838a5
http://source.winehq.org/git/wine.git/?a=commitdiff;h=fa239446951f5fb5b2377e...
adding Jeremy CC.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #7 from Saulius K. saulius2@gmail.com 2008-03-04 00:35:58 --- Andrew, have you tried getting redistributable msvcrt.dll into your system and overriding it in Wine so native version gets loaded instead of builtin one?
That should verify your hypothesis about msvcrt bug.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #8 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-04 06:29:42 --- Using native msvcrt.dll doesn't fix the problem, so I think my guess was wrong. Since the commit where the bug first appears is in gdi32, have changed component field to that.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #9 from Jeremy White jwhite@codeweavers.com 2008-03-04 09:06:55 --- So the good news is that I suspect this bug is tractable; there must be some misuse of or around a call to GetDIBits.
The bad news is that I feel fairly certain that the suspect patch is correct, and all it's done is trigger the bug. That is, I think it mostly likely that there is another bug, and that the patch remains correct.
Sadly, I don't have Matlab or the bandwidth to pursue this myself. I would suggest that a fairly easy investigation to see exactly how GetDIBbits is being called is in order.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #10 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-14 10:33:10 --- This is fixed in current GIT. Finding the patch wot dun it... (not sure if it's in 0.9.57)
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #11 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-03-16 07:30:56 --- I'm sorry folks, comment 10 was a false alarm: make install hadn't overwritten my hacked gdi32.dll.so The bug still exists (0.9.57)
http://bugs.winehq.org/show_bug.cgi?id=11818
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #12 from Dan Kegel dank@kegel.com 2008-04-18 14:20:34 --- Please test again. Bug 7477, which was another 16 bit GetDIBits problem, is fixed as of wine-0.9.60.
http://bugs.winehq.org/show_bug.cgi?id=11818
Andrew Charles Hurst a.hurst@shef.ac.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #13 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-04-20 14:39:24 --- Yes! I confirm: fixed in 0.9.60.
Dan, do you know which commit did it?
Thanks folks.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #14 from Dan Kegel dank@kegel.com 2008-04-20 14:49:14 --- http://www.winehq.org/pipermail/wine-cvs/2008-April/042639.html, I think.
http://bugs.winehq.org/show_bug.cgi?id=11818
--- Comment #15 from Andrew Charles Hurst a.hurst@shef.ac.uk 2008-04-20 18:26:39 --- Yes, that was the one. Thanks Alexandre!
http://source.winehq.org/git/wine.git/?a=commit;h=99892d6bae31a34c7972b86f8e...
http://bugs.winehq.org/show_bug.cgi?id=11818
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2008-05-02 12:38:09 --- Closing bugs fixed in 0.9.61.