Skip to content

VCard Import from QR-Code Crashes when ADR is Set #548

@mwaeckerlin

Description

@mwaeckerlin

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 minimal-vcard-adr-test.pdf
  2. Scan the QR-Code on your Android mobile device
  3. Open in Contacts
  4. Contact Crashes, Address is not imported
Image

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

[1] (./minimal-vcard-adr-test.aux
<Reading QR code for "BEGIN:VCARD^^M
VERSION:4.0^^M
N:Test;Test;;;^^M
FN:Test Test^^M
ADR:;;Technoparkstrasse 2 8406 Winterthur ZH 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}
\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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not workingneeds triageIssue is not yet ready for PR authors to take up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions