koreader / kindlepdfviewer

(DEPRECATED, please use KOReader instead) A PDF (plus DJVU, ePub, TXT, CHM, FB2, HTML...) viewer made for e-ink framebuffer devices, using muPDF, djvulibre, crengine
GNU General Public License v3.0
499 stars 98 forks source link

add ev log in debug mode #767

Closed houqp closed 11 years ago

houqp commented 11 years ago

This is used to replay user input so we can reproduce crashes.

chrox commented 11 years ago

Caught one crash.

# now painting {
    ["pageno"] = 118,
    ["excerpt"] = {
        ["y"] = 0,
        ["x"] = 0,
        ["h"] = 1091.1447084233,
        ["w"] = 771.05831533477
    },
    ["size"] = 420732.10033167,
    ["bb"] = 
} {
    ["y"] = 218.13606911447,
    ["x"] = 75.161987041037,
    ["h"] = 781,
    ["w"] = 600
}
# in tap state... {
    ["y"] = 564,
    ["x"] = 497,
    ["timev"] = {
        ["usec"] = 773711,
        ["sec"] = 1361691050
    },
    ["id"] = -1
}
# set up tap timer
lua config error: ./frontend/ui/time.lua:81: attempt to index local 'self' (a nil value)
stack traceback:
    ./frontend/ui/time.lua:81: in function '__add'
    ./frontend/ui/gesturedetector.lua:213: in function 'feedEvent'
    ./frontend/ui/inputevent.lua:405: in function 'waitEvent'
    ./frontend/ui/ui.lua:193: in function 'run'
    ./reader.lua:184: in main chunk

And the ev log is as follows:

3|57|0|1361691048|345158
3|53|497|1361691048|345199
3|54|564|1361691048|345207
0|0|0|1361691048|345212
3|57|-1|1361691048|437846
0|0|0|1361691048|437859
3|57|0|1361691048|886578
3|53|497|1361691048|886618
3|54|564|1361691048|886625
0|0|0|1361691048|886629
3|57|-1|1361691048|958844
0|0|0|1361691048|958881
3|57|0|1361691049|397110
3|53|497|1361691049|397141
3|54|564|1361691049|397145
0|0|0|1361691049|397147
3|57|-1|1361691049|468394
0|0|0|1361691049|468415
3|57|0|1361691049|823944
3|53|497|1361691049|823983
3|54|564|1361691049|823991
0|0|0|1361691049|823994
3|57|-1|1361691049|916387
0|0|0|1361691049|916425
3|57|0|1361691050|368308
3|53|497|1361691050|368338
3|54|564|1361691050|368341
0|0|0|1361691050|368344
3|57|-1|1361691050|368735
0|0|0|1361691050|368738
3|57|-1|1361691050|773690
0|0|0|1361691050|773711
houqp commented 11 years ago

Nice :) I will upload ev replay script tomorrow and see if I can reproduce the crash.

houqp commented 11 years ago

The crash is fixed in new PR. The ev log is really helpful :)