Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when recording #662

Open
pradodia opened this issue Oct 23, 2024 · 11 comments
Open

App crashes when recording #662

pradodia opened this issue Oct 23, 2024 · 11 comments

Comments

@pradodia
Copy link

6 Steps to Reproduce

  1. Start a new workout and begging inputting data for reps
  2. Exit app and open camera app
  3. Start recording
  4. return to Wger after finish recording
  5. app crashes
  6. have to re input all past data

Expected results:
I expected to be able to jump back to the app to continue with inputting my session data

Actual results:
The app crashed and I had to start a whole new session and re input all my data

Logs
This is my first time using grub hub. Sorry if I did not follow directions to a T.
@Jackpkn
Copy link

Jackpkn commented Oct 27, 2024

Hi! I'm interested in working on this issue. I’ve reviewed the problem and am implementing a fix to preserve workout data when the app goes into the background, ensuring users don’t lose data when switching to other apps. My approach will involve saving session data when the app pauses and restoring it upon returning to the app. I'll follow up with a PR once I've thoroughly tested the changes. Please let me know if there are any additional considerations I should keep in mind!

@rolandgeider
Copy link
Member

Hi @Jackpkn ! If you are working on the gym mode, at the moment this is all generated on the fly when opening the page. I had the idea (and I see that is seems I didn't any issue for this) to add a new provider that generates the pages for the gym mode. This would make it much easier to resume, since we could save something like the current step and only reset it when reaching the end or starting a new one

@Jackpkn
Copy link

Jackpkn commented Oct 28, 2024

@rolandgeider yeah, We have to manage it through Lifecycle

@Jackpkn
Copy link

Jackpkn commented Oct 28, 2024

@rolandgeider can you send the "WGER_API_KEY"

@rolandgeider
Copy link
Member

You don't need to set the key, only to register through the app, if you are using the test server or your own dev instance, you can just login

@Jackpkn
Copy link

Jackpkn commented Oct 28, 2024

@rolandgeider I am getting this issue . I tried a lot.
Wger Api Key not configured. Set it in /fastlane/metadata/android/envfiles/wger.propertiesor in the environment variableWGER_API_KEY`

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_zxing:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/android/.cxx/Debug/596f4b3x/arm64-v8a'
[1/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMVersion.cpp.o
[2/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/HybridBinarizer.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/HybridBinarizer.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/HybridBinarizer.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/HybridBinarizer.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/HybridBinarizer.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/HybridBinarizer.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/HybridBinarizer.cpp:7:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/HybridBinarizer.h:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/GlobalHistogramBinarizer.h:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZDecoder.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZDecoder.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZDecoder.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZDecoder.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZDecoder.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/aztec/AZDecoder.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/aztec/AZDecoder.cpp:14:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/DecoderResult.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZReader.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZReader.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZReader.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZReader.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZReader.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/aztec/AZReader.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/aztec/AZReader.cpp:13:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[5/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMBitLayout.cpp.o
[6/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/GlobalHistogramBinarizer.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/GlobalHistogramBinarizer.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/GlobalHistogramBinarizer.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/GlobalHistogramBinarizer.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/GlobalHistogramBinarizer.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/GlobalHistogramBinarizer.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/GlobalHistogramBinarizer.cpp:7:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/GlobalHistogramBinarizer.h:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[7/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDataBlock.cpp.o
[8/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/aztec/AZWriter.cpp.o
[9/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/ReadBarcode.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/ReadBarcode.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/ReadBarcode.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/ReadBarcode.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/ReadBarcode.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/ReadBarcode.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/ReadBarcode.cpp:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/GlobalHistogramBinarizer.h:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[10/77] Building CXX object CMakeFiles/flutter_zxing.dir/native_zxing.cpp.o
FAILED: CMakeFiles/flutter_zxing.dir/native_zxing.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dflutter_zxing_EXPORTS -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -std=gnu++17 -MD -MT CMakeFiles/flutter_zxing.dir/native_zxing.cpp.o -MF CMakeFiles/flutter_zxing.dir/native_zxing.cpp.o.d -o CMakeFiles/flutter_zxing.dir/native_zxing.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/native_zxing.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/native_zxing.cpp:17:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/native_zxing.h:4:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/dart_alloc.h:4:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[11/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatReader.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatReader.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatReader.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatReader.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatReader.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/MultiFormatReader.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/MultiFormatReader.cpp:7:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/MultiFormatReader.h:12:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[12/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatWriter.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatWriter.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatWriter.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatWriter.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/MultiFormatWriter.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/MultiFormatWriter.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/MultiFormatWriter.cpp:20:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/pdf417/PDFWriter.h:12:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[13/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/Result.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/Result.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/Result.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/Result.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/Result.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/Result.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/Result.cpp:9:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/DecoderResult.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[14/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/BinaryBitmap.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/BinaryBitmap.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/BinaryBitmap.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/BinaryBitmap.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/BinaryBitmap.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.cpp:6:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/BinaryBitmap.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[15/77] Building CXX object zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDecoder.cpp.o
FAILED: zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDecoder.cpp.o
/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/jackpk/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src -Izxing/core -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -DZXING_BUILD_READERS -DZXING_BUILD_WRITERS -Wall -Wextra -Wno-missing-braces -Werror=undef -Werror=return-type -pthread -std=gnu++17 -MD -MT zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDecoder.cpp.o -MF zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDecoder.cpp.o.d -o zxing/core/CMakeFiles/ZXing.dir/src/datamatrix/DMDecoder.cpp.o -c /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/datamatrix/DMDecoder.cpp
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/datamatrix/DMDecoder.cpp:15:
In file included from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/src/zxing/core/src/DecoderResult.h:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

C++ build system [build] failed while executing:
/home/jackpk/Android/Sdk/cmake/3.18.1/bin/ninja
-C
/home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/android/.cxx/Debug/596f4b3x/arm64-v8a
flutter_zxing
from /home/jackpk/.pub-cache/hosted/pub.dev/flutter_zxing-1.7.0/android

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 12s
Error: Gradle task assembleDebug failed with exit code 1`

@rolandgeider
Copy link
Member

oh, that's the ZX library, I'll have to check on my side if perhaps a new version broke something. You are on linux right? How are you building the app?

@Jackpkn
Copy link

Jackpkn commented Oct 28, 2024

@rolandgeider Yes i am working to building the app. Yes, I am using Linux. Finally I solved the error thank you for your reply. I think we have lot of issue with this app . what do you think about it?

@rolandgeider
Copy link
Member

oh great, what did you do?

BTW, if we want to discuss details etc, I would suggest that you ping me in the discord server (if you don't have an account or prefer to keep the conversation here, that's of course also fine)

@Jackpkn
Copy link

Jackpkn commented Oct 29, 2024

@rolandgeider Send me the discord server link

@rolandgeider
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants