Comments (10)
Did you manage to reproduce it?
from giggity.
Sorry! Completely missed this. Were people using a Play Store version of Giggity? I don't remember seeing crashes in the dashboard when I checked it a few weeks ago..
from giggity.
Just checked. None in the last 60 days.. :(
from giggity.
I can reproduce that. It is not a crash of the app, but the schedule does not reload anymore. The first time I open JRES 2022 everything is fine. But if I then go back an try to update the data for that conference, then this exception occur and the conference cannot be opened anymore.
from giggity.
Hm I can repro it in an emulator now, even on the first load actually. Now I wonder whether their server spits out .ics in somewhat random format/order.. What I see is there seems to be no header, it goes straight to all the calendar events? Not even a calendar title, or maybe it's somewhere in the middle of the file?
Too late here now or I'd go figure out why it crashes on this, because obviously it should not..
from giggity.
Oddly if I open the ICS file in Thunderbird it loads fine, but if I use xdg-open which sends it to Thunderbird, it complains there are no importable event inside.
from giggity.
import icalendar
f=open('planning_jres.ics','r')
c=icalendar.Calendar.from_ical(f.read())
Gives:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 101636: invalid continuation byte
It seems some multibytes UTF-8 sequence got some CR-LF in the middle:
$ cut -z -b 101636-101699 planning_jres.ics | hd
00000000 64 e2 0d 0a 20 80 99 65 78 70 6c 6f 69 74 61 74 |d... ..exploitat|
00000010 69 6f 6e 2e 0d 0d 0a 20 5c 6e 0d 0a 20 0d 0d 0a |ion.... \n.. ...|
00000020 20 5c 6e 0d 0a 20 20 20 2a 20 54 69 74 72 65 20 | \n.. * Titre |
00000030 64 75 20 42 6f 46 20 3a 20 50 72 c3 a9 73 65 6e |du BoF : Pr..sen|
00000040 00 |.|
0xE2 0x80 0x99
is U+2019 RIGHT SINGLE QUOTATION MARK
(not even the correct apostrophe btw).
So I guess you'll have to fix your server to not split UTF-8 sequences 😅
from giggity.
Huh, now I'm curious whether that's the problem with Giggity too... Can definitely confirm that iconv
is still unhappy with this file:
wilmer@ruby:/tmp/jres$ iconv -f utf-8 -t utf-8 < planning.ics > /dev/null
iconv: illegal input sequence at position 101940
Which is indeed the same event still, based on your quote above.
from giggity.
Should be fixed in d0fac0f now.
Interestingly it's not too upset by the dodgy Unicode. But the file is even weirder, I did also notice extremely odd line endings (CR-CR-LF) which confuse the new line numbering I've added and adds debugging noise, but not going to try to fix that, IMHO that's just Java doing line breaks wrong. :-/
I see the conf is on Tuesday already, I should be able to push a new version to the Play Store tomorrow at least..
from giggity.
(That's done by the way, version 2.0.8 should fix this problem. But it's VERY unlikely to hit F-Droid in time.)
from giggity.
Related Issues (20)
- URL of website does not resolve anymore HOT 1
- Support Sched conferences better HOT 4
- MalformedURLException on Google-managed calendar for RIOT summit HOT 3
- Feature request: Add personal meetings HOT 1
- Feature request: Remove imported .ics-files HOT 1
- Bug: updating an ics does not change event name
- events seems to have different starttime in the gui HOT 2
- Pretalx files can contain events with non-unique id= values, consider switching to guid= HOT 8
- add notification when a new event is added HOT 2
- How to activate dark mode? HOT 4
- title and day dates not displayed HOT 2
- Collaborate with other apps? HOT 4
- Instant crash when trying to open any conference program HOT 15
- Remove urllib3 dependency from ggt/
- Add logo to F-droid
- RFC: Discover schedule.xml URL/location HOT 8
- The icons at https://ggt.gaa.st/#url=foo are broken
- Confusing loading state in Battery Saver
- Export/Import saved items of a conference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giggity.