Skip to content

demo调整窗口大小时crash #2

@williamleecn

Description

@williamleecn

OS: macOS 15.2 x86

 -[NSOpenGLContext update] must be called from the main thread if the context has a view.

* thread #8, name = 'CVDisplayLink', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
  * frame #0: 0x00007ff81ea11af0 AppKit`-[NSOpenGLContext update] + 495
    frame #1: 0x0000000105c9d2b4 libpag`tgfx::CGLWindow::onCreateSurface(tgfx::Context*) + 50
    frame #2: 0x0000000105dc58eb libpag`tgfx::Window::createSurface(tgfx::Context*) + 55
    frame #3: 0x0000000105cf98b2 libpag`pag::GPUDrawable::onCreateSurface(tgfx::Context*) + 26
    frame #4: 0x0000000105cc2e74 libpag`pag::Drawable::getSurface(tgfx::Context*, bool) + 106
    frame #5: 0x0000000105d596d3 libpag`pag::PAGSurface::draw(pag::RenderCache*, std::__1::shared_ptr<pag::Graphic>, pag::BackendSemaphore*, bool) + 155
    frame #6: 0x0000000105d517aa libpag`pag::PAGPlayer::flushInternal(pag::BackendSemaphore*) + 148
    frame #7: 0x0000000105d516de libpag`pag::PAGPlayer::flush() + 108
    frame #8: 0x0000000105d52cc3 libpag`-[PAGPlayerImpl flush] + 13
    frame #9: 0x0000000105d3a5dd libpag`pag::AnimatorListener::onAnimationUpdate(pag::PAGAnimator*) + 127
    frame #10: 0x0000000105d38ea8 libpag`pag::PAGAnimator::onFlush(bool) + 76
    frame #11: 0x0000000105d38715 libpag`pag::PAGAnimator::advance() + 133
    frame #12: 0x0000000105d392e5 libpag`pag::AnimationTicker::onFrameAvailable() + 81
    frame #13: 0x0000000105d33d3d libpag`pag::OnAnimationCallback(__CVDisplayLink*, CVTimeStamp const*, CVTimeStamp const*, unsigned long long, unsigned long long*, void*) + 19
    frame #14: 0x00007ff824506aa9 CoreVideo`CVDisplayLink::performIO(CVTimeStamp*) + 299
    frame #15: 0x00007ff824505903 CoreVideo`CVDisplayLink::runIOThread() + 667
    frame #16: 0x0000000104ce18d7 libsystem_pthread.dylib`_pthread_start + 99
    frame #17: 0x0000000104ce9c33 libsystem_pthread.dylib`thread_start + 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions