bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: App doesn't load

Open mattcrv opened this issue 1 year ago • 5 comments

Describe the bug

Bitkit is being opened for the first time on a new device. No seed was entered and there's no local data saved on this new device.

Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/93796166/f4c485c1-bcbb-4050-83b2-ed373e995e69

Operating system

iOS 17.3

Bitkit version

98

Log output

No response

mattcrv avatar Jan 23 '24 17:01 mattcrv

Duplicate of #1357

mattcrv avatar Jan 24 '24 14:01 mattcrv

Error is coming from this bit of code here:

const seedHash = useAppSelector(seedHashSelector);
const webRelayUrl = useAppSelector(webRelaySelector);

useEffect(() => {
  if (!seedHash) {
	  return;
  }
  
  (async (): Promise<void> => {
	const primaryKeyRes = await getSlashtagsPrimaryKey(seedHash);
	if (
		primaryKeyRes.error ||
		(primaryKeyRes.data && primaryKeyRes.data.length === 0)
	) {
		showToast({
			type: 'error',
			title: 'Data Connection Issue',
			description:
				'An error occurred: Could not load primary key from keychain.',
		});
		return;
	}

Possible it's some type of permission error for the Keychain. Haven't been able to reproduce it at the time of this writing.

coreyphillips avatar Jan 24 '24 17:01 coreyphillips

@mattcrv was it a restored wallet or a new wallet?

JeanlChristophe avatar Jan 25 '24 14:01 JeanlChristophe

The app never loaded on my new phone, so I couldn't even get to the wallet creation/restoration (or any other screen). When I open the app, it shows the Bitkit logo, then the Data Connection Issue toast pops up, and then it just displays the black screen forever (I tried keeping it open for a few minutes to see if something loads, but nothing happens). This is not happening with any other app on my new phone (not even other Bitcoin wallets), so it's a Bitkit-specific issue. I tried installing older builds (87, 92, 97), but the issue persists. This never happened on my old phone.

This looks like an iOS 17.3 issue because I tried opening Bitkit on a different iPhone 15 Pro running iOS 17.3, and the same bug happened. If 17.3 is indeed the reason, it might be a recurring issue with iOS updates considering it also happened back in October (#1357).

mattcrv avatar Jan 25 '24 15:01 mattcrv

I've just updated to iOS 17.4, and after a reinstall, the app loaded normally. Indeed seems related to 17.3 and the version user #1357 was running. Now that 17.3 is public, it might be good to check if more iOS users are experiencing this bug or if it just affected those on the beta track.

mattcrv avatar Jan 28 '24 16:01 mattcrv

I'm closing this ticket as we've had no further feedback from users.

JeanlChristophe avatar May 16 '24 13:05 JeanlChristophe