Skip to content

Crashes only in iPads/live afther - Fix/enhancement for issue #1319 (draw filled complex polygons (concave/convex) #1546

Closed
@rarepixels

Description

@rarepixels
  • axmol version:
    Still using last 1.x, not yet migrated to 2.x,no dev, but wanna give a heads up, in case somebody else have this problem.

  • devices test on:
    Only crashes in iPads / no dev crashes for me, only live crashlytics reports
    No problem at all in android devices or any iPhone model/version

  • developing environments

    • Xcode version: 14.2

I had recently updated my app version with the fix for issuea #1433 and got this crash trigger by poly2tri shapes.h
// Repeat points
"Edge::Edge: p1 == p2"

Removing the changes for concave/convex detection crashes went away.

All crashes are related to the drawPolygon, all in pages with ScrollView,
that calls drawPolygon twice via
Layout::setStencilClippingSize _clippingStencil->drawPolygon

ScrollView:create -> triggers a drawPolygon with 0 filled
scrollView::setContentSize -> in my test case, triggers drawPolygon with screenSize ~ [0,0] [1386,0] [1386,518] [0,518]

Or in the few places where I draw polygons ( only rectangles or round rectangles, so all are convex )

Of course, I can't reproduce the crash and never run into it during development or testing.

From crashlytics:

Device
100% iPad

In my case,
iPad (5th to 10th generation )
iPad Pro ( 2th to 6th )
iPad Air ( 3rd to 4th )
iPad mini ( 4th to 5th )

OS
60% iPadOS 17
32% iPAdOS 16
7% iPAdOS 15
1% iPadOS 14

Version 4.2 has the update #1433 , prev versions, and 4.2.1 do not have that code change.

crash_log_per_version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcocos2dxThe issue present in original cocos2dx

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions