Error Message: Division by Zero
- cdybeijing
- Lives in gote
- Posts: 581
- Joined: Fri Apr 30, 2010 2:27 am
- Rank: IGS 2 dan
- GD Posts: 0
- Location: Shanghai, China
- Has thanked: 96 times
- Been thanked: 100 times
- Contact:
Error Message: Division by Zero
Granted, that's a pretty serious error, so serious that it can crash my client instantly.
What is the MEANING of division by zero? (Running via wine on Lucid.)
What is the MEANING of division by zero? (Running via wine on Lucid.)
-
amnal
- Lives in gote
- Posts: 589
- Joined: Fri Apr 23, 2010 10:42 am
- Rank: 2 dan
- GD Posts: 0
- Been thanked: 114 times
Re: Error Message: Division by Zero
cdybeijing wrote:Granted, that's a pretty serious error, so serious that it can crash my client instantly.
What is the MEANING of division by zero? (Running via wine on Lucid.)
What do you mean by MEANING? Generally (as far as I know), this means what it says on the tin; the program tries to execute a calculation which involves division by 0, can't (for obvious reasons), and throws an error. The program stops running because something has gone wrong, and it no longer knows what to do - ideally, errors would be caught by the programmer or never happen in the first place, but this is presumably some behaviour that the programmer missed.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
Re: Error Message: Division by Zero
I get that error too, though it doesn't crash the client. The error means what it sounds like. The program tried to do some math, dividing one number by another, and the second happened to be zero. That's an illegal math operation, so it's treated as an error.
- CarlJung
- Lives in gote
- Posts: 429
- Joined: Wed Apr 21, 2010 1:10 pm
- Rank: SDK
- GD Posts: 0
- KGS: CarlJung
- Location: Sweden
- Has thanked: 101 times
- Been thanked: 73 times
Re: Error Message: Division by Zero
I never get that error on Windows. I guess division by zero is ok on Windows.
FusekiLibrary, an opening library.
SGF converter tools: Wbaduk NGF to SGF | 440 go problems | Fuseki made easy | Tesuji made easy | Elementary training & Dan level testing | Dan Tutor Shortcut To Dan
SGF converter tools: Wbaduk NGF to SGF | 440 go problems | Fuseki made easy | Tesuji made easy | Elementary training & Dan level testing | Dan Tutor Shortcut To Dan
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
Re: Error Message: Division by Zero
If I had to bet, I would guess it was a race condition. One thread is expecting data to be put in some memory location by another thread at a certain time. In windows, it just happens that it is always there in time because the timing of whatever happens in the program. But in wine, some particular operation being emulated is slower or faster, so the timing of the threads is different. Since the problem never happened in windows, the developer never got around to fixing the race condition with mutexes or whatever.
But I wonder why it crashes the client on your computer, but not others'. I can just click "ok" or whatever and go on with my business.
But I wonder why it crashes the client on your computer, but not others'. I can just click "ok" or whatever and go on with my business.
- cdybeijing
- Lives in gote
- Posts: 581
- Joined: Fri Apr 30, 2010 2:27 am
- Rank: IGS 2 dan
- GD Posts: 0
- Location: Shanghai, China
- Has thanked: 96 times
- Been thanked: 100 times
- Contact:
Re: Error Message: Division by Zero
I was being a bit suggestive with my all caps typing of MEANING just because I thought this error and translation were philosophically humorous. Really, I just want to know if other people running wbaduk through wine on lucid are getting similar errors.
I get an error on average every 5 minutes, and I have not been able to successfully avoid the client crashing for more than 10 minutes so far. I tend to get a lot of illegal operation errors, and, as I typed in another thread, sometimes even dragging the client window around my screen can cause it to crash.
I get an error on average every 5 minutes, and I have not been able to successfully avoid the client crashing for more than 10 minutes so far. I tend to get a lot of illegal operation errors, and, as I typed in another thread, sometimes even dragging the client window around my screen can cause it to crash.
- cdybeijing
- Lives in gote
- Posts: 581
- Joined: Fri Apr 30, 2010 2:27 am
- Rank: IGS 2 dan
- GD Posts: 0
- Location: Shanghai, China
- Has thanked: 96 times
- Been thanked: 100 times
- Contact:
Re: Error Message: Division by Zero
By the way, this is the first program I have ever installed and run using wine, and I am not an experiend ubuntu / wine user.
Is it possible there are some general configurations I need to make to wine before I can run wbaduk smoothly?
Is it possible there are some general configurations I need to make to wine before I can run wbaduk smoothly?
-
amnal
- Lives in gote
- Posts: 589
- Joined: Fri Apr 23, 2010 10:42 am
- Rank: 2 dan
- GD Posts: 0
- Been thanked: 114 times
Re: Error Message: Division by Zero
I don't know of anything in particular that you need to change. For some programs, changing the windows version that wine pretends to be (via winecfg) can have unexpected effects on stability, but I haven't noticed this with wbaduk.
For the window stability issue, have you tried running wbaduk in an emulated virtual desktop rather than as a window on your ubuntu desktop? You can do this with 'wine explorer /desktop=foo,1024,768 /path/to/executable', where 1024 and 768 are the resolution of the emulated desktop (800,600 is probably sufficient). I find that this sometimes improves stability.
For the window stability issue, have you tried running wbaduk in an emulated virtual desktop rather than as a window on your ubuntu desktop? You can do this with 'wine explorer /desktop=foo,1024,768 /path/to/executable', where 1024 and 768 are the resolution of the emulated desktop (800,600 is probably sufficient). I find that this sometimes improves stability.
- flOvermind
- Lives with ko
- Posts: 295
- Joined: Wed Apr 21, 2010 3:19 am
- Rank: EGF 4 kyu
- GD Posts: 627
- Location: Linz, Austria
- Has thanked: 21 times
- Been thanked: 43 times
Re: Error Message: Division by Zero
cdybeijing wrote:Is it possible there are some general configurations I need to make to wine before I can run wbaduk smoothly?
You need to disable Flash in the WBaduk client. But I don't know whether that's related to the division by zero error...
What I also found helpful is to activate the virtual desktop emulation (it's an option somewhere in winecfg, I think on the display tab). WBaduk does some strange things to the window borders. In my experience, stability is really improved by this setting.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
Re: Error Message: Division by Zero
Actually, you can install flash within wine (using winetricks), and it actually works, though it's slow and I don't recommend it.
But I have had very little trouble running wbaduk under lucid. I get the divide by zero error when loading, but it runs fine after that. I've only used it to watch games, however. I don't really understand the client, so I haven't tried playing on it yet.
But I have had very little trouble running wbaduk under lucid. I get the divide by zero error when loading, but it runs fine after that. I've only used it to watch games, however. I don't really understand the client, so I haven't tried playing on it yet.
-
lorill
- Lives with ko
- Posts: 281
- Joined: Wed Apr 21, 2010 1:03 am
- Rank: yes
- GD Posts: 0
- Location: France
- Has thanked: 69 times
- Been thanked: 25 times
Re: Error Message: Division by Zero
you all know than qgo2 (from cvs, unfortunately) works natively with wbaduk, right ?
it's a bit ugly, but playable.
it's a bit ugly, but playable.
-
amnal
- Lives in gote
- Posts: 589
- Joined: Fri Apr 23, 2010 10:42 am
- Rank: 2 dan
- GD Posts: 0
- Been thanked: 114 times
Re: Error Message: Division by Zero
lorill wrote:you all know than qgo2 (from cvs, unfortunately) works natively with wbaduk, right ?
it's a bit ugly, but playable.
I did not know that, but I'm delighted to hear it!
Thanks
- cdybeijing
- Lives in gote
- Posts: 581
- Joined: Fri Apr 30, 2010 2:27 am
- Rank: IGS 2 dan
- GD Posts: 0
- Location: Shanghai, China
- Has thanked: 96 times
- Been thanked: 100 times
- Contact:
Re: Error Message: Division by Zero
Is qgo2 in the repository, because I have never heard of this before. I only have v 1.54 installed, and I didn't know there was an update.
-
amnal
- Lives in gote
- Posts: 589
- Joined: Fri Apr 23, 2010 10:42 am
- Rank: 2 dan
- GD Posts: 0
- Been thanked: 114 times
Re: Error Message: Division by Zero
cdybeijing wrote:Is qgo2 in the repository, because I have never heard of this before. I only have v 1.54 installed, and I didn't know there was an update.
Having just looked into it, I think there was never an official qgo2 release - it wasn't finished enough to be stable. Development seems to have more or less ceased now, though the current version (whilst buggy in places) is perfectly usable.
The lack of release means you won't find it in your repositories, but you should be able to download it from cvs and compile it manually with not too much hassle. It seems to rely on QT, though, so you might need to download a lot to make it work if you don't use KDE (not sure what's standard for gnome desktops). It should be possible, if you put the effort in, and people here would probably be helpful if they can.
The location of the code seems to be http://sourceforge.net/projects/qgo/develop , and is most easily accessed via cvs. I haven't had time to try this, and I don't know how to drive cvs, so I haven't tried it yet. This is somewhat more complex than using repositories, unfortunately.
- oren
- Oza
- Posts: 2777
- Joined: Sun Apr 18, 2010 5:54 pm
- GD Posts: 0
- KGS: oren
- Tygem: oren740, orenl
- IGS: oren
- Wbaduk: oren
- Location: Seattle, WA
- Has thanked: 251 times
- Been thanked: 549 times
Re: Error Message: Division by Zero
I just built it for windows to play with today. One source code modification had to be made, but it was otherwise straightforward if you have QT.