sreichholf / dreamDroid

DreamDroid is an open-source enigma2 client for android based devices.
https://dreamdroid.org
GNU General Public License v3.0
106 stars 43 forks source link

timer crash #42

Closed MASHtm closed 11 years ago

MASHtm commented 12 years ago

Hi!

I tried dreamdroid current from market and the beta and both crash if I try to open my current timer list from my 7020hd. I'm running an experimental version of the webinterface (experimental-git20120211-r0) and have autotimer and vps installed which lead to somewhat larger logentries.

I can provide the /web/timerlist output if needed for debugging.

Regards, Wolfgang Breyha

MASHtm commented 12 years ago

looking at logcat it leads to helpers.DateTime.getDurationString

looking at that function and to what's coming from my timerlist I think the problem are lines like that...

2663.93629098

... not "Long" at all;-)

Don't know why stuff like that ends in my timerlist. The whole entry is:

    <e2timer>
        <e2servicereference>1:0:1:32:1:85:C00000:0:0:0:</e2servicereference>
        <e2servicename>TNT Serie</e2servicename>
        <e2eit>52394</e2eit>
        <e2name>Knight Rider</e2name>
        <e2description>Gefährliches Spielzeug</e2description>
        <e2descriptionextended>N/A</e2descriptionextended>
        <e2disabled>0</e2disabled>
        <e2timebegin>1332578471</e2timebegin>
        <e2timeend>1332581402.87</e2timeend>
        <e2duration>2931.86527705</e2duration>
        <e2startprepare>1332578451</e2startprepare>
        <e2justplay>0</e2justplay>
        <e2afterevent>3</e2afterevent>
        <e2location>None</e2location>
        <e2tags>KnightRider Serie</e2tags>
        <e2logentries>[(1332305177, 15, 'record time changed, start prepare is now: Sat Mar 24 09:43:40 2012'), \
 (1332305177, 500, '[AutoTimer] Try to add new timer based on AutoTimer Knight Rider.'), \
(1332391580, 501, '[AutoTimer] AutoTimer Knight Rider modified this automatically generated timer.'), \
(1332477978, 501, '[AutoTimer] AutoTimer Knight Rider modified this automatically generated timer.'), \
(1332566785, 501, '[AutoTimer] AutoTimer Knight Rider modified this automatically generated timer.'), \
(1332578040, 0, '[VPS] start recordService (simulation)'), (1332578041, 0, '[VPS] start monitoring running-status'), \
(1332578042, 0, '[VPS] 0 RUNNING_STATUS 0 FOLLOWING'), \
(1332578443, 0, '[VPS] 0 RUNNING_STATUS 2 FOLLOWING'), \
(1332578443, 5, 'activating state 1'), \
(1332578443, 0, "Filename calculated as: '/hdd/movie/20120324 0944 - TNT Serie - Knight Rider'"), \
(1332578443, 16, 'record event 2'), (1332578443, 6, 'prepare ok, waiting for begin'), \
(1332578443, 16, 'record event 6'), (1332578445, 16, 'record event 9'), \
(1332578471, 0, '[VPS] 0 RUNNING_STATUS 4 PRESENT'), \
(1332578471, 15, 'record time changed, start prepare is now: Sat Mar 24 09:40:51 2012'), \
(1332578471, 5, 'activating state 2'), (1332578471, 11, 'start recording'), (1332578471, 16, 'record event 0'), \
(1332578471, 16, 'record event 4'), (1332578471, 0, '[VPS] enable autoincrease'), \
(1332578471, 0, '[VPS] stop monitoring'), (1332578471, 0, '[VPS] stop RecordService (simulation)'), \
(1332578472, 16, 'record event 9'), (1332578473, 0, '[VPS] start monitoring running-status'), \
(1332578473, 0, '[VPS] seek another events with same PDC-Time'), \
(1332578475, 0, '[VPS] 0 RUNNING_STATUS 4 PRESENT'), \
(1332581372, 16, 'record event 9'), (1332581402, 16, 'record event 9'), \
(1332581402, 0, '[VPS] 0 EVENT_ENDED'), (1332581402, 5, 'activating state 3'), \
(1332581402, 12, 'stop recording'), (1332581403, 16, 'record event 5'), \
(1332581403, 16, 'record event 1'), (1332581403, 0, '[VPS] stop monitoring'), \
(1332581403, 0, '[VPS] stop monitoring (process terminated)')]</e2logentries>
        <e2filename>/hdd/movie/20120324 0944 - TNT Serie - Knight Rider</e2filename>
        <e2backoff>0</e2backoff>
        <e2nextactivation>1332578640</e2nextactivation>
        <e2firsttryprepare>True</e2firsttryprepare>
        <e2state>3</e2state>
        <e2repeated>0</e2repeated>
        <e2dontsave>0</e2dontsave>
        <e2cancled>True</e2cancled>
        <e2toggledisabled>1</e2toggledisabled>
        <e2toggledisabledimg>off</e2toggledisabledimg>
    </e2timer>
sreichholf commented 12 years ago

Hi,

I'll try to have a look at this issue soon! I think it should be pretty easy to fix.

Is it the official webinterface you're using, or could it be this is obenwebif?

sreichholf commented 11 years ago

finally fixed (in fragment branch)