GithubHelp home page GithubHelp logo

often crash when save file about injectioniii HOT 10 CLOSED

y500 avatar y500 commented on May 23, 2024
often crash when save file

from injectioniii.

Comments (10)

johnno1962 avatar johnno1962 commented on May 23, 2024

Hi which version of Xcode is this? Are you able to upload the stack trace/crash file? Can you try the new release candidate 4.7.3? https://github.com/johnno1962/InjectionIII/releases/tag/4.7.3

from injectioniii.

y500 avatar y500 commented on May 23, 2024

yes, version of 4.7.3.

from injectioniii.

y500 avatar y500 commented on May 23, 2024

Here is the crash stack trace:

> warning: sample was compiled with optimization - stepping may behave oddly; variables may not be available.
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007ff834be61f2 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007ff834c3eee6 libsystem_pthread.dylib`pthread_kill + 263
    frame #2: 0x00007ff800132fe0 libsystem_c.dylib`abort + 130
    frame #3: 0x00007ff80da868ab libswiftCore.dylib`demangleFatal(unsigned int, char const*, __va_list_tag*) + 123
    frame #4: 0x00007ff80da8682e libswiftCore.dylib`swift::Demangle::__runtime::fatal(unsigned int, char const*, ...) + 126
    frame #5: 0x00007ff80da4815a libswiftCore.dylib`swift::Demangle::__runtime::failAssert(char const*, unsigned int, swift::Demangle::__runtime::Node*, char const*) + 90
    frame #6: 0x00007ff80da4902b libswiftCore.dylib`swift::Demangle::__runtime::Node::addChild(swift::Demangle::__runtime::Node*, swift::Demangle::__runtime::NodeFactory&) + 603
    frame #7: 0x00007ff80da18183 libswiftCore.dylib`copyGenericClassObjCName(swift::TargetClassMetadata<swift::InProcess, swift::TargetAnyClassMetadataObjCInterop<swift::InProcess> >*) + 195
    frame #8: 0x00007ff8000392c5 libobjc.A.dylib`objc_class::installMangledNameForLazilyNamedClass() + 111
    frame #9: 0x00007ff80003e7dc libobjc.A.dylib`objc_class::demangledName(bool) + 80
    frame #10: 0x000000012ed121f8 iOSInjection`function signature specialization <Arg[1] = Dead> of static iOSInjection.SwiftInjection.versions(of: Swift.AnyObject.Type) -> Swift.Array<Swift.AnyObject.Type> + 200
    frame #11: 0x000000012ed0bef4 iOSInjection`static iOSInjection.SwiftInjection.inject(tmpfile: Swift.String, newClasses: Swift.Array<Swift.AnyObject.Type>) throws -> () + 852
    frame #12: 0x000000012ed1b148 iOSInjection`closure #9 (__C.NSArray, Swift.String) -> () in iOSInjection.StandaloneInjection.runInBackground() -> () + 1640
    frame #13: 0x000000012ed1b6ae iOSInjection`partial apply forwarder for closure #9 (__C.NSArray, Swift.String) -> () in iOSInjection.StandaloneInjection.runInBackground() -> () + 46
    frame #14: 0x000000012ecd73c6 iOSInjection`iOSInjection.FileWatcher.filesChanged(changes: __C.NSArray) -> () + 1510
    frame #15: 0x000000012ecd7c37 iOSInjection`partial apply forwarder for closure #1 @Swift.MainActor () -> () in closure #1 (Swift.OpaquePointer, Swift.Optional<Swift.UnsafeMutableRawPointer>, Swift.Int, Swift.UnsafeMutableRawPointer, Swift.UnsafePointer<Swift.UInt32>, Swift.UnsafePointer<Swift.UInt64>) -> () in closure #1 (Swift.UInt64) -> () in iOSInjection.FileWatcher.init(roots: Swift.Array<Swift.String>, callback: (__C.NSArray, Swift.String) -> ()) -> iOSInjection.FileWatcher + 23
    frame #16: 0x000000012ed0a9f9 iOSInjection`reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () + 25
    frame #17: 0x0000000114598d18 libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #18: 0x0000000114599f5b libdispatch.dylib`_dispatch_client_callout + 8
    frame #19: 0x00000001145aad55 libdispatch.dylib`_dispatch_main_queue_drain + 1463
    frame #20: 0x00000001145aa790 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 31
    frame #21: 0x00007ff800386b6f CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    frame #22: 0x00007ff800381486 CoreFoundation`__CFRunLoopRun + 2482
    frame #23: 0x00007ff8003806f7 CoreFoundation`CFRunLoopRunSpecific + 560
    frame #24: 0x00007ff809c5c28a GraphicsServices`GSEventRunModal + 139
    frame #25: 0x000000011be8a62b UIKitCore`-[UIApplication _run] + 994
    frame #26: 0x000000011be8f547 UIKitCore`UIApplicationMain + 123
  * frame #27: 0x000000010c9470d8 sample`main(argc=1, argv=0x00007ff7b72ab348) at main.m:43:16 [opt]
    frame #28: 0x00000001108912bf dyld_sim`start_sim + 10
    frame #29: 0x000000011f86e41f dyld`start + 1903

from injectioniii.

johnno1962 avatar johnno1962 commented on May 23, 2024

Thanks, the stack track is very useful, this is something to do with injecting a generic class in your app. Let me think about how to track this down. This is something that usually works but intermittently fails? Does this always happen injecting one particular file?

from injectioniii.

y500 avatar y500 commented on May 23, 2024

Yes, it usually works but intermittently fails before.
But from a couple of days ago, it has become crashing so often that I almost can't use it.
And I can't figure out if that was because of injecting one particular file or not.

from injectioniii.

johnno1962 avatar johnno1962 commented on May 23, 2024

It would most likely be related to the file you're injecting. Let me see if there is something I can do or you could try a recent Xcode (15)?

from injectioniii.

y500 avatar y500 commented on May 23, 2024

ok, thank u very much.

from injectioniii.

johnno1962 avatar johnno1962 commented on May 23, 2024

The only thing I could do at this point is a "TeamView" session to review the code being injected and see if there is anything I can do to avoid the crash. If this is possible, email your details through to github at johnholdsworth.com.

from injectioniii.

y500 avatar y500 commented on May 23, 2024

I would like to but I can't do that, cause it is not a personal project, and thank you all the same.

from injectioniii.

johnno1962 avatar johnno1962 commented on May 23, 2024

I've uploaded a new release candidate https://github.com/johnno1962/InjectionIII/releases/tag/4.7.4RC2 if you'd like to try it out to see if it is more reliable. If you could get back to me a little more quickly that would help me resolve this issue.

from injectioniii.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.