WIN+Arrow keys bug and crash

WIN+Arrow keys bug and crash

Postby crenu » Fri Jan 31, 2014 3:46 am

While the 'fit page to screen' mode is activated the ←→ keys map to 'go to prev/next page'.

Pressing windows+←↑↓→ keys:
expected behavior:
window moves around
actual behavior:
window moves around + page changes

With activated 'automatically load next file' option:

Pressing windows+←↑↓→ keys:
expected behavior:
window moves around
actual behavior:
cdisplayex crashes when it tries to automatically load a next file
- opening new file, pressing win+← should move the window to left, but as it's first page cdisplayex tries to load the previous file while moving the window and crashes

win7 + cdisplayex x64
crenu
 
Posts: 2
Joined: Fri Jan 31, 2014 3:16 am

Re: WIN+Arrow keys bug and crash

Postby Henri » Fri Jan 31, 2014 8:49 am

Hi,

I can reproduce the the first error, thanks.
But I can't reproduce the second one,
You say there is a crash, so a dialog box should appear proposing to send a bugreport file.
could you send it to me ?

thanks
Henri
Site Admin
 
Posts: 318
Joined: Thu May 02, 2013 1:06 pm

Re: WIN+Arrow keys bug and crash

Postby Henri » Fri Jan 31, 2014 8:01 pm

The first bug is fixed in 1.10.3
Henri
Site Admin
 
Posts: 318
Joined: Thu May 02, 2013 1:06 pm

Re: WIN+Arrow keys bug and crash

Postby crenu » Sat Feb 01, 2014 7:26 pm

I tried reliable reproducing the crash, it seems to be unrelated to the win+arrow keys.

I think it's caused by the implementation of the "automatically load a next file" function:
- large number of comic files (1000+) in the directory + slow hdd drive
- searching and finding the "next file to load" takes to long hits a timeout?, cdisplayex crashes

I only get the windows error report popup, not the cdisplayex dialog box.

But I found another minor bug, cdisplayex tries to load files without an extension type?:
- "test" is a mounted truecrypt volume without a file extension
- in "K:\New folder\" is a *.cbr file, after the last page, cdisplayex tries to load "test" and fails:

Code: Select all
exception class    : EFOpenError
exception message  : Cannot open file "K:\New folder\test". The process cannot access the file because it is being used by another process.

main thread ($cd8):
004c0805 +1e5 CDisplayEx.exe System.Classes          TFileStream.Create
004c05ae +04e CDisplayEx.exe System.Classes          TFileStream.Create
008deeb6 +146 CDisplayEx.exe main            963 +24 GetArchiveType
008eef1c +18c CDisplayEx.exe main           4875 +14 TMainForm.acNextVolumeExecute
004cf140 +020 CDisplayEx.exe System.Classes          TBasicAction.Execute
0057684b +04b CDisplayEx.exe Vcl.ActnList            TContainedAction.Execute
00577fcc +07c CDisplayEx.exe Vcl.ActnList            TCustomAction.Execute
008e3634 +154 CDisplayEx.exe main           2149 +14 TMainForm.acNextPageExecute
004cf140 +020 CDisplayEx.exe System.Classes          TBasicAction.Execute
0057684b +04b CDisplayEx.exe Vcl.ActnList            TContainedAction.Execute
00577fcc +07c CDisplayEx.exe Vcl.ActnList            TCustomAction.Execute
008e6118 +498 CDisplayEx.exe main           2884 +89 TMainForm.ApplicationEventsMessage
0073848a +01a CDisplayEx.exe Vcl.AppEvnts            TCustomApplicationEvents.DoMessage
0073924e +04e CDisplayEx.exe Vcl.AppEvnts            TMultiCaster.DoMessage
006ba28b +0cb CDisplayEx.exe Vcl.Forms               TApplication.ProcessMessage
006ba363 +013 CDisplayEx.exe Vcl.Forms               TApplication.HandleMessage
006ba7ff +0ef CDisplayEx.exe Vcl.Forms               TApplication.Run
0090fe7d +06d CDisplayEx.exe cdisplayex       29  +4 initialization

cpu registers:
rax = 00000000772fa0a4
rbx = 0000000005747a90
rcx = 000000000012ee90
rdx = 0000000000000148
rsi = 00000000004c080a
rdi = 0000000000000001
rip = 000007fefda7a88d
rsp = 000000000012f4a0
rbp = 000000000012f570
r8  = 0000000000000000
r9  = 0000000000000000
r10 = 0000000000000000
r11 = 000000000012f4e0
r12 = 0000000000000000
r13 = 0000000000000001
r14 = 00000000028382f8
r15 = 0000000000000000

stack dump:
0012f4a0  30 97 77 05 00 00 00 00 - 10 f5 12 00 00 00 00 00  0.w.............
0012f4b0  6c 0a 08 00 00 00 00 00 - 20 00 00 00 00 00 00 00  l....... .......
0012f4c0  00 00 00 00 00 00 00 00 - a0 f4 12 00 00 00 00 00  ................
0012f4d0  26 02 00 00 00 00 00 00 - ac 00 00 00 00 00 00 00  &...............
0012f4e0  98 e6 6d 00 00 00 00 00 - 80 1b 7e 02 00 00 00 00  ..m.......~.....
0012f4f0  00 f5 12 00 00 00 00 00 - 5a 00 6e 00 00 00 00 00  ........Z.n.....
0012f500  01 00 00 00 00 00 00 00 - 70 f5 12 00 00 00 00 00  ........p.......
0012f510  84 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................
0012f520  00 00 00 00 00 00 00 00 - 00 00 80 42 00 00 80 42  ...........B...B
0012f530  88 82 8c 77 00 00 00 00 - 80 1b 7e 02 00 00 00 00  ...w......~.....
0012f540  26 02 00 00 00 00 00 00 - ac 00 00 00 00 00 00 00  &...............
0012f550  60 f5 12 00 00 00 00 00 - 14 05 6e 00 00 00 00 00  `.........n.....
0012f560  88 09 45 02 00 00 00 00 - bc 21 80 77 00 00 00 00  ..E......!.w....
0012f570  00 00 45 02 00 00 00 00 - 02 00 00 00 00 00 00 00  ..E.............
0012f580  01 04 00 00 00 00 00 00 - 10 07 00 00 00 00 00 00  ................
0012f590  88 09 45 02 00 00 00 00 - 80 f6 12 00 00 00 00 00  ..E.............
0012f5a0  00 00 00 00 00 00 00 00 - 80 1b 7e 02 00 00 00 00  ..........~.....
0012f5b0  26 02 00 00 00 00 00 00 - ac 00 00 00 00 00 00 00  &...............
0012f5c0  80 1b 7e 02 00 00 00 00 - 00 00 00 00 00 00 00 00  ..~.............
0012f5d0  e0 f5 12 00 00 00 00 00 - 13 fa 6d 00 00 00 00 00  ..........m.....

disassembling:
[...]
008dee9f       jz      loc_8deec4
008deea1 963   mov     rcx, [$4abb30]
008deea8       mov     dl, 1
008deeaa       mov     r8, [rbp+$90]
008deeb1       mov     r9w, $40
008deeb6     > call    -$41e95b ($4c0560)     ; System.Classes.TFileStream.Create
008deebb       mov     [rbp+$98], rax
008deec2       jmp     loc_8deede
008deec4 964   mov     rcx, [rbp+$98]
008deecb       xor     rdx, rdx
008deece       xor     r8, r8
[...]


Btw, thanks for your work on cdisplayex.
crenu
 
Posts: 2
Joined: Fri Jan 31, 2014 3:16 am

Re: WIN+Arrow keys bug and crash

Postby Henri » Sat Feb 01, 2014 10:20 pm

Thank you for the report :)
Henri
Site Admin
 
Posts: 318
Joined: Thu May 02, 2013 1:06 pm

Re: WIN+Arrow keys bug and crash

Postby Henri » Tue Feb 11, 2014 1:20 am

load next file bug fixed in 1.10.4
Henri
Site Admin
 
Posts: 318
Joined: Thu May 02, 2013 1:06 pm


Return to Report Bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron