Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#427 closed defect (fixed)

Phonelog on latest SHR-Testing crashes cases the call program to not work

Reported by: vendion Owned by: ainulindale
Priority: major Milestone:
Component: SHR Image Version: SHR-testing
Keywords: Phonelog, crash Cc:

Description

On the latest SHR-Testing 05/03 when I try to launch the phonelog program it crashes and if I don't restart the phone then when I receive and make a call the GUI for it doesn't launch so I have no clue who is calling, can't accept/reject the call can't release the call or anything.

Running it from the command line this is what I get for output:

Initialized global vars
Initializing gtk interface
Showing main window
Upright
Traceback (most recent call last):
    File "/usr/bin/phonelog", line 752, in <module>
    incomeing.populateList()
    File "/usr/bin/phonelog", line 223, in poplateList
    tmp_duration = int(call[3])
ValueError: invalid literal for int() with base 10: '02:49'

If any other debugging output is needed then please let me know

Change History (10)

comment:1 Changed 9 years ago by mrmoku

  • Resolution set to fixed
  • Status changed from new to closed

fixed and update is in the feed

comment:2 Changed 9 years ago by vendion

Thanks for the quick fix in this matter, how long will it take before it can be downloaded from opkg?

comment:3 Changed 9 years ago by TAsn

This error means you opkg upgraded to get this version of phonelog.
This version of the phonelog isn't backward compatible with the old phonelog db, as I said in chan:

<TAsn> I did that instead of supporting both since I didn't want to add a lot of crap to the code. we are working on an unstable tree after all, it's not supposed to be upgradeable

Same goes for testing. I don't think we should waste time on upgradeability between beta releases, we need to focus on making a finished product.

If you want a fix, just rm /var/db/phonelog.db
everything will start working great after that.

comment:4 Changed 9 years ago by mrmoku

you have to update ophonekitd first though... otherwise it will re-create the phonelog.db in the old (wrong) format.

comment:5 Changed 9 years ago by vendion

What does ophonekitd need to be updated to? According to opkg there are no upgrades available, and it has been like this sense I have flashed the openmoko-shr-image-glibc-ipk--20090502-om-gta02.rootfs.jffs2 image onto my phone.

comment:6 Changed 9 years ago by mrmoku

sorry it took longer as wanted... We had some package version numbering problem that caused the update to not be propagated.

Should be fixed now and updates are in the feed.

comment:7 follow-up: Changed 9 years ago by vendion

The update fixes the crash, but the phonelog program doesn't recreate the database so it doesn't log phone calls. I would consider this issue to be only partly fixed

comment:8 in reply to: ↑ 7 Changed 9 years ago by TAsn

Replying to vendion:

The update fixes the crash, but the phonelog program doesn't recreate the database so it doesn't log phone calls. I would consider this issue to be only partly fixed

have you tried removing the db?
You should upgrade to latest ophonekitd then rm /var/db/phonelog.db
and then restart ophonekitd, that should do it.

comment:9 Changed 9 years ago by vendion

After mrmoku message that it was in the feeds I did a opkg upgrade and removed the database I just restarted my phone, figured that would do the trick if anything needed restarted, and now I have this problem. If I receive or make a call then open the phonelog it doesn't show up anywhere within the logs. It also doesn't seem that I have the rights to reopen this bug

comment:10 Changed 9 years ago by vnevoa

After removing the db file, I had to reboot TWICE to get Phonelog running right. Now it shows the calls.

Note: See TracTickets for help on using tickets.