Hi all wine developers,
I read this mailing list for about one year I guess but I think I never send a message. Because until this Monday, I was a spectator, now I wanna become an "actor", I want to learn how to hack wine :).
I don't have a lot of time, 1 hour/week, maybe more, but I just want to fix some bugs, if I find some, and maybe more in the future. I'll take my time.
For info, I'm a video game developers for 2 years, so I'm a C++ programmer, I know nothing about C (except what I know from the C++) and even if I'm using exclusively linux (ubuntu) for 3/4 years at home, I'm not comfortable with the POSIX development environment... Not that I'm a fan of Visual C++/Visual Assist but I always use those tools (at school and then at work) and wanted to learn something else.
I decided to start with a game (Paraworld, but it could be anything) which can't load a level : when I hit the start game button, I got the loading screen, the music etc. but nothing append. The mouse is still reacting, the music still playing but nothing is loading. There is nothing in the trace too, so I tried with the "WINEDEBUG=+relay", error!! I ended quickly with a log > 300Mo before seeing the main menu!
I've seen that there is a patch which allows user to control when debug trace will be display, but I don't know how to find it. I found this page : http://www.mail-archive.com/wine-devel@winehq.org/msg05542.html
But I can't find the archive (the patch file), is there a place where we could download patches?
Maybe my question is very simple, but I'm a beginner so be indulgent, please :).
Other question, is there a way with winedbg to "pause" program execution without having set any breakpoint. In my case, I don't know where to put the breakpoint so I wanted to break the program execution and see where it ends. This is possible with VCC, maybe it's not with winedbg?
Anyway, thank you for your time, and I want to congratulate all the wine developers for their amazing work, win is getting better and better everyday thanks to you,
Andréas
--Not sent from an iPhone.
For the patch, I think I understand the concept (I never use git before and never apply a patch), I have to selection the diff text and save it into a file (let's say debug.patch) and then type :
git apply debug.patch
Is that right? I got some error with this patch. I've try with a more recent version found here : http://repo.or.cz/w/wine/hacks.git/commitdiff/2daf55e8eeca89d5c2bb8238115127...
But I got some errors in keyboard.c. Anyone has a solution?
Andréas
On Wed, Oct 27, 2010 at 12:44 AM, Andréas LIVET andreas.livet@gmail.comwrote:
Hi all wine developers,
I read this mailing list for about one year I guess but I think I never send a message. Because until this Monday, I was a spectator, now I wanna become an "actor", I want to learn how to hack wine :).
I don't have a lot of time, 1 hour/week, maybe more, but I just want to fix some bugs, if I find some, and maybe more in the future. I'll take my time.
For info, I'm a video game developers for 2 years, so I'm a C++ programmer, I know nothing about C (except what I know from the C++) and even if I'm using exclusively linux (ubuntu) for 3/4 years at home, I'm not comfortable with the POSIX development environment... Not that I'm a fan of Visual C++/Visual Assist but I always use those tools (at school and then at work) and wanted to learn something else.
I decided to start with a game (Paraworld, but it could be anything) which can't load a level : when I hit the start game button, I got the loading screen, the music etc. but nothing append. The mouse is still reacting, the music still playing but nothing is loading. There is nothing in the trace too, so I tried with the "WINEDEBUG=+relay", error!! I ended quickly with a log > 300Mo before seeing the main menu!
I've seen that there is a patch which allows user to control when debug trace will be display, but I don't know how to find it. I found this page : http://www.mail-archive.com/wine-devel@winehq.org/msg05542.html
But I can't find the archive (the patch file), is there a place where we could download patches?
Maybe my question is very simple, but I'm a beginner so be indulgent, please :).
Other question, is there a way with winedbg to "pause" program execution without having set any breakpoint. In my case, I don't know where to put the breakpoint so I wanted to break the program execution and see where it ends. This is possible with VCC, maybe it's not with winedbg?
Anyway, thank you for your time, and I want to congratulate all the wine developers for their amazing work, win is getting better and better everyday thanks to you,
Andréas
--Not sent from an iPhone.
On Tue, Oct 26, 2010 at 10:58 PM, Andréas LIVET andreas.livet@gmail.com wrote:
For the patch, I think I understand the concept (I never use git before and never apply a patch), I have to selection the diff text and save it into a file (let's say debug.patch) and then type :
git apply debug.patch
Is that right? I got some error with this patch.
Yes.
I've try with a more recent version found here : http://repo.or.cz/w/wine/hacks.git/commitdiff/2daf55e8eeca89d5c2bb8238115127...
But I got some errors in keyboard.c. Anyone has a solution?
You may have to manually fix the patch, keyboard.c may have changed since the patch was made.
BTW, please bottom post on wine mailing lists.
On Wed, Oct 27, 2010 at 1:04 AM, Austin English austinenglish@gmail.comwrote:
On Tue, Oct 26, 2010 at 10:58 PM, Andréas LIVET andreas.livet@gmail.com wrote:
For the patch, I think I understand the concept (I never use git before
and
never apply a patch), I have to selection the diff text and save it into
a
file (let's say debug.patch) and then type :
git apply debug.patch
Is that right? I got some error with this patch.
Yes.
I've try with a more recent version found here :
http://repo.or.cz/w/wine/hacks.git/commitdiff/2daf55e8eeca89d5c2bb8238115127...
But I got some errors in keyboard.c. Anyone has a solution?
You may have to manually fix the patch, keyboard.c may have changed since the patch was made.
BTW, please bottom post on wine mailing lists.
-- -Austin
Thanks for your response Austin,
I finally manage to apply the patch (just the line number to change). Weirdly it did not work as expected (it's like the game is launch twice when I hit F12), but I'll investigate.
Andreas
Hi,
Thanks for the usefull links Dan
Welcome aboard. I hope you have more than 1 hour / week, it takes a
while to come up the learning curve.
:) I hope too, but as I am a professional developer, most of the time I haven't the energy to code at home... I think my time on wine will depend on my motivation, maybe I'll stop trying to hack wine next week? Maybe I'll start coding 2 hours per days :D ? I don't know, just wanted to try.
Press Ctrl-C in the terminal where you run winedbg, or send the
program you're debugging a SIGINT manually
Thank you remco, I'll try that.
Greetings, Andréas
Hi all,
Back to my bug with Paraworld, I finally manage to get WINEDELAY patch working as I wanted and to stop the program execution with winedbg.
Winedbg stop either into the glib or into NtDelayExecution or into binary code, so not so usefull for now...
But, if launch the game with those options : WINEDEBUG=+relay,+seh,+tid I got some errors :
001b:trace:seh:raise_exception code=c0000005 flags=0 addr=0x6004e3 ip=006004e3 tid=001b 001b:trace:seh:raise_exception info[0]=00000000 001b:trace:seh:raise_exception info[1]=1dd851fc 001b:trace:seh:raise_exception eax=1dd85200 ebx=68464e10 ecx=0000001a edx=00000016 esi=00a3db28 edi=00000340 001b:trace:seh:raise_exception ebp=00000000 esp=0033f364 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00010202 001b:trace:seh:call_vectored_handlers calling handler at 0x68cf1180 code=c0000005 flags=0 001b:trace:seh:call_vectored_handlers handler at 0x68cf1180 returned ffffffff
It apparently an exception raise somewhere but no idea what append. The game launch a server instance called PWServer while launding the game, maybe this exe isn't working? I try to run it with wine, but nothing append, it must need some arguments...
Is there a way to know what causes this exception?
Greetings, Andréas
Hi everyone,
Sorry for flooding, but I'm stuck with my bug, I try several debug output channel (+heap, +snoop etc.) but the log shows nothing.
It's like I click on the "start" button and boom! Access_violation exception. And what's weird is that the game is still running. I thought that an access violation exception causes the application to crash. Here I can do an ALT-TAB then go back to the game. The music still playing, the background image still here, the mouse still moving.
Is that normal?
I updated the bug with my log file : http://bugs.winehq.org/show_bug.cgi?id=18014 http://bugs2.winehq.org/attachment.cgi?id=31576
I really don't know where to look. Any hint??
There must be a way to know what causes this exception, no?
Greetings, Andréas
On Wed, Oct 27, 2010 at 00:44, Andréas LIVET andreas.livet@gmail.com wrote:
Other question, is there a way with winedbg to "pause" program execution without having set any breakpoint. In my case, I don't know where to put the breakpoint so I wanted to break the program execution and see where it ends.
Press Ctrl-C in the terminal where you run winedbg, or send the program you're debugging a SIGINT manually.