Coder Social home page Coder Social logo

Comments (4)

olokobayusuf avatar olokobayusuf commented on July 3, 2024

@marvpaul What version of VideoKit are you on? And do you have access to more logs? These logs don't contain the call stack of the thread that caused the crash.

from videokit.

marvpaul avatar marvpaul commented on July 3, 2024

It's 0.0.17 alpha.
Here's a callstack:

01-24 00:45:36.264 26057 26094 F ounds.wallpaper: runtime.cc:699]     in call to GetStaticMethodID
01-24 00:45:36.264 26057 26094 F ounds.wallpaper: runtime.cc:699]     from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class)
01-24 00:45:36.275 26057 26094 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-24 00:45:36.275 26057 26094 E CRASH   : Version '2022.3.10f1 (ff3792e53c62)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
01-24 00:45:36.275 26057 26094 E CRASH   : Build fingerprint: 'samsung/r8qeea/r8q:13/TP1A.220624.014/G780GXXS6EWF3:user/release-keys'
01-24 00:45:36.275 26057 26094 E CRASH   : Revision: '10'
01-24 00:45:36.275 26057 26094 E CRASH   : ABI: 'arm'
01-24 00:45:36.275 26057 26094 E CRASH   : Timestamp: 2024-01-24 00:45:36.275574092+0100
01-24 00:45:36.275 26057 26094 E CRASH   : pid: 26057, tid: 26094, name: UnityMain  >>> com.MKGames.FluidsSounds.wallpaper <<<
01-24 00:45:36.275 26057 26094 E CRASH   : uid: 10334
01-24 00:45:36.275 26057 26094 E CRASH   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
01-24 00:45:36.275 26057 26094 E CRASH   :     r0  00000000  r1  000065ee  r2  00000006  r3  e51f8048
01-24 00:45:36.275 26057 26094 E CRASH   :     r4  e51f8058  r5  e51f8040  r6  000065c9  r7  0000016b
01-24 00:45:36.275 26057 26094 E CRASH   :     r8  00000000  r9  ffffffff  r10 e51f8048  r11 00000058
01-24 00:45:36.275 26057 26094 E CRASH   :     ip  000065ee  sp  e51f8028  lr  f05067db  pc  f05067ee
01-24 00:45:36.275 26057 26094 E CRASH   : backtrace:
01-24 00:45:36.275 26057 26094 E CRASH   :       #00 pc 000637ee  /apex/com.android.runtime/lib/bionic/libc.so (abort+138) (BuildId: 5d48bc9cc6ae3c32f2caa2c9135cceb3)
01-24 00:45:36.275 26057 26094 E CRASH   :       #01 pc 004f258f  /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+1346) (BuildId: 2c27deb1ebe8c2d821a954ea6ddd7c8b)
01-24 00:45:36.275 26057 26094 E CRASH   :       #02 pc 00023837  /apex/com.google.mainline.primary.libs@341177000/lib/libbase.so/2baee144307110a2b9a7fffc26bfdca189fe29b8266623afb93ed899028350f0708609923037edb06ca3f04aad0e2a06ef79abe9df8628423a3f13dfbde5f670/libbase.so (BuildId: 959b00e687b93fff2e345580c1584040)
01-24 00:45:36.275 26057 26094 E CRASH   :       #03 pc 00001ccc  [anon:libc_malloc]
01-24 00:45:36.275 26057 26094 E CRASH   : managed backtrace:
01-24 00:45:36.275 26057 26094 E CRASH   :       #00 VideoKit.Internal.VideoKitSettings/<CheckSession>d__12:MoveNext () </Users/marvinkruger/Fluids/Assets/videokit-0.0.17 2/Runtime/Internal/VideoKitSettings.cs:66>
01-24 00:45:36.275 26057 26094 E CRASH   :       #01 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<VideoKit.Internal.VideoKit/Status>:Start<VideoKit.Internal.VideoKitSettings/<CheckSession>d__12> (VideoKit.Internal.VideoKitSettings/<CheckSession>d__12&) <0xbb>
01-24 00:45:36.275 26057 26094 E CRASH   :       #02 VideoKit.Internal.VideoKitSettings:CheckSession () <0x8f>
01-24 00:45:36.276 26057 26094 E CRASH   :       #03 VideoKit.Internal.VideoKitSettings/<Awake>d__21:MoveNext () </Users/marvinkruger/Fluids/Assets/videokit-0.0.17 2/Runtime/Internal/VideoKitSettings.cs:103>
01-24 00:45:36.276 26057 26094 E CRASH   :       #04 System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<VideoKit.Internal.VideoKitSettings/<Awake>d__21> (VideoKit.Internal.VideoKitSettings/<Awake>d__21&) <0xc3>
01-24 00:45:36.276 26057 26094 E CRASH   :       #05 VideoKit.Internal.VideoKitSettings:Awake () <0x9f>
01-24 00:45:36.276 26057 26094 E CRASH   :       #06 (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
01-24 00:45:36.349  1238  3644 D MotionRecognitionService: values = 50.0
01-24 00:45:36.349  1238  3644 D MotionRecognitionService: onReceive lux: 50.0  action: 
01-24 00:45:36.349  1238  3644 D MotionRecognitionService: Inject brightness form Cam 50.0
01-24 00:45:36.349  1238  3644 D MotionRecognitionService: Inject calibrated lux
01-24 00:45:36.385 26057 26094 E CRASH   : Tombstone written to: /storage/emulated/0/Android/data/com.MKGames.FluidsSounds/files/tombstone_01
01-24 00:45:36.385 26057 26094 E CRASH   : Forwarding signal 6
01-24 00:45:36.385 26057 26094 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 26094 (UnityMain), pid 26057 (ounds.wallpaper)
01-24 00:45:36.434 26194 26194 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
01-24 00:45:36.435   758   758 I tombstoned: received crash request for pid 26094
01-24 00:45:36.435 26194 26194 I crash_dump32: performing dump of process 26057 (target tid = 26094)
01-24 00:45:36.543 26194 26194 E unwind  : Failed to initialize DEX file support: dlopen failed: library "libdexfile.so" not found
01-24 00:45:36.546  1238  3613 D FreecessController: com.samsung.android.game.gamehome(state: Freezeable -> Frozen, Reason: uidIdle)
01-24 00:45:36.550  1238  3644 D MotionRecognitionService: values = 50.0
01-24 00:45:36.550  1238  3644 D MotionRecognitionService: onReceive lux: 50.0  action: 
01-24 00:45:36.550  1238  3644 D MotionRecognitionService: Inject brightness form Cam 50.0
01-24 00:45:36.550  1238  3644 D MotionRecognitionService: Inject calibrated lux
01-24 00:45:36.672 26194 26194 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-24 00:45:36.672 26194 26194 F DEBUG   : Build fingerprint: 'samsung/r8qeea/r8q:13/TP1A.220624.014/G780GXXS6EWF3:user/release-keys'
01-24 00:45:36.672 26194 26194 F DEBUG   : Revision: '10'
01-24 00:45:36.672 26194 26194 F DEBUG   : ABI: 'arm'
01-24 00:45:36.672 26194 26194 F DEBUG   : Processor: '7'
01-24 00:45:36.672 26194 26194 F DEBUG   : Timestamp: 2024-01-24 00:45:36.441954977+0100
01-24 00:45:36.672 26194 26194 F DEBUG   : Process uptime: 3s
01-24 00:45:36.672 26194 26194 F DEBUG   : Cmdline: com.MKGames.FluidsSounds.wallpaper
01-24 00:45:36.673 26194 26194 F DEBUG   : pid: 26057, tid: 26094, name: UnityMain  >>> com.MKGames.FluidsSounds.wallpaper <<<
01-24 00:45:36.673 26194 26194 F DEBUG   : uid: 10334
01-24 00:45:36.673 26194 26194 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
01-24 00:45:36.673 26194 26194 F DEBUG   : Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.ExceptionInInitializerError: 
01-24 00:45:36.673 26194 26194 F DEBUG   :   at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class) (Runtime.java:-2)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:1126)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at void java.lang.Runtime.load0(java.lang.Class, java.lang.String) (Runtime.java:931)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at void java.lang.System.load(java.lang.String) (System.java:1625)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at boolean com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(com.unity3d.player.UnityPlayer) ((null):-1)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at boolean com.unity3d.player.UnityPlayer$D$a.handleMessage(android.os.Message) ((null):-1)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:226)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at void android.os.Looper.loop() (Looper.java:313)
01-24 00:45:36.673 26194 26194 F DEBUG   :   at void com.unity3d.player.UnityPlayer$D.run() ((null):-1)
01-24 00:45:36.673 26194 26194 F DEBUG   : 
01-24 00:45:36.673 26194 26194 F DEBUG   :     in call to GetStaticMethodID
01-24 00:45:36.673 26194 26194 F DEBUG   :     from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.Class)'
01-24 00:45:36.673 26194 26194 F DEBUG   :     r0  00000000  r1  000065ee  r2  00000006  r3  e51f8048
01-24 00:45:36.673 26194 26194 F DEBUG   :     r4  e51f8058  r5  e51f8040  r6  000065c9  r7  0000016b
01-24 00:45:36.673 26194 26194 F DEBUG   :     r8  00000000  r9  ffffffff  r10 e51f8048  r11 00000058
01-24 00:45:36.673 26194 26194 F DEBUG   :     ip  000065ee  sp  e51f8028  lr  f05067db  pc  f05067ee
01-24 00:45:36.673 26194 26194 F DEBUG   : backtrace:

Sadly I'm not too deep into Live Wallpapers but the main difference is that I want to start Unity as a service (wallpaper service) instead of activity.

<service android:name=".service.LiveWallpaperPresentationService" android:enabled="true" android:label="@string/app_name" android:permission="android.permission.BIND_WALLPAPER" android:process="${applicationId}.wallpaper" android:exported="true">
      <!-- or android:exported="false" -->
      <intent-filter>
        <action android:name="android.service.wallpaper.WallpaperService" />
      </intent-filter>
      <meta-data android:name="android.service.wallpaper" android:resource="@xml/wallpaper" />
    </service>

This somehow leads to a crash within the checkSession method. It would be great to have a way to disable the check when using LWP or have it surrounded by try catch so that it dosen't cause a crash. Perhaps you also have a better idea.

from videokit.

marvpaul avatar marvpaul commented on July 3, 2024

Thank you - it dosen't crash anymore with the latest alpha!!

from videokit.

olokobayusuf avatar olokobayusuf commented on July 3, 2024

Great 😄

from videokit.

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.