Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

VCard Import from QR-Code Crashes when ADR is Set

Đang mở
#548 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
mobile-dev

Hướng nghiên cứu

The crash happens when a vCard from a QR code includes an ADR line during import in the Contacts app. Start by finding the vCard parsing and address import code in the Kotlin sources, and reproduce with the sample VCARD text from the issue. Done means the ADR-bearing card imports without crashing and the address is stored. Confirm the fix by running the import path with the sample text.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.6.0

Affected Android/Custom ROM version

Android 16

Affected device model

Samsung Galaxy S24 Ultra

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug
  1. Open the following PDF

test.pdf

  1. Scan the QR-Code on your Android mobile device
  2. Open in Contacts
  3. Contact Crashes, Address is not imported
ignoreImageMinify

The QR-Code contains a VCard, generated from LaTeX as follows:

<Reading QR code for "BEGIN:VCARD^^M
VERSION:4.0^^M
N:Test;Test;;;^^M
FN:Test Test^^M
ADR:;;Technoparkstrasse 2;Winterthur;ZH;8406;Switzerland^^M
END:VCARD^^M
" at level 11-H from aux file.>

Result: If the ADR field is absent, the contact is imported, as soon as there is an ADR field, Contacts crashes. Regardless what other fields are defined and regardless on what is in the ADR field.

The visiting card is generated with xeLaTeX usig my template: businesscard-qrcode

\documentclass{businesscard-qrcode}

\begin{document}
\givennames{Test}
\familynames{Test}
\type{work}
\street{Technoparkstrasse\ 2}
\city{Winterthur}
\region{ZH}
\zip{8406}
\country{Switzerland}

\drawcard
\end{document}
Expected behavior

VCard from QR-Code is imported in Contacts.

Actual behavior

Contacts crashes when there is an ADR line.

Sometimes I get a crash report dialog, but most often it just does not open and switches back to the QR scanner.

Screenshots/Screen recordings

No response

Additional information

No response

Ngôn ngữ chính
Kotlin
Star
917
Fork
73
Merge trung bình
5 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FossifyOrg/Contacts

Tất cả issue của FossifyOrg/Contacts

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.