directx app black screen 4 minutes then work, at every start

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

directx app black screen 4 minutes then work, at every start

Post by vincentvije »

Hello,

I know I need to search the forum, but I already used all information I found.
I installed a 32 bit wine prefix and a 64 one. Wine is 2.21.
I tried mono, and directly .net 4.5.2 from Microsoft.
I already installed all mesa and drivers packages for my intel chipset.

I need to make run a serious game : Domotique4 3D.
It starts well, and I choose the graphic mode, then the 3d screen star black.
Il the beginning, I thought it was not working at all.
Then I let it run and after 4 minutes the 3D image appears and the game run smooth and perfectly without a bug !
Every time I start it, it's the same.

The problem is that it's for yougn students and I can't get them wait 4 minutes each time they start it...

Please do someone have some idea ?

Thanks in advance for every suggestion !
Kind regards to the whole community,

Vincent
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: directx app black screen 4 minutes then work, at every s

Post by Bob Wya »

Hiya Vincent,

Please can you post the terminal output from starting your game.
See: WineHQ FAQ: 10.1.1 How can I get a debugging log (a.k.a. terminal output)?

Probably best to prefix this with:

Code: Select all

export WINEDEBUG=+wgl
to check your graphics setup isn't "falling over"!

If the log is >200 lines then please compress it with xz:

Code: Select all

xz -9e -z wine_log.txt
and attach it to a follow-up forum post (Upload attachment option - under the forum edit box).

If posting logs inline in a forum post - please use the forum Code:

Code: Select all

Code
tags (Code button about forum edit box)!!

Please also post the command you entered to launch the game (again with Code tags).

Ta
Bob
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

Re: directx app black screen 4 minutes then work, at every s

Post by vincentvije »

Hello Bob,

Thanks for your help.
Sorry for my late response, I couldn't get back to my computer from 6th December.

When launching from inside the serious game folder with : "wine nameofthegame.exe", the game start in a 2D window and ask for graphic resolution for the 3D serious game.
Whatever resolution I¨ask, then the serious game windows goes black for some minutes minutes and then the game run smooth... ?!?
It's a school game to learn kids to program domestic systems inside a house, I can't afford a wait of 5 minutes to start the game, the course of 50 minutes is too short...

I did what you ask, and the file is attached here, with near to 240000 lines.
Mainly, there is this line : "trace:wgl:glxdrv_wglGetPixelFormat 0x15004d -> 1"

The forum reply : "The extension xz is not allowed."
So I zipped the text file.

Thanks a lot again for your help.
Attachments
debug.zip
(105.36 KiB) Downloaded 142 times
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

Re: directx app black screen 4 minutes then work, at every s

Post by vincentvije »

Hello Bob,
Please have you some idea about my problem ?
Thanks a lot.
Kind regards,
Vincent
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: directx app black screen 4 minutes then work, at every s

Post by Bob Wya »

Hi Vincent,

I've been fiddling about with the demo version today.
I don't think the failure is directly due to a Linux/Wine graphics driver issue.
Although some applications have subtle issues, under Wine.
E.g. DirectDraw surfaces get rendered in the wrong order - so you end up with a blank window.
Even with my Nvidia GTX 970M card - the application just hangs and then crashes with a memory violation error - after a minute or two.
I tested a few different versions of Wine - with little difference.

I did try and run it in a Windows 7 VM - but then it complains about the inadequate 3D support VirtualBox provides...

There's nothing leaping out at me in the full debug trace - so I'll file a bug later this evening I think.

Bob
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

Re: directx app black screen 4 minutes then work, at every s

Post by vincentvije »

Thanks a lot Bob,

It's very kind of you to help me so much.
The curious part is that after 4 or more minutes, the 3D serious game start rendering and run smooth !
But I'm no professional in computing to have an idea on why this occurs...

The problem for me is that the app close easily and immediately without warning when hitting the "Esc" key.
Young students to this very often... so I can't afford 4 or more minute to start ot in a course of 50 min...

Thanks again.
Kind regards,
Vincent
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: directx app black screen 4 minutes then work, at every s

Post by Bob Wya »

@vincentvije

Okey dokey... A bug is duly filed! 8)

See: Bug 44164 - Domotique4 3D Home Automation application demo: paints blank window

Bob
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

Re: directx app black screen 4 minutes then work, at every s

Post by vincentvije »

Thanks a lot Bob,
In my computer, the 3D rendering launches always but after some minutes.
I tried again but in a vmware VM of Tumbleweed, and it never launch the rendering.
Thanks again.
Kind regards,
Vincent
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: directx app black screen 4 minutes then work, at every s

Post by Bob Wya »

vincentvije wrote:Thanks a lot Bob,
In my computer, the 3D rendering launches always but after some minutes.
I tried again but in a vmware VM of Tumbleweed, and it never launch the rendering.
Thanks again.
Kind regards,
Vincent
np...

Btw spamming the bug report with trivia isn't really going to help the cause... :cry:
In fact "noisy" bug reports are the kind that get ignored...

If you want to help then attaching a terminal log would be helpful.
Also with:

Code: Select all

export WINEDEBUG=+timestamp,+tid,+loaddll,+ddraw
wine start Domotique4-3Dv2\ DEMO.exe &>~/terminal_log.txt
Since you can get the application to successfully start.

You'll need to compress this to attach it to the WineHQ Bugzilla, e.g.:

Code: Select all

xz -9 -e ~/terminal_log.txt
Bob
vincentvije
Level 1
Level 1
Posts: 6
Joined: Tue Dec 05, 2017 9:37 am

Re: directx app black screen 4 minutes then work, at every s

Post by vincentvije »

Thanks Bob,
I do this asap. Tomorrow I hope !
Vincent
Locked