openframeworks / openframeworks/openFrameworks
3D models and textures fail to reload on Android in reloadTextures() or resume()
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
3D models and textures fail to reload on Android. Running off the current master. Sometimes it causes a crash and sometimes they draw a blank screen.
06-20 18:43:24.948: W/ofVbo(11187): release(): something's wrong here, releasing unkown vertex buffer object id 1074573768
06-20 18:43:24.948: W/ofVbo(11187): release(): something's wrong here, releasing unkown vertex buffer object id 1987623864
06-20 18:43:24.948: W/ofVbo(11187): release(): something's wrong here, releasing unkown vertex buffer object id 4
06-20 18:43:24.948: W/ofVbo(11187): release(): something's wrong here, releasing unkown vertex buffer object id 1974769776
I/DEBUG ( 171): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 171): Build fingerprint: 'google/occam/mako:4.4.3/KTU84L/1148727:user/release-keys'
I/DEBUG ( 171): Revision: '11'
I/DEBUG ( 171): pid: 12118, tid: 12135, name: Thread-3321 >>> cc.openframeworks.androidAssimpExample <<<
I/DEBUG ( 171): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
I/DEBUG ( 171): r0 00000000 r1 7725f148 r2 774c09c8 r3 00000000
I/DEBUG ( 171): r4 00000000 r5 00000000 r6 75a21a84 r7 007d7050
I/DEBUG ( 171): r8 75ca1b10 r9 75aacf2c sl 75db26a8 fp 75ca1b24
I/DEBUG ( 171): ip 00000001 sp 75ca1930 lr 7524aa08 pc 7524a8ec cpsr 200f0010
I/DEBUG ( 171): d0 0000000000000000 d1 0000000000000000
I/DEBUG ( 171): d2 3efffee03efffe00 d3 0000030000000000
I/DEBUG ( 171): d4 000004a000000000 d5 0000030000000000
I/DEBUG ( 171): d6 000004a000000000 d7 0000030000000000
I/DEBUG ( 171): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 171): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 171): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 171): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 171): d16 4024000000000000 d17 4010000000000000
I/DEBUG ( 171): d18 408f400000000000 d19 02ff02eb02f302ee
I/DEBUG ( 171): d20 4017fb7f80000000 d21 404dfa5f60000000
I/DEBUG ( 171): d22 02c702d102d002c7 d23 02cd02c802ce02c8
I/DEBUG ( 171): d24 031c031b0318031c d25 031b031a031c031a
I/DEBUG ( 171): d26 404dfa5f60000000 d27 0000000000000000
I/DEBUG ( 171): d28 02e402d302e302d1 d29 02e202e402e302e2
I/DEBUG ( 171): d30 031c031c031c031c d31 4000000000000000
I/DEBUG ( 171): scr 60000013
I/DEBUG ( 171):
I/DEBUG ( 171): backtrace:
I/DEBUG ( 171): #00 pc 002428ec /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so (ofVbo::clearVertices()+8)
I/DEBUG ( 171): #01 pc 00242a04 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so (ofVbo::clear()+16)
I/DEBUG ( 171):
I/DEBUG ( 171): stack:
I/DEBUG ( 171): 75ca18f0 00004100
I/DEBUG ( 171): 75ca18f4 747090e5 /system/lib/egl/libGLESv1_CM_adreno.so (qglDrvAPI_glClear+24)
I/DEBUG ( 171): 75ca18f8 75ca1914 [stack:12135]
I/DEBUG ( 171): 75ca18fc 746fac9d /system/lib/egl/libGLESv1_CM_adreno.so (glClear+12)
I/DEBUG ( 171): 75ca1900 774c09c8 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1904 773d3368 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1908 7735b770 [anon:libc_malloc]
I/DEBUG ( 171): 75ca190c 774c09d0 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1910 7735b774 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1914 4008e257 /system/lib/libc.so (dlfree+50)
I/DEBUG ( 171): 75ca1918 400c7000 /system/lib/libc.so
I/DEBUG ( 171): 75ca191c 773d3368 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1920 773d3368 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1924 773d3368 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1928 00000000
I/DEBUG ( 171): 75ca192c 400cb1c0
I/DEBUG ( 171): #00 75ca1930 774c09c8 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1934 7524aa08 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so (ofVbo::clear()+20)
I/DEBUG ( 171): #01 75ca1938 75ca1954 [stack:12135]
I/DEBUG ( 171): 75ca193c 7524ee30 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so (ofEnableBlendMode(ofBlendMode)+36)
I/DEBUG ( 171): 75ca1940 000000ff
I/DEBUG ( 171): 75ca1944 7522f0a0 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so (ofGLReadyCallback()+548)
I/DEBUG ( 171): 75ca1948 0000006f
I/DEBUG ( 171): 75ca194c 75a847c4
I/DEBUG ( 171): 75ca1950 7747076c [anon:libc_malloc]
I/DEBUG ( 171): 75ca1954 00000000
I/DEBUG ( 171): 75ca1958 00000000
I/DEBUG ( 171): 75ca195c 4008ab00 /system/lib/libc.so (get_malloc_leak_info+131)
I/DEBUG ( 171): 75ca1960 7747076c [anon:libc_malloc]
I/DEBUG ( 171): 75ca1964 75a1c3e4 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so
I/DEBUG ( 171): 75ca1968 75a1b7f8 /data/app-lib/cc.openframeworks.androidAssimpExample-2/libOFAndroidApp.so
I/DEBUG ( 171): 75ca196c 773d1f95 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1970 773d1f95 [anon:libc_malloc]
I/DEBUG ( 171): 75ca1974 773d1f95 [anon:libc_malloc]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Android failure while reloading textures or resuming, then inspect the reloadTextures() and resume() paths alongside the ofVbo::clear() stack trace shown in the issue. Done means 3D models and textures reload successfully without a crash or blank screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100