{"id":20593915,"url":"https://github.com/4brunu/mobilecppmemorytest","last_synced_at":"2026-05-15T18:31:41.628Z","repository":{"id":122981651,"uuid":"72110591","full_name":"4brunu/MobileCppMemoryTest","owner":"4brunu","description":"Sample project showing memory error using djinni","archived":false,"fork":false,"pushed_at":"2016-10-28T12:47:38.000Z","size":2475,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T14:41:41.510Z","etag":null,"topics":["android","cpp","djinni","ios"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4brunu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-27T13:23:13.000Z","updated_at":"2017-02-05T07:06:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"4db935b6-cfc3-4dbd-bcb6-a13fa7a9eb18","html_url":"https://github.com/4brunu/MobileCppMemoryTest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/4brunu/MobileCppMemoryTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4brunu%2FMobileCppMemoryTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4brunu%2FMobileCppMemoryTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4brunu%2FMobileCppMemoryTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4brunu%2FMobileCppMemoryTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4brunu","download_url":"https://codeload.github.com/4brunu/MobileCppMemoryTest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4brunu%2FMobileCppMemoryTest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cpp","djinni","ios"],"created_at":"2024-11-16T07:50:06.604Z","updated_at":"2026-05-15T18:31:41.613Z","avatar_url":"https://github.com/4brunu.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MobileCppMemoryTest\n\nThis project show's an error while using djinni.\nI think it's a memory management error.\n\n##How to run the project?\nTo simulate the problem open [MobileCppMemoryTestiOS.xcodeproj](https://github.com/4brunu/MobileCppMemoryTest/tree/master/ios_project/MobileCppMemoryTestiOS/MobileCppMemoryTestiOS.xcodeproj) on iOS or open the Android project [here](https://github.com/4brunu/MobileCppMemoryTest/tree/master/android_project/MobileCppMemoryTestAndroid) and run the app.\n\n\n##iOS error\nThe error is EXC_BAD_ACCESS in this [line](https://github.com/4brunu/MobileCppMemoryTest/blob/master/src/main/cpp/ModelFatherImpl.cpp#L45).\n\n##Android Error\n```\nA/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x69006f in tid 4730 (ypicode.com/...)\n\n      [ 10-27 16:42:26.461  1184: 1184 W/         ]\n      debuggerd: handling request: pid=4702 uid=10067 gid=10067 tid=4730\n```\n\n## Workaround\n\nOne workarround is to put [this on iOS](https://github.com/4brunu/MobileCppMemoryTest/blob/master/ios_project/MobileCppMemoryTestiOS/MobileCppMemoryTestiOS/ViewController.swift#L13) or [this on Android](https://github.com/4brunu/MobileCppMemoryTest/blob/master/android_project/MobileCppMemoryTestAndroid/app/src/main/java/com/company/mobilecppmemorytestandroid/MainActivity.java#L19) variables as global variables, but I want to understand why this is happening.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4brunu%2Fmobilecppmemorytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4brunu%2Fmobilecppmemorytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4brunu%2Fmobilecppmemorytest/lists"}