WaKan Project Website Forum Index WaKan Project Website
Forums about WaKan and Japanese & Chinese language
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

zkanji v -1.0 sub delta
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    WaKan Project Website Forum Index -> Software tools
View previous topic :: View next topic  
Author Message
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Fri Feb 22, 2008 1:03 pm    Post subject: Reply with quote

Drex wrote:
Hello again Smile
It's definetely better with those checkboxes and I like the way it auto-checks when you type something into field but it has no effect whether you check or uncheck them after that Smile It works with field content anyway.

My bad. I know what I forgot. Embarassed

Drex wrote:
Next I've eventually stuck with such a bug: In dictionary panel when you switch to Japanese-English mode and then try to open search combobox application crushes, I mean it just exits, no error is reporting.


This sounds serious. Does this happen every time? Have you tried this with the previous version?
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Fri Feb 22, 2008 4:03 pm    Post subject: Reply with quote

z-one,

I just reproduced the crash described above by Drex. I got a Windows message box with the message "Stack overflow" before the crash.

The edit field of my combobox was empty when I clicked the dropdown arrow, but there was a list of seven or eight items displayed (presumably from history of earlier usage).

I will check the previous version.

--tony

P.S.: Exactly the same crash occurs in .073 (with an empty dropdown list because I had no history when I tried it).
In version .05, the crash does not occur.
Back to top
View user's profile Send private message Send e-mail
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Fri Feb 22, 2008 5:33 pm    Post subject: Reply with quote

I'm not sure this solves the issues, but I've changed the behavior of the drop-down combobox's string handling.
I've uploaded an unofficial test version here: http://zkanji.extra.hu/download/zkanji0093test.zip.
Back to top
View user's profile Send private message Visit poster's website
Drex



Joined: 11 Feb 2008
Posts: 26

PostPosted: Fri Feb 22, 2008 5:44 pm    Post subject: Reply with quote

Checkboxes are working. Smile
Application crushes anyway with no error report. I'm using WinXP pro SP2
Back to top
View user's profile Send private message
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Fri Feb 22, 2008 6:27 pm    Post subject: Reply with quote

At the moment I have no idea what might cause the problem. Sad In reality that combobox is an illusion. It's different from the combobox of the English-Japanese mode as it's button is drawn by the program, and the drop-down window that should appear is just a window with no borders. A creation of mine.

Could you tell some details that might help? For example do you use the original XP theme, or the classic look that appears like win2000/95? (Or some other style?) Does the drop-down window appear when you click the button of the combobox before it quits and if it does, are the kana and kanji visible on it?
The program creates a zkanji.uni file in the executable folder that stores the combobox history. It might help if I could take a look at it (though I don't hope for much).
This is one mysterious bug.
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Fri Feb 22, 2008 7:15 pm    Post subject: Reply with quote

z-one,

The plot thickens. As I said in my e-mail message, I reproduced the problem under Vista, so I was expecting that Drex probably had Vista as well. I will see if I can reproduce the crash under XP Home.

The dropdown window does appear for me, and if I have done previous searches, the kana and kanji for those searches do appear in the dropdown list before the crash. Also, if I type a new search string in the edit window of the combobox before hitting the dropdown arrow, that string appears in the list as well.

I usually get the windows message box saying "stack overflow" before the crash, but that did not happen the very last time I tested.

I noticed something else peculiar on the last couple of crashes. After the crash, but before closing the program (Vista asks you what you want to do about the crash when the program stops responding), when I click the task bar button for the program (it is labeled "4 zkanji.exe), there are four windows listed-- three with the windows titles of the three visible windows, and one with the window title "ZKanji v0.09" . If I click any of the first three menu items, the corresponding window appears. If I click on the menu item labeled "ZKanji v0.09", it appears to start an infinite loop-- Vista displays a busy cursor, but nothing happens.

By the way, if I click the taskbar button when the program is not in a crashed state, it has the same effect as the minimize buttons on the windows.

The zkanji.uni file is not updated during a run when the crash is invoked (I assume that you are normally updating it when the program exits).

--Tony

P.S.-- that busy cursor is also visible right after the crash. I get the options-- including closing the program-- when I click on the closebox after the crash, and the busy cursor disappears during that time, presumably because the OS process is in the foreground.
Back to top
View user's profile Send private message Send e-mail
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Fri Feb 22, 2008 7:26 pm    Post subject: Reply with quote

That extra window is normal. It is the "main window" of zkanji (the about box that starts first) which is normally hidden and shouldn't come up.

I'll test some idea that just came to me after reading your information. If nothing works I can still solve everything by using a real combobox. It's some work to make a combobox that can handle japanese characters, and I hope I can avoid that. Smile
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Fri Feb 22, 2008 7:34 pm    Post subject: Reply with quote

There was no relevant change you can think of between versions .050 and .073? I was expecting that that would be the key to finding the source of the problem.

--tony
Back to top
View user's profile Send private message Send e-mail
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Fri Feb 22, 2008 8:17 pm    Post subject: Reply with quote

tony wrote:
There was no relevant change you can think of between versions .050 and .073? I was expecting that that would be the key to finding the source of the problem.


There is absolutely no difference between the two version's codes of that part. I haven't touched it because it worked fine. There is some other bug that might not have anything to do with the combobox, but I don't know what it is yet.

Just another question: do you move your cursor over the drop-down window before the program crashes or do anything with the cursor or keys, or does it just appear then crash without anything else?
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Fri Feb 22, 2008 8:40 pm    Post subject: Reply with quote

The crash happens immediately after the click on the dropdown arrow. I just did it again to make sure. I am not doing anything which I think would generate other UI events.

Afterthought: Is it possible that you added another control between .05 and .073 which has an ID which conflicts with the combobox or one of its components?
Back to top
View user's profile Send private message Send e-mail
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Sat Feb 23, 2008 3:02 am    Post subject: Reply with quote

I've uploaded another tests version. The address and filename is the same as before, that is http://zkanji.extra.hu/download/zkanji0093test.zip. I hope this solves the problem. I removed two seemingly useless commands. I don't see how they can cause anything but these were ones that are built into the system. If there is some obscure bug I hope it's because of them and the circumstances.
It might still crash just to note. In that case please tell me another small detail. Does the button (on the right side of the combobox) appear pressed when you press it or does it crash without that? This information would help a lot because I might be able to narrow the bug to some part of the code.
Just another question before I forget. Does the crash happen when you release the mouse button or even when you don't?
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Sat Feb 23, 2008 4:00 am    Post subject: Reply with quote

z-one,

The crash still occurs with this new test version.

Yes, the button appears in its pressed state when the list appears.

The crash does not occur until the mouse button is released. It happens on the mouseup whether or not the pointer is still located on the down arrow button.

Hope that helps.

--tony
Back to top
View user's profile Send private message Send e-mail
Drex



Joined: 11 Feb 2008
Posts: 26

PostPosted: Sat Feb 23, 2008 9:53 am    Post subject: Reply with quote

Tony is right about all his observations except I use WinXP Professional instead of Vista and get no error message.
1. Button gets pressed state
2. Dropdown opens showing text you've typed into field before
3. Crush happens when you release mouse anywhere, even outside window.
4. Real combobox at English-Japanese continues to catch keboard input while you're holding mouse down and that one of yours stops

P.S. Don't know whether it helps, I use classic Win98 windows style.
Back to top
View user's profile Send private message
z-one



Joined: 17 Sep 2006
Posts: 99

PostPosted: Sat Feb 23, 2008 12:52 pm    Post subject: Reply with quote

Thank you for your help! I think I have resolved a problem. (And once again) I'm not sure this works or not but this is the last try with the current combobox. If it still crashes I just dump the whole thing and make up some other solution. The file is at the same address as usual. The zipped size is 749,750 bytes (to make sure you don't get some cached old version).
Back to top
View user's profile Send private message Visit poster's website
tony
Co-Admin


Joined: 27 Nov 2003
Posts: 750

PostPosted: Sat Feb 23, 2008 3:06 pm    Post subject: Reply with quote

z-one,

Seems to work on my machine. If you're willing, please send me an e-mail message or PM describing what was causing the crash-- it's always good to know about these things, so that one has extra ideas to work with when a problem occurs.

Thanks,
Tony
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    WaKan Project Website Forum Index -> Software tools All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group