[GNC-dev] problem with importing CSV file
Hello, I am getting an intermittent crash when importing a CSV file. I attached a report.{\rtf1\ansi\ansicpg1252\cocoartf2708 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\expandedcolortbl;;} \margl1440\margr1440\vieww11520\viewh8400\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \f0\fs24 \cf0 -\ Translated Report (Full Report Below)\ -\ \ Process: Gnucash [79965]\ Path: /private/var/folders/*/Gnucash.app/Contents/MacOS/Gnucash\ Identifier:org.gnucash.Gnucash\ Version: 4.13-2 (4.13-2)\ Code Type: X86-64 (Native)\ Parent Process:launchd [1]\ User ID: 501\ \ Date/Time: 2023-03-01 13:20:41.2955 -0800\ OS Version:macOS 13.2.1 (22D68)\ Report Version:12\ Bridge OS Version: 7.2 (20P3045)\ Anonymous UUID:F2FB0603-C14A-7AF2-B7F0-14D83CDE7D41\ \ Sleep/Wake UUID: F05B90A8-9C91-4AAC-8A0B-16C060666D85\ \ Time Awake Since Boot: 86 seconds\ Time Since Wake: 672528 seconds\ \ System Integrity Protection: disabled\ \ Notes:\ dyld_process_snapshot_create_for_process failed with 5\ \ Crashed Thread:0 Dispatch queue: com.apple.main-thread\ \ Exception Type:EXC_BAD_ACCESS (SIGSEGV)\ Exception Codes: UNKNOWN_0xD at 0x\ Exception Codes: 0x000d, 0x\ \ Termination Reason:Namespace SIGNAL, Code 11 Segmentation fault: 11\ Terminating Process: exc handler [79965]\ \ VM Region Info: 0 is not in any region. Bytes before following region: 4523409408\ REGION TYPESTART - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\ UNUSED SPACE AT START\ ---> \ __TEXT 10d9dc000-10da04000[ 160K] r-x/r-x SM=COW ...MacOS/Gnucash\ \ Error Formulating Crash Report:\ dyld_process_snapshot_create_for_process failed with 5\ \ Thread 0 Crashed:: Dispatch queue: com.apple.main-thread\ 0 libgdk-3.0.dylib 0x10e3d96e2 gdk_quartz_display_frame_cb + 82\ 1 libglib-2.0.0.dylib 0x10e13bd7e g_main_context_dispatch + 350\ 2 libglib-2.0.0.dylib 0x10e13c0ed g_main_context_iterate + 525\ 3 libglib-2.0.0.dylib 0x10e13c43a g_main_loop_run + 266\ 4 libgtk-3.0.dylib 0x10f11630b gtk_main + 75\ 5 libgnc-gnome-utils.dylib 0x10e50718c gnc_ui_start_event_loop + 76\ 6 Gnucash 0x10d9f2f05 scm_run_gnucash(void*, int, char**) + 933\ 7 libguile-2.2.1.dylib 0x10de7f2b2 invoke_main_func + 34\ 8 libguile-2.2.1.dylib 0x10de5e26f c_body + 15\ 9 libguile-2.2.1.dylib 0x10deec01b vm_regular_engine + 1531\ 10 libguile-2.2.1.dylib 0x10deeab75 scm_call_n + 773\ 11 libguile-2.2.1.dylib 0x10dee75a5 catch + 501\ 12 libguile-2.2.1.dylib 0x10de5e23c scm_c_with_continuation_barrier + 140\ 13 libguile-2.2.1.dylib 0x10dee710f with_guile + 63\ 14 libgc.1.dylib 0x10dd21ed6 GC_call_with_stack_base + 22\ 15 libguile-2.2.1.dylib 0x10dee511b scm_with_guile + 43\ 16 libguile-2.2.1.dylib 0x10de7f275 scm_boot_guile + 69\ 17 Gnucash 0x10d9f2b49 Gnucash::Gnucash::start(int, char**) + 329\ 18 Gnucash 0x10d9f3143 main + 531\ 19 dyld 0x7ff804b5f310 start + 2432\ \ Thread 1:: Dispatch queue: NSCGSTransactionAfter\ 0 libsystem_kernel.dylib 0x7ff804e53556 semaphore_timedwait_trap + 10\ 1 SkyLight 0x7ff809e6c1aa SLSTransactionWait + 203\ 2 AppKit 0x7ff808bcc808 __NSCGSTransactionAddPostDecodeAction_block_invoke_2 + 67\ 3 libdispatch.dylib 0x7ff804d117fb _dispatch_call_block_and_release + 12\ 4 libdispatch.dylib 0x7ff804d12a44 _dispatch_client_callout + 8\ 5 libdispatch.dylib 0x7ff804d18ac4 _dispatch_lane_serial_drain + 694\ 6 libdispatch.dylib 0x7ff804d195e7 _dispatch_lane_invoke + 417\ 7 libdispatch.dylib 0x7ff804d23ad7 _dispatch_workloop_worker_thread + 762\ 8 libsystem_pthread.dylib 0x7ff804e8ece3 _pthread_wqthread + 326\ 9 libsystem_pthread.dylib 0x7ff804e8dc67 start_wqthread + 15\ \ Thread 2:\ 0 libsystem_pthread.dylib 0x7ff804e8dc58 start_wqthread + 0\ \ Thread 3:\ 0 libsystem_pthread.dylib 0x7ff804e8dc58 start_wqthread + 0\ \ Thread 4:\ 0 libsystem_pthread.dylib 0x7ff804e8dc58 start_wqthread + 0\ \ Thread 5:\ 0 libsystem_kernel.dylib
Re: [GNC-dev] Conditions to move revamped GnuCash Mobile App to GnuCash org
Hello, I also wrote a Gnucash viewer for the iphone. It does not have all the functionality, but it is a good start. Not sure if it is worth starting a gnucash-iphone project with it. I can make the source code available. On Wednesday, September 28, 2022 at 05:17:07 PM PDT, Daniel Brown wrote: Hello GnuCash devs, does someone here have (had) a relation to the gnucash-android project? I couldn't find a way to contact the mainter "codinguser" and the project is abandoned: https://wiki.gnucash.org/wiki/GnuCash_and_Mobile_Devices Recently there have been a couple of people (including me) who would like to contribute/maintain/fork/rewrite the project to keep it alive: https://github.com/codinguser/gnucash-android/issues/913 I have started a couple of steps to revive the project and will try to establish a new leading fork so that all the open contributions can find its way into the app. And as part of this revamp I would consider aligning the project to gnucash.org What would be necessary, to move and continue the project under the gnucash org in the future? I mean not only GitHub organization, but it would would be great to see the project as an official part of the community, with vendor "GnuCash" in the app store, mailing-list for support and so on. Best Regards Daniel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] iOS app
Hello Geert, After 2 frustrating and unsuccessful attempts to install development on the Mac, I ended up reverting back to Linux. I have compiled and ran successfully gnucash on Debian. Do you have a preferred IDE that you use on Linux?, I haven't used EMACS for almost 15 years and would rather use a newer IDE/editor. Let me know. On Thursday, April 23, 2020, 10:09:52 AM PDT, Camille Rizko via gnucash-devel wrote: Thank you Geert, I can develop on Linux as well as MacOS. My Linux station is a portable running Debian 9. My macOS is a workstation with a 26" screen, obviously a better choice for me. I did download the source on Linux and went as far as running the cmake but encountered an error at line 59. Since I prefer the Mac station, I will download the Mac development and see if I have better luck doing a complete build. Once I have a successful build, I will look into app-utils and see what I can do with it. The objective I assume is to port it to 100% C/C++, for all platforms, and eventually make it portable and usable by my iOS app. MacOS and iOS are different OS builds, but they share a common compiler set, namely Objective C (superset of C/C++) and now SWIFT. The OBJECTs sometimes differ between MacOS and iOS, but are quite similar otherwise. On Wednesday, April 22, 2020, 01:37:14 AM PDT, Geert Janssens wrote: #yiv1000945645 p, #yiv1000945645 li {white-space:pre-wrap;} Hi Camille, There is plenty of work on the gnucash project. However I'll focus on your eventual goal of basing your iOS app on the gnucash core. I think your first step would be to familiarize yourself with the gnucash build system. We have wiki pages describing how to build gnucash on linux, MacOS and Windows [1]. I assume you are developing on MacOS, so I suggest you follow the instructions to setup a gnucash build environment on that platform and make sure you can build gnucash. When you get to that point, you can start tweaking the build scripts to make them build only only what you need for the iOS app. I would think in the gnucash repo itself that would be the contents of libgnucash. The biggest caveat here is that libgnucash/app-utils still depends quite a bit on guile, which is not what you'd want for iOS. So here's another opportunity to help out: rework app-utils to no longer depend on guile. I'll be honest; that's pretty involved so maybe not a good starting project. The alternative approach would be to alter the build scripts such we can specify to build without the gui (already possible by setting WITH_GNUCASH=OFF to gnucash' cmake invocation) and without guile (which requires a new cmake parameter, for example WITH_GUILE). If both are set the build should only include libengine, but then without app-utils. That would probably give you most of what you need for a first version of the iOS app on top of the gnucash logic. As the guile separation goal progresses within the gnucash project, more of app-utils can be included in the minimal build for iOS, giving you even more features to work with. Besides the gnucash repo there is the gnucash-on-osx repo which contains the build system for all of gnucash' dependencies on that platform. As it currently stands it will build more dependencies than you need for an iOS app. You're most likely not interested in gtk stuff, though you will still need glib (as libgnucash is still using it a lot). gnucash-on-osx uses the jhbuild build system. To help you build only the parts you need for an iOS app, you can add a new module in gnucash.modules that would only trigger the build of dependencies for libgnucash instead of all of gnucash. My experience with building on MacOS is limited and I have no experience at all with building for iOS so there are certainly things I am missing or glossing over. For example I have no idea how different the MacOS environment is from the iOS environment (runtime wise), so I can't tell if there will be a porting effort involved. I mean the source code of gnucash and its dependencies have been tweaked to build an run on MacOS. I have no idea whatsoever if extra tweaking will be required to build for and run on iOS. If so that would be another task, though I would first try to get the build system to output only the minimal set of dependencies and gnucash libraries. I can probably help on the build system side within the gnucash project itself, like adding the extra switch to disable building with guile. I have a reasonable notion of how jhbuild works, but I don't have access to a MacOS system any more. So I can give advice or suggestions on the jhbuild tweaks, but can test any of those. Skills you'll probably need or need to develop include: working with git [2], understanding cmake, working with jhbuild and obviously C and C++. All changes you make in gnucash-on-osx or gnu
Re: [GNC-dev] iOS app
[2] https://wiki.gnucash.org/wiki/Git Op zondag 19 april 2020 21:43:46 CEST schreef Camille Rizko: > Hello Geert, To help I need guidance and direction. I have never developed > as part of a project such as gnuCash before. If you can think of a good > first exercise, I am willing to try. On Sunday, April 19, 2020, 11:00:12 AM > PDT, Geert Janssens wrote: > > #yiv8039829096 p, #yiv8039829096 li {white-space:pre-wrap;} > Hi Camille, > > > > Most of the code relevant for your viewer is indeed C/C++. Parts are gnucash > are also written in guile, but if I understand correctly that language is > not available on iOS. > > > > I'm working on separating the guile parts from the non-gui core of gnucash > specifically to make it easier to port that core to platforms such as iOS > or Android. > > > > Unfortunately that work isn't completely done yet so I will concede that at > this stage it may take some effort to get it going. Perhaps you are > interested in helping out with this ? > > > > Regards, > > > > Geert > > > > Op zondag 19 april 2020 19:46:11 CEST schreef Camille Rizko: > > Hello Geert, I can investigate how to read the database using the code > > > > base. My app is a viewer, so "read only". I have been using gnucash since > > > > 2015, but have not at all looked at the code base. I can probably succeed > > > > with some effort if the code is in C or C++ language. On Sunday, April 19, > > > > 2020, 06:00:54 AM PDT, Geert Janssens wrote: > > > > > > > > #yiv2676310034 p, #yiv2676310034 li {white-space:pre-wrap;} > > > > Ok. That's fair. > > > > > > > > > > > > > > > > Do note GnuCash supports database storage as well as xml and will likely > > > > switch to database (sqlite3) as primary storage format somewhere in the > > > > future. > > > > > > > > > > > > > > > > Also note the data format can change from major release to major release. > > So > > > > if you're not using the gnucash engine code to parse the data files you > > > > will have to keep up with these changes over time on your own. > > > > > > > > > > > > > > > > Other than that it's still cool to see a gnucash compatible ios app. > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > > Geert > > > > > > > > > > > > Op zondag 19 april 2020 00:45:12 CEST schreef Camille Rizko: > > > Hello, > > > > > > > > > > > > It is from scratch, it is written in swift, it decompresses the .gnucash > > > > > > > > > > > > file then parses the xml file and displays the account tree. > > > > > > > > > > > > > > > > > > > > > > > > Sent from my iPhone > > > > > > > On Apr 18, 2020, at 5:37 AM, Geert Janssens > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > An iOS app that can view gnucash files is certainly nice. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Is it a from-scratch implementation or did you reuse our gnucash code > > > > > > > > for > > > > > > > > > > > > > > > > it (the latter would be really awesome) ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Geert > > > > > > > > Op vrijdag 17 april 2020 18:17:28 CEST schreef Camille Rizko via > > > > gnucash-devel: > > > > > Hello, I developped an iOS app that allows me to view my gnuCash > > > > > files > > > > > > > > > > > > > > > > > > > > on > > > > > > > > > > > > > > > > > > > > iphone or ipad. It shows the list of accounts with totals. It also > > > > > > > > > > shows > > > > > > > > > > > > > > > > > > > > Balance sheet to date, Balance sheet last year, income statement > > > > > last > > > > > > > > > > > > > > > > > > > > year > > > > > > > > > > > > > > > > > > > > and income statement to date. Is this of interest to the community? > > > > > > > > > > > > > > > > > > > > ___ > > > > > > > > > > > > > > > > > > > > gnucash-devel mailing list > > > > > > > > > > > > > > > > > > > > gnucash-devel@gnucash.org > > > > > > > > > > > > > > > > > > > > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > > > > > > > > > > > > > > > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] iOS app
Hello Geert, To help I need guidance and direction. I have never developed as part of a project such as gnuCash before. If you can think of a good first exercise, I am willing to try. On Sunday, April 19, 2020, 11:00:12 AM PDT, Geert Janssens wrote: #yiv8039829096 p, #yiv8039829096 li {white-space:pre-wrap;} Hi Camille, Most of the code relevant for your viewer is indeed C/C++. Parts are gnucash are also written in guile, but if I understand correctly that language is not available on iOS. I'm working on separating the guile parts from the non-gui core of gnucash specifically to make it easier to port that core to platforms such as iOS or Android. Unfortunately that work isn't completely done yet so I will concede that at this stage it may take some effort to get it going. Perhaps you are interested in helping out with this ? Regards, Geert Op zondag 19 april 2020 19:46:11 CEST schreef Camille Rizko: > Hello Geert, I can investigate how to read the database using the code > base. My app is a viewer, so "read only". I have been using gnucash since > 2015, but have not at all looked at the code base. I can probably succeed > with some effort if the code is in C or C++ language. On Sunday, April 19, > 2020, 06:00:54 AM PDT, Geert Janssens wrote: > > #yiv2676310034 p, #yiv2676310034 li {white-space:pre-wrap;} > Ok. That's fair. > > > > Do note GnuCash supports database storage as well as xml and will likely > switch to database (sqlite3) as primary storage format somewhere in the > future. > > > > Also note the data format can change from major release to major release. So > if you're not using the gnucash engine code to parse the data files you > will have to keep up with these changes over time on your own. > > > > Other than that it's still cool to see a gnucash compatible ios app. > > > > Regards, > > > > Geert > > > > Op zondag 19 april 2020 00:45:12 CEST schreef Camille Rizko: > > Hello, > > > > It is from scratch, it is written in swift, it decompresses the .gnucash > > > > file then parses the xml file and displays the account tree. > > > > > > > > Sent from my iPhone > > > > > On Apr 18, 2020, at 5:37 AM, Geert Janssens > > > > > > wrote: > > > > > > > > > > > > An iOS app that can view gnucash files is certainly nice. > > > > > > > > > > > > Is it a from-scratch implementation or did you reuse our gnucash code > > > for > > > > > > it (the latter would be really awesome) ? > > > > > > > > > > > > Regards, > > > > > > > > > > > > Geert > > > > > > Op vrijdag 17 april 2020 18:17:28 CEST schreef Camille Rizko via > > > gnucash-devel: > > > > Hello, I developped an iOS app that allows me to view my gnuCash files > > > > > > > > on > > > > > > > > iphone or ipad. It shows the list of accounts with totals. It also > > > > shows > > > > > > > > Balance sheet to date, Balance sheet last year, income statement last > > > > > > > > year > > > > > > > > and income statement to date. Is this of interest to the community? > > > > > > > > ___ > > > > > > > > gnucash-devel mailing list > > > > > > > > gnucash-devel@gnucash.org > > > > > > > > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > > > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] iOS app
Hello Geert, I can investigate how to read the database using the code base. My app is a viewer, so "read only". I have been using gnucash since 2015, but have not at all looked at the code base. I can probably succeed with some effort if the code is in C or C++ language. On Sunday, April 19, 2020, 06:00:54 AM PDT, Geert Janssens wrote: #yiv2676310034 p, #yiv2676310034 li {white-space:pre-wrap;} Ok. That's fair. Do note GnuCash supports database storage as well as xml and will likely switch to database (sqlite3) as primary storage format somewhere in the future. Also note the data format can change from major release to major release. So if you're not using the gnucash engine code to parse the data files you will have to keep up with these changes over time on your own. Other than that it's still cool to see a gnucash compatible ios app. Regards, Geert Op zondag 19 april 2020 00:45:12 CEST schreef Camille Rizko: > Hello, > It is from scratch, it is written in swift, it decompresses the .gnucash > file then parses the xml file and displays the account tree. > > Sent from my iPhone > > > On Apr 18, 2020, at 5:37 AM, Geert Janssens > > wrote: > > > > An iOS app that can view gnucash files is certainly nice. > > > > Is it a from-scratch implementation or did you reuse our gnucash code for > > it (the latter would be really awesome) ? > > > > Regards, > > > > Geert > > > > Op vrijdag 17 april 2020 18:17:28 CEST schreef Camille Rizko via > > gnucash-devel: > > > Hello, I developped an iOS app that allows me to view my gnuCash files > > > on > > > iphone or ipad. It shows the list of accounts with totals. It also shows > > > Balance sheet to date, Balance sheet last year, income statement last > > > year > > > and income statement to date. Is this of interest to the community? > > > ___ > > > gnucash-devel mailing list > > > gnucash-devel@gnucash.org > > > https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] iOS app
Hello, It is from scratch, it is written in swift, it decompresses the .gnucash file then parses the xml file and displays the account tree. Sent from my iPhone > On Apr 18, 2020, at 5:37 AM, Geert Janssens > wrote: > > An iOS app that can view gnucash files is certainly nice. > > Is it a from-scratch implementation or did you reuse our gnucash code for it > (the latter would be really awesome) ? > > Regards, > > Geert > > Op vrijdag 17 april 2020 18:17:28 CEST schreef Camille Rizko via > gnucash-devel: > > Hello, I developped an iOS app that allows me to view my gnuCash files on > > iphone or ipad. It shows the list of accounts with totals. It also shows > > Balance sheet to date, Balance sheet last year, income statement last year > > and income statement to date. Is this of interest to the community? > > ___ > > gnucash-devel mailing list > > gnucash-devel@gnucash.org > > https://lists.gnucash.org/mailman/listinfo/gnucash-devel > > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
[GNC-dev] iOS app
Hello, I developped an iOS app that allows me to view my gnuCash files on iphone or ipad. It shows the list of accounts with totals. It also shows Balance sheet to date, Balance sheet last year, income statement last year and income statement to date. Is this of interest to the community? ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel